13from simulation
import add_simulation
14from reconstruction
import add_reconstruction
15from mdst
import add_mdst_output
26b2.set_log_level(b2.LogLevel.ERROR)
28if 'BELLE2_BACKGROUND_DIR' not in os.environ:
29 b2.B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
33bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
35 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
39main = b2.create_path()
42eventinfosetter = b2.register_module(
'EventInfoSetter')
43eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
44main.add_module(eventinfosetter)
47add_simulation(main, bkgfiles=bg, bkgOverlay=
True, simulateT0jitter=
False)
53 paths += m.get_all_condition_paths()
54 if m.type() ==
"BGOverlayExecutor":
55 m.logging.log_level = b2.LogLevel.DEBUG
56 m.logging.debug_level = 20
59add_reconstruction(main)
65progress = b2.register_module(
'Progress')
66main.add_module(progress)