11"""This steering file includes all modules of the
15 basf2 EclRefactoring.py [-- --bkgDirectory <path_to_files>]
21from simulation import add_simulation
22from reconstruction import add_reconstruction
23from mdst import add_mdst_output
28 parser = argparse.ArgumentParser()
30 parser.add_argument('--bkgDirectory',
31 help=
'Path to beam background directory'
32 'If you want to add beam background, pass this option.')
36args = argparser().parse_args()
39b2.set_log_level(b2.LogLevel.INFO)
42b2.set_random_seed(123456)
45mainPath = b2.create_path()
48eventInfoSetter = b2.register_module(
'EventInfoSetter')
49mainPath.add_module(eventInfoSetter)
52evtGenInput = b2.register_module(
'EvtGenInput')
53mainPath.add_module(evtGenInput)
58 bgFiles = glob.glob(args.bkgDirectory +
'/*.root')
60 add_simulation(mainPath, bkgfiles=bgFiles)
62 add_simulation(mainPath)
65add_reconstruction(mainPath)
71 filename=
'ecl_refactoring.mdst.root',
75 'ECLConnectedRegions',
80progressBar = b2.register_module(
'ProgressBar')
81mainPath.add_module(progressBar)
84mainPath.add_module(
'Progress')