SND@LHC Software
Loading...
Searching...
No Matches
g4Ex_gap.MySteppingAction Class Reference
Inheritance diagram for g4Ex_gap.MySteppingAction:
Collaboration diagram for g4Ex_gap.MySteppingAction:

Public Member Functions

 UserSteppingAction (self, step)
 

Detailed Description

Definition at line 285 of file g4Ex_gap.py.

Member Function Documentation

◆ 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: