14from simulation
import add_simulation
15from reconstruction
import add_reconstruction
16from mdst
import add_mdst_output
26b2.set_log_level(b2.LogLevel.ERROR)
28if 'BELLE2_BACKGROUND_MIXING_DIR' not in os.environ:
29 b2.B2ERROR(
'BELLE2_BACKGROUND_MIXING_DIR variable is not set - it must contain the path to BG mixing samples')
33bg = glob.glob(os.environ[
'BELLE2_BACKGROUND_MIXING_DIR'] +
'/*.root')
35 b2.B2ERROR(
'No files found in ', os.environ[
'BELLE2_BACKGROUND_MIXING_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=
False, simulateT0jitter=
False)
50add_reconstruction(main)
56progress = b2.register_module(
'Progress')
57main.add_module(progress)