SND@LHC Software
Loading...
Searching...
No Matches
g4Ex.MyRunAction Class Reference
Inheritance diagram for g4Ex.MyRunAction:
Collaboration diagram for g4Ex.MyRunAction:

Public Member Functions

 EndOfRunAction (self, run)
 

Detailed Description

Definition at line 138 of file g4Ex.py.

Member Function Documentation

◆ EndOfRunAction()

g4Ex.MyRunAction.EndOfRunAction (   self,
  run 
)

Definition at line 141 of file g4Ex.py.

141 def EndOfRunAction(self, run):
142 global debug,nevTot
143 print("*** End of Run")
144 print("- Run summary : (id= %d, #events= %d)" \
145 % (run.GetRunID(), nevTot))
146 h['ntuple'].Fill(-1., float(nevTot) )
147 h['ntuple'].Write()
148 print('lepton masses used')
149 for l in leptons:
150 G4particle = G4PrimaryParticle( l )
151 G4def = G4particle.GetParticleDefinition()
152 print(l, G4def.GetParticleName(), G4particle.GetMass())
153
154# ------------------------------------------------------------------

The documentation for this class was generated from the following file: