The Gaudi Framework  v36r1 (3e2fb5a8)
GaudiMP.pTools Namespace Reference

Classes

class  FileRecordsAgent
 
class  HistoAgent
 
class  LumiFSR
 
class  PackedCaloHypo
 
class  Syncer
 
class  SyncMini
 

Functions

def getEventNumber (evt)
 

Variables

 aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root
 

Function Documentation

◆ getEventNumber()

def GaudiMP.pTools.getEventNumber (   evt)

Definition at line 729 of file pTools.py.

729 def getEventNumber(evt):
730  # The class-independent version of the Event Number Retrieval method
731  #
732  n = None
733  # First Attempt : Unpacked Event Data
734  lst = ['/Event/Gen/Header', '/Event/Rec/Header']
735  for l in lst:
736  try:
737  n = evt[l].evtNumber()
738  return n
739  except:
740  # No evt number at this path
741  continue
742 
743  # second attepmt : try DAQ/RawEvent data
744  # The Evt Number is in bank type 16, bank 0, data pt 4
745  try:
746  n = evt['/Event/DAQ/RawEvent'].banks(16)[0].data()[4]
747  return n
748  except:
749  pass
750 
751  # Default Action
752  return n
753 
754 
755 # ================================= EOF =======================================

Variable Documentation

◆ aida2root

GaudiMP.pTools.aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

Definition at line 55 of file pTools.py.

GaudiMP.pTools.getEventNumber
def getEventNumber(evt)
Definition: pTools.py:729