Definition at line 230 of file g4Ex_args.py.
 
◆ myPrintout()
      
        
          | g4Ex_args.MyTrackingAction.myPrintout | ( |  | self, | 
        
          |  |  |  | atrack | 
        
          |  | ) |  |  | 
      
 
Definition at line 244 of file g4Ex_args.py.
  244 def myPrintout(self, atrack):
  245   part         = atrack.GetDynamicParticle()
  246   pid          = part.GetPDGcode()
  247   print('TA',pid,atrack.GetTotalEnergy()/GeV,ecut*GeV) 
  248 
  249
 
 
◆ PostUserTrackingAction()
      
        
          | g4Ex_args.MyTrackingAction.PostUserTrackingAction | ( |  | self, | 
        
          |  |  |  | atrack | 
        
          |  | ) |  |  | 
      
 
Definition at line 231 of file g4Ex_args.py.
  231 def PostUserTrackingAction(self,atrack):
  232    pass  
 
 
◆ PreUserTrackingAction()
      
        
          | g4Ex_args.MyTrackingAction.PreUserTrackingAction | ( |  | self, | 
        
          |  |  |  | atrack | 
        
          |  | ) |  |  | 
      
 
Definition at line 233 of file g4Ex_args.py.
  233 def PreUserTrackingAction(self,atrack):
  234   
  235   if atrack.GetTotalEnergy()/GeV < ecut : 
  236      G4TrackingManager().SetStoreTrajectory(False) 
  237      atrack.SetTrackStatus(atrack.GetTrackStatus().fStopAndKill)
  238   part         = atrack.GetDynamicParticle()
  239   pid          = part.GetPDGcode()
  240   if pid in notWanted:
  241      G4TrackingManager().SetStoreTrajectory(False) 
  242      atrack.SetTrackStatus(atrack.GetTrackStatus().fStopAndKill)
  243 
 
 
The documentation for this class was generated from the following file: