Belle II Software
release-05-01-25
MCGenTopo.py
1
import
basf2
2
from
modularAnalysis
import
inputMdst
3
from
modularAnalysis
import
variablesToNtuple
4
from
variables.MCGenTopo
import
mc_gen_topo
5
6
mypath = basf2.Path()
7
8
# load input ROOT file
9
inputMdst(
'default'
, basf2.find_file(
'B02D0pi0_D02pi0pi0.root'
,
'examples'
,
False
), mypath)
10
11
# Output the variables to a ntuple
12
variablesToNtuple
(
''
, mc_gen_topo(200),
'MCGenTopo'
,
'MCGenTopo.root'
, path=mypath)
13
14
# Process the events
15
basf2.process
(mypath)
16
17
# Print out the summary
18
print(basf2.statistics)
variablesToNtuple
Definition:
variablesToNtuple.py:1
basf2.process
def process(path, max_event=0)
Definition:
__init__.py:25
variables.MCGenTopo
Definition:
MCGenTopo.py:1
online_book
analysis
topoana
MCGenTopo.py
Generated on Fri Nov 5 2021 03:46:07 for Belle II Software by
1.8.17