ATLAS Offline Software
Loading...
Searching...
No Matches
Functions
dump-event-from-file Namespace Reference
Functions
dumpEvent
(fname, idx)
Function Documentation
◆
dumpEvent()
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
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
Generated on
for ATLAS Offline Software by
1.14.0