◆ UserSteppingAction() [1/3]
def test.MySteppingAction.UserSteppingAction |
( |
|
self, |
|
|
|
step |
|
) |
| |
Definition at line 42 of file examples/demos/water_phantom/test.py.
42 def UserSteppingAction(self, step):
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)
64 myPGA= MyPrimaryGeneratorAction()
65 gRunManager.SetUserAction(myPGA)
68 gRunManager.SetUserAction(myRA)
71 gRunManager.SetUserAction(myEA)
73 mySA= MySteppingAction()
74 gRunManager.SetUserAction(mySA)
79 pg.SetParticleByName(
"proton")
80 pg.SetParticleEnergy(230.*MeV)
84 gRunManager.Initialize()
◆ UserSteppingAction() [2/3]
def test.MySteppingAction.UserSteppingAction |
( |
|
self, |
|
|
|
step |
|
) |
| |
Definition at line 54 of file tests/gtest01/python3/test.py.
54 def UserSteppingAction(self, step):
56 track= step.GetTrack()
57 touchable= track.GetTouchable()
58 pv= touchable.GetVolume()
◆ UserSteppingAction() [3/3]
def test.MySteppingAction.UserSteppingAction |
( |
|
self, |
|
|
|
step |
|
) |
| |
Definition at line 55 of file tests/gtest01/test.py.
55 def UserSteppingAction(self, step):
57 track= step.GetTrack()
58 touchable= track.GetTouchable()
59 pv= touchable.GetVolume()
The documentation for this class was generated from the following file: