22from simulation
import add_simulation
23from reconstruction
import add_reconstruction
24from mdst
import add_mdst_output
28b2.set_log_level(b2.LogLevel.ERROR)
31main = b2.create_path()
34eventinfosetter = b2.register_module(
'EventInfoSetter')
35eventinfosetter.param(
'evtNumList', [100])
36main.add_module(eventinfosetter)
39evtgeninput = b2.register_module(
'EvtGenInput')
40evtgeninput.param(
'userDECFile',
41 b2.find_file(
'top/examples/B2Kpi.dec'))
42main.add_module(evtgeninput)
46if 'BELLE2_BACKGROUND_DIR' in os.environ:
47 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
48add_simulation(main, bkgfiles=bg)
51add_reconstruction(main)
54add_mdst_output(main, filename=
'evtgenB2Kpi.mdst.root')
57ntuple = b2.register_module(
'TOPNtuple')
58ntuple.param(
'outputFileName',
'ntupleB2Kpi.root')
59main.add_module(ntuple)
62progress = b2.register_module(
'Progress')
63main.add_module(progress)