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
MCGenTopo.py
1
8
import
basf2
9
from
modularAnalysis
import
inputMdst
10
from
modularAnalysis
import
variablesToNtuple
11
from
variables.MCGenTopo
import
mc_gen_topo
12
13
mypath = basf2.Path()
14
15
# load input ROOT file
16
inputMdst(basf2.find_file(
'B02D0pi0_D02pi0pi0.root'
,
'examples'
,
False
), mypath)
17
18
# Output the variables to a ntuple
19
variablesToNtuple
(
''
, mc_gen_topo(200),
'MCGenTopo'
,
'MCGenTopo.root'
, path=mypath)
20
21
# Process the events
22
basf2.process(mypath)
23
24
# Print out the summary
25
print(basf2.statistics)
variablesToNtuple
Definition:
variablesToNtuple.py:1
variables.MCGenTopo
Definition:
MCGenTopo.py:1
online_book
analysis
topoana
MCGenTopo.py
Generated on Thu Apr 17 2025 03:25:44 for Belle II Software by
1.9.6