14 from simulation
import add_simulation
15 from reconstruction
import add_reconstruction
16 from reconstruction
import add_mdst_output
29 b2.set_log_level(b2.LogLevel.ERROR)
31 if 'BELLE2_BACKGROUND_DIR' not in os.environ:
32 b2.B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
36 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
38 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
42 main = b2.create_path()
45 eventinfosetter = b2.register_module(
'EventInfoSetter')
46 eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
47 main.add_module(eventinfosetter)
50 evtgeninput = b2.register_module(
'EvtGenInput')
51 main.add_module(evtgeninput)
54 add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
60 paths += m.get_all_condition_paths()
61 if m.type() ==
"BGOverlayExecutor":
62 m.logging.log_level = b2.LogLevel.DEBUG
63 m.logging.debug_level = 20
66 add_reconstruction(main)
72 progress = b2.register_module(
'Progress')
73 main.add_module(progress)