14from simulation
import add_simulation
15from reconstruction
import add_reconstruction
16from mdst
import add_mdst_output
27b2.set_log_level(b2.LogLevel.ERROR)
29if 'BELLE2_BACKGROUND_MIXING_DIR' not in os.environ:
30 b2.B2ERROR(
'BELLE2_BACKGROUND_MIXING_DIR variable is not set - it must contain the path to BG mixing samples')
34bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'] +
'/*.root')
36 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'])
40main = b2.create_path()
43eventinfosetter = b2.register_module(
'EventInfoSetter')
44eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
45main.add_module(eventinfosetter)
48evtgeninput = b2.register_module(
'EvtGenInput')
49main.add_module(evtgeninput)
52add_simulation(main, bkgfiles=bg, bkgOverlay=
False)
55add_reconstruction(main)
61progress = b2.register_module(
'Progress')
62main.add_module(progress)