Belle II Software
light-2403-persian
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
Classes
Class List
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
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 Fri Apr 12 2024 06:51:26 for Belle II Software by
1.9.1