The Gaudi Framework
v25r3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Namespace List
Namespace Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Classes
|
Functions
|
Variables
GaudiMP.pTools Namespace Reference
Classes
class
FileRecordsAgent
class
HistoAgent
class
LumiFSR
class
PackedCaloHypo
class
Syncer
class
SyncMini
Functions
def
getEventNumber
Variables
aida2root
= gbl.Gaudi.Utils.Aida2ROOT.aida2root
Function Documentation
def GaudiMP.pTools.getEventNumber
(
evt
)
Definition at line
687
of file
pTools.py
.
687
688
def
getEventNumber
( evt ) :
689
# The class-independent version of the Event Number Retrieval method
690
#
691
n =
None
692
# First Attempt : Unpacked Event Data
693
lst = [
'/Event/Gen/Header'
,
694
'/Event/Rec/Header'
]
695
for
l
in
lst :
696
try
:
697
n = evt[l].evtNumber()
698
return
n
699
except
:
700
# No evt number at this path
701
continue
702
703
# second attepmt : try DAQ/RawEvent data
704
# The Evt Number is in bank type 16, bank 0, data pt 4
705
try
:
706
n = evt[
'/Event/DAQ/RawEvent'
].banks(16)[0].data()[4]
707
return
n
708
except
:
709
pass
710
711
# Default Action
712
return
n
713
714
# ================================= EOF =======================================
715
716
GaudiMP.pTools.getEventNumber
def getEventNumber
Definition:
pTools.py:687
Variable Documentation
GaudiMP.pTools.aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root
Definition at line
45
of file
pTools.py
.
GaudiMP
pTools
Generated on Wed Jul 9 2014 09:54:26 for The Gaudi Framework by
1.8.7