Belle II Software
light-2405-quaxo
Toggle main menu visibility
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
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 Mon Jun 24 2024 17:53:23 for Belle II Software by
1.9.6