12 """This steering file includes all modules of the
16 basf2 EclRefactoring.py [-- --bkgDirectory <path_to_files>]
22 from simulation
import add_simulation
23 from reconstruction
import add_reconstruction
24 from mdst
import add_mdst_output
29 parser = argparse.ArgumentParser()
31 parser.add_argument(
'--bkgDirectory',
32 help=
'Path to beam background directory'
33 'If you want to add beam background, pass this option.')
37 args = argparser().parse_args()
40 b2.set_log_level(b2.LogLevel.INFO)
43 b2.set_random_seed(123456)
46 mainPath = b2.create_path()
49 eventInfoSetter = b2.register_module(
'EventInfoSetter')
50 mainPath.add_module(eventInfoSetter)
53 evtGenInput = b2.register_module(
'EvtGenInput')
54 mainPath.add_module(evtGenInput)
59 bgFiles = glob.glob(args.bkgDirectory +
'/*.root')
61 add_simulation(mainPath, bkgfiles=bgFiles)
63 add_simulation(mainPath)
66 add_reconstruction(mainPath)
72 filename=
'ecl_refactoring.mdst.root',
76 'ECLConnectedRegions',
81 progressBar = b2.register_module(
'ProgressBar')
82 mainPath.add_module(progressBar)
85 mainPath.add_module(
'Progress')