12 from basf2
import set_log_level, LogLevel, register_module, create_path, process, statistics
15 set_log_level(LogLevel.ERROR)
19 eventinfosetter = register_module(
'EventInfoSetter')
20 eventinfosetter.param({
'evtNumList': [10000000],
'runList': [1]})
24 sadinput = register_module(
'SADInput')
25 sadinput.param(
'Filename',
'SADreaderInput.root')
31 sadinput.param(
'ReadMode', 1)
35 sadinput.param(
'AccRing', 0)
40 sadinput.param(
'ReadoutTime', 20000)
44 sadinput.param(
'Range', 390)
48 sadinput.set_log_level(LogLevel.DEBUG)
52 gearbox = register_module(
'Gearbox')
54 geometry = register_module(
'Geometry')
56 fullsim = register_module(
'FullSim')
63 rootoutput = register_module(
'RootOutput')
64 rootoutput.param(
'outputFileName',
'SADreaderOutput.root')
66 progress = register_module(
'Progress')
70 main.add_module(eventinfosetter)
71 main.add_module(gearbox)
72 main.add_module(sadinput)
73 main.add_module(geometry)
74 main.add_module(fullsim)
77 main.add_module(progress)
80 main.add_module(rootoutput)
86 print(
'Event Statistics:')