The Gaudi Framework  v36r7 (7f57a304)
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 752 of file pTools.py.

752 def getEventNumber(evt):
753  # The class-independent version of the Event Number Retrieval method
754  #
755  n = None
756  # First Attempt : Unpacked Event Data
757  lst = ["/Event/Gen/Header", "/Event/Rec/Header"]
758  for l in lst:
759  try:
760  n = evt[l].evtNumber()
761  return n
762  except:
763  # No evt number at this path
764  continue
765 
766  # second attepmt : try DAQ/RawEvent data
767  # The Evt Number is in bank type 16, bank 0, data pt 4
768  try:
769  n = evt["/Event/DAQ/RawEvent"].banks(16)[0].data()[4]
770  return n
771  except:
772  pass
773 
774  # Default Action
775  return n
776 
777 
778 # ================================= EOF =======================================

Variable Documentation

◆ aida2root

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

Definition at line 56 of file pTools.py.

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