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