6 from simulation
import add_simulation
7 from reconstruction
import add_reconstruction
8 from reconstruction
import add_mdst_output
19 set_log_level(LogLevel.ERROR)
21 if 'BELLE2_BACKGROUND_DIR' not in os.environ:
22 B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
26 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
28 B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
35 eventinfosetter = register_module(
'EventInfoSetter')
36 eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
37 main.add_module(eventinfosetter)
40 add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
43 for m
in main.modules():
44 if m.type() ==
"BGOverlayExecutor":
45 m.logging.log_level = LogLevel.DEBUG
46 m.logging.debug_level = 100
50 add_reconstruction(main)
56 progress = register_module(
'Progress')
57 main.add_module(progress)