32 from beamparameters
import add_beamparameters
34 b2.set_random_seed(1509)
40 output_filename =
'./' + release +
'/TV_data_' + release +
'.root'
42 print(output_filename)
44 path = b2.create_path()
46 eventinfosetter = b2.register_module(
'EventInfoSetter')
47 eventinfosetter.param(
'expList', [0])
48 eventinfosetter.param(
'runList', [1])
49 eventinfosetter.param(
'evtNumList', [10000])
51 progress = b2.register_module(
'Progress')
53 evtgeninput = b2.register_module(
'EvtGenInput')
54 evtgeninput.logging.log_level = b2.LogLevel.WARNING
56 beamparameters = add_beamparameters(path,
"Y4S")
58 root_output = b2.register_module(
'RootOutput')
59 root_output.param(
'outputFileName', output_filename)
61 path.add_module(eventinfosetter)
62 path.add_module(progress)
63 path.add_module(beamparameters)
64 path.add_module(evtgeninput)
65 path.add_module(root_output)