ATLAS Offline Software
Functions
dump-event-from-file Namespace Reference
Functions
def
dumpEvent
(fname, idx)
Function Documentation
◆
dumpEvent()
def
dump
-
event
-from-file.dumpEvent
(
fname
,
idx
)
Definition at line
9
of file
dump-event-from-file.py
.
9
def
dumpEvent
(fname, idx):
10
# import ROOT via RootUtils
11
import
PyUtils.RootUtils
as
ru
12
ru.import_root()
13
14
# file dumper: file, tree
15
data = ru.RootFileDumper(fname,
"CollectionTree"
)
16
17
# iterator: tree, idx
18
values = data.dump(
"CollectionTree"
, [
int
(idx)])
19
20
# loop over the iterator and print the values
21
try
:
22
while
True
:
23
val =
next
(values)
24
print
(val)
25
except
StopIteration:
26
pass
27
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
dump-event-from-file.dumpEvent
def dumpEvent(fname, idx)
Definition:
dump-event-from-file.py:9
fillPileUpNoiseLumi.next
next
Definition:
fillPileUpNoiseLumi.py:52
Muon::print
std::string print(const MuPatSegment &)
Definition:
MuonTrackSteering.cxx:28
Generated on Thu Jul 4 2024 22:16:04 for ATLAS Offline Software by
1.8.18