The Gaudi Framework  master (f31105fd)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GaudiMP.pTools Namespace Reference

Classes

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

Functions

def getEventNumber (evt)
 

Variables

 aida2root
 

Function Documentation

◆ getEventNumber()

def GaudiMP.pTools.getEventNumber (   evt)

Definition at line 750 of file pTools.py.

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

Variable Documentation

◆ aida2root

GaudiMP.pTools.aida2root

Definition at line 56 of file pTools.py.

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