6 from simulation
import add_simulation
7 from reconstruction
import add_reconstruction
8 from reconstruction
import add_mdst_output
21 set_log_level(LogLevel.ERROR)
23 if 'BELLE2_BACKGROUND_DIR' not in os.environ:
24 B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
28 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
30 B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
37 eventinfosetter = register_module(
'EventInfoSetter')
38 eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
39 main.add_module(eventinfosetter)
42 evtgeninput = register_module(
'EvtGenInput')
43 main.add_module(evtgeninput)
46 add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
49 for m
in main.modules():
50 if m.type() ==
"BGOverlayExecutor":
51 m.logging.log_level = LogLevel.DEBUG
52 m.logging.debug_level = 100
56 add_reconstruction(main)
62 progress = register_module(
'Progress')
63 main.add_module(progress)