Definition at line 285 of file g4Ex_gap.py.
◆ UserSteppingAction()
g4Ex_gap.MySteppingAction.UserSteppingAction |
( |
|
self, |
|
|
|
step |
|
) |
| |
Definition at line 288 of file g4Ex_gap.py.
288 def UserSteppingAction(self, step):
289 preStepPoint = step.GetPreStepPoint()
290 touch = preStepPoint.GetTouchableHandle()
291 volName = touch.GetVolume().GetName().__format__('')
292 pos = preStepPoint.GetPosition()
293 print('stepping name, z pos dedx (MeV): ',volName,pos.z/m,step.GetTotalEnergyDeposit()/MeV)
294
The documentation for this class was generated from the following file: