14 from simulation
import add_simulation
15 from reconstruction
import add_reconstruction
16 from mdst
import add_mdst_output
27 b2.set_log_level(b2.LogLevel.ERROR)
29 if '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')
34 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'] +
'/*.root')
36 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'])
40 main = b2.create_path()
43 eventinfosetter = b2.register_module(
'EventInfoSetter')
44 eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
45 main.add_module(eventinfosetter)
48 evtgeninput = b2.register_module(
'EvtGenInput')
49 main.add_module(evtgeninput)
52 add_simulation(main, bkgfiles=bg, bkgOverlay=
False)
55 add_reconstruction(main)
61 progress = b2.register_module(
'Progress')
62 main.add_module(progress)