Definition at line 94 of file root_test.py.
◆ UserSteppingAction()
def root_test.MySteppingAction.UserSteppingAction |
( |
|
self, |
|
|
|
step |
|
) |
| |
Definition at line 97 of file root_test.py.
97 def UserSteppingAction(self, step):
99 dedx= step.GetTotalEnergyDeposit()
101 hist1.Fill(dedx/HEPUnit.keV)
109 app= gtest01.MyApplication()
113 myPGA= MyPrimaryGeneratorAction()
114 gRunManager.SetUserAction(myPGA)
117 gRunManager.SetUserAction(myRA)
122 mySA= MySteppingAction()
123 gRunManager.SetUserAction(mySA)
128 pg= myPGA.particleGun
129 pg.SetParticleByName(
"e-")
130 pg.SetParticleEnergy(200.*HEPUnit.MeV)
132 pg.SetParticlePosition(
G4ThreeVector(0.,0.,-14.9)*HEPUnit.cm)
135 ApplyUICommand(
"/control/execute vis.mac")
138 gRunManager.BeamOn(1000)
The documentation for this class was generated from the following file: