11from basf2
import set_log_level, LogLevel, register_module, create_path, process, statistics
14set_log_level(LogLevel.ERROR)
18eventinfosetter = register_module(
'EventInfoSetter')
19eventinfosetter.param({
'evtNumList': [10000000],
'runList': [1]})
23sadinput = register_module(
'SADInput')
24sadinput.param(
'Filename',
'SADreaderInput.root')
30sadinput.param(
'ReadMode', 1)
34sadinput.param(
'AccRing', 0)
39sadinput.param(
'ReadoutTime', 20000)
43sadinput.param(
'Range', 390)
47sadinput.set_log_level(LogLevel.DEBUG)
51gearbox = register_module(
'Gearbox')
53geometry = register_module(
'Geometry')
55fullsim = register_module(
'FullSim')
62rootoutput = register_module(
'RootOutput')
63rootoutput.param(
'outputFileName',
'SADreaderOutput.root')
65progress = register_module(
'Progress')
69main.add_module(eventinfosetter)
70main.add_module(gearbox)
71main.add_module(sadinput)
72main.add_module(geometry)
73main.add_module(fullsim)
76main.add_module(progress)
79main.add_module(rootoutput)
85print(
'Event Statistics:')