Belle II Software
light-2406-ragdoll
pyroot_tfile.py
1
#!/usr/bin/env python3
2
3
10
11
# This test catches a regression in PyRoot (in root 5.34/19+?, fixed in 5.34/23)
12
from
basf2
import
find_file
13
import
ROOT
14
15
path = find_file(
'framework/tests/chaintest_2.root'
)
16
f = ROOT.TFile(path)
17
tree = f.Get(
'tree'
)
18
19
tree.GetEntry(0)
20
hits = tree.PXDSimHits
21
nentries = hits.GetEntriesFast()
22
print(nentries)
23
hit = hits[0]
24
hit.Dump()
framework
tests
pyroot_tfile.py
Generated on Tue Jul 9 2024 23:29:16 for Belle II Software by
1.9.6