Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace 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
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
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
_
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
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
topoana.py
1
8
import
basf2
9
from
modularAnalysis
import
inputMdst
10
from
modularAnalysis
import
variablesToNtuple
11
from
variables.MCGenTopo
import
mc_gen_topo
12
import
os
# Newly added statement 1!
13
14
mypath = basf2.Path()
15
16
# load input ROOT file
17
inputMdst(basf2.find_file(
'B02D0pi0_D02pi0pi0.root'
,
'examples'
,
False
), mypath)
18
19
# Output the variables to a ntuple
20
variablesToNtuple
(
''
, mc_gen_topo(200),
'MCGenTopo'
,
'MCGenTopo.root'
, path=mypath)
21
22
# Process the events
23
basf2.process(mypath)
24
25
# Print out the summary
26
print(basf2.statistics)
27
28
# Invoke the TopoAna program
29
os.system(
'topoana.exe topoana.card'
)
# Newly added statement 2!
variablesToNtuple
Definition:
variablesToNtuple.py:1
variables.MCGenTopo
Definition:
MCGenTopo.py:1
online_book
analysis
topoana
topoana.py
Generated on Thu Apr 10 2025 02:38:55 for Belle II Software by
1.9.6