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

Public Member Functions

 EndOfRunAction (self, run)
 

Detailed Description

Definition at line 193 of file g4Ex_args.py.

Member Function Documentation

◆ EndOfRunAction()

g4Ex_args.MyRunAction.EndOfRunAction (   self,
  run 
)

Definition at line 196 of file g4Ex_args.py.

196 def EndOfRunAction(self, run):
197 global debug,nevTot
198 print("*** End of Run")
199 print("- Run summary : (id= %d, #events= %d)" \
200 % (run.GetRunID(), nevTot))
201 h['ntuple'].Fill(-1., float(nevTot) )
202 h['ntuple'].Write()
203 print('lepton masses used')
204 for l in leptons:
205 G4particle = G4PrimaryParticle( l )
206 G4def = G4particle.GetParticleDefinition()
207 print(l, G4def.GetParticleName(), G4particle.GetMass())
208
209# ------------------------------------------------------------------

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