Belle II Software
development
Toggle main menu visibility
Main Page
Topics
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
a
b
c
e
f
g
n
p
s
v
z
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 Symbols
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
alignment
►
analysis
►
arich
►
b2bii
►
background
►
beast
►
calibration
►
cdc
►
daq
►
decfiles
►
display
►
dqm
►
ecl
►
framework
►
generators
►
geometry
►
hlt
►
ir
►
klm
►
masterclass
►
mdst
►
mva
▼
online_book
▼
analysis
▼
topoana
MCGenTopo.py
topoana.py
►
awesome
►
basf2
►
tests
►
workflowmanagement
online_book_statistics.py
►
pxd
►
rawdata
►
reconstruction
►
simulation
►
site_scons
►
structure
►
svd
►
top
►
tracking
►
trg
►
validation
►
vxd
Doxygen.h
resource_analyzer.py
►
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 Sat May 17 2025 03:01:56 for Belle II Software by
1.13.2