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

Public Member Functions

 EndOfEventAction (self, event)
 
 StartOfEventAction (self, event)
 
 myPrintout (self, event)
 

Detailed Description

Definition at line 268 of file g4Ex_gap.py.

Member Function Documentation

◆ EndOfEventAction()

g4Ex_gap.MyEventAction.EndOfEventAction (   self,
  event 
)

Definition at line 270 of file g4Ex_gap.py.

270 def EndOfEventAction(self, event):
271 global myEventnr
272 if debug and not particleGun: print('end of event',myEventnr)
273 myEventnr += 1
274 # self.myPrintout(event)

◆ myPrintout()

g4Ex_gap.MyEventAction.myPrintout (   self,
  event 
)

Definition at line 278 of file g4Ex_gap.py.

278 def myPrintout(self, event):
279 prim = event.GetPrimaryVertex()
280 print('vertex ',prim.GetX0()/m,prim.GetY0()/m,prim.GetZ0()/m)
281 for k in range( prim.GetNumberOfParticle() ):
282 p = prim.GetPrimary(k)
283 print('event',p.GetPDGcode(),p.GetPx()/GeV,p.GetPy()/GeV,p.GetPz()/GeV)
284# ------------------------------------------------------------------

◆ StartOfEventAction()

g4Ex_gap.MyEventAction.StartOfEventAction (   self,
  event 
)

Definition at line 275 of file g4Ex_gap.py.

275 def StartOfEventAction(self, event):
276 global trackHistory
277 trackHistory={}

The documentation for this class was generated from the following file: