The Gaudi Framework
v36r13 (995e4364)
Classes
|
Functions
|
Variables
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
751
of file
pTools.py
.
751
def
getEventNumber
(evt):
752
# The class-independent version of the Event Number Retrieval method
753
#
754
n =
None
755
# First Attempt : Unpacked Event Data
756
lst = [
"/Event/Gen/Header"
,
"/Event/Rec/Header"
]
757
for
l
in
lst:
758
try
:
759
n = evt[l].evtNumber()
760
return
n
761
except
Exception:
762
# No evt number at this path
763
continue
764
765
# second attepmt : try DAQ/RawEvent data
766
# The Evt Number is in bank type 16, bank 0, data pt 4
767
try
:
768
n = evt[
"/Event/DAQ/RawEvent"
].banks(16)[0].data()[4]
769
return
n
770
except
Exception:
771
pass
772
773
# Default Action
774
return
n
775
776
777
# ================================= EOF =======================================
Variable Documentation
◆
aida2root
GaudiMP.pTools.aida2root
Definition at line
56
of file
pTools.py
.
GaudiMP.pTools.getEventNumber
def getEventNumber(evt)
Definition:
pTools.py:751
GaudiMP
pTools
Generated on Mon Jun 5 2023 12:16:18 for The Gaudi Framework by
1.8.18