13from simulation
import add_simulation
14from reconstruction
import add_reconstruction
15from mdst
import add_mdst_output
28b2.set_log_level(b2.LogLevel.ERROR)
30if 'BELLE2_BACKGROUND_DIR' not in os.environ:
31 b2.B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
35bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
37 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
41main = b2.create_path()
44eventinfosetter = b2.register_module(
'EventInfoSetter')
45eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
46main.add_module(eventinfosetter)
49evtgeninput = b2.register_module(
'EvtGenInput')
50main.add_module(evtgeninput)
53add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
59 paths += m.get_all_condition_paths()
60 if m.type() ==
"BGOverlayExecutor":
61 m.logging.log_level = b2.LogLevel.DEBUG
62 m.logging.debug_level = 20
65add_reconstruction(main)
71progress = b2.register_module(
'Progress')
72main.add_module(progress)