13 "My Primary Generator Action"
16 G4VUserPrimaryGeneratorAction.__init__(self)
20 self.particleGun.GeneratePrimaryVertex(event)
27 print "*** End of Run"
28 print "- Run sammary : (id= %d, #events= %d)" \
29 % (run.GetRunID(), run.GetNumberOfEventToBeProcessed())
45 preStepPoint= step.GetPreStepPoint()
46 track= step.GetTrack()
47 touchable= track.GetTouchable()
54 myMaterials= demo_wp.MyMaterials()
55 myMaterials.Construct()
57 myDC= demo_wp.MyDetectorConstruction()
58 gRunManager.SetUserInitialization(myDC)
61 gRunManager.SetUserInitialization(myPL)
65 gRunManager.SetUserAction(myPGA)
68 gRunManager.SetUserAction(myRA)
71 gRunManager.SetUserAction(myEA)
74 gRunManager.SetUserAction(mySA)
79 pg.SetParticleByName(
"proton")
80 pg.SetParticleEnergy(230.*MeV)
84 gRunManager.Initialize()