The Gaudi Framework
master (f31105fd)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
q
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
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
GaudiMP
pTools
Generated on Mon Apr 7 2025 16:26:42 for The Gaudi Framework by
1.8.18