Belle II Software
release-08-01-10
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 Mon Sep 23 2024 14:00:10 for Belle II Software by
1.9.1