15 from simulation
import add_simulation
16 from reconstruction
import add_reconstruction
17 from mdst
import add_mdst_output
21 event_type = str(sys.argv[1])
22 b2.set_random_seed(12345)
25 bg = glob.glob(
'./BG/[A-Z]*.root')
28 main = b2.create_path()
31 eventinfosetter = b2.register_module(
'EventInfoSetter')
32 eventinfosetter.param(
'evtNumList', [1000])
33 eventinfosetter.param(
'runList', [1])
34 eventinfosetter.param(
'expList', [1])
35 main.add_module(eventinfosetter)
38 evtgeninput = b2.register_module(
'EvtGenInput')
39 evtgeninput.param(
'userDECFile', b2.find_file(f
'decfiles/dec/{event_type}.dec'))
40 main.add_module(evtgeninput)
47 add_reconstruction(main)
50 output_filename =
"test.dst.root"
51 add_mdst_output(main, filename=output_filename)