Definition at line 8 of file 087_module.py.
◆ event()
Print the number of charged particles and the total charge
Definition at line 16 of file 087_module.py.
17 """Print the number of charged particles and the total charge"""
20 for particle
in self.particles:
21 charge = particle.getCharge()
24 total_charge += charge
27 f
"Number of charged particles = {n_charged}, "
28 f
"total charge of event = {total_charge}"
◆ initialize()
Create a member to access event info and the MCParticles
StoreArray
Definition at line 9 of file 087_module.py.
The documentation for this class was generated from the following file: