14 from simulation
import add_simulation
15 from reconstruction
import add_reconstruction
16 from reconstruction
import add_mdst_output
27 b2.set_log_level(b2.LogLevel.ERROR)
29 if 'BELLE2_BACKGROUND_DIR' not in os.environ:
30 b2.B2ERROR(
'BELLE2_BACKGROUND_DIR variable is not set - it must contain the path to BG overlay samples')
34 bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_DIR'] +
'/*.root')
36 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_DIR'])
40 main = b2.create_path()
43 eventinfosetter = b2.register_module(
'EventInfoSetter')
44 eventinfosetter.param({
'evtNumList': [10],
'runList': [1]})
45 main.add_module(eventinfosetter)
48 add_simulation(main, bkgfiles=bg, bkgOverlay=
True)
54 paths += m.get_all_condition_paths()
55 if m.type() ==
"BGOverlayExecutor":
56 m.logging.log_level = b2.LogLevel.DEBUG
57 m.logging.debug_level = 20
60 add_reconstruction(main)
66 progress = b2.register_module(
'Progress')
67 main.add_module(progress)