23 from simulation
import add_simulation
24 from reconstruction
import add_reconstruction
25 from mdst
import add_mdst_output
29 b2.set_log_level(b2.LogLevel.ERROR)
32 main = b2.create_path()
35 eventinfosetter = b2.register_module(
'EventInfoSetter')
36 eventinfosetter.param(
'evtNumList', [100])
37 main.add_module(eventinfosetter)
40 evtgeninput = b2.register_module(
'EvtGenInput')
41 evtgeninput.param(
'userDECFile',
42 b2.find_file(
'top/examples/B2Kpi.dec'))
43 main.add_module(evtgeninput)
47 if 'BELLE2_BACKGROUND_DIR' in os.environ:
48 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
49 add_simulation(main, bkgfiles=bg)
52 add_reconstruction(main)
55 add_mdst_output(main, filename=
'evtgenB2Kpi.mdst.root')
58 ntuple = b2.register_module(
'TOPNtuple')
59 ntuple.param(
'outputFileName',
'ntupleB2Kpi.root')
60 main.add_module(ntuple)
63 progress = b2.register_module(
'Progress')
64 main.add_module(progress)