The Gaudi Framework  master (53dee381)
Loading...
Searching...
No Matches
GaudiMP.pTools Namespace Reference

Classes

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

Functions

 getEventNumber (evt)

Variables

 aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

Function Documentation

◆ getEventNumber()

getEventNumber ( evt)

Definition at line 742 of file pTools.py.

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

Variable Documentation

◆ aida2root

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

Definition at line 56 of file pTools.py.