13 from basf2
import conditions
as b2conditions
14 from simulation
import add_simulation
17 svdOnlySimulation =
False
20 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
22 main = b2.create_path()
26 eventinfosetter = b2.register_module(
'EventInfoSetter')
27 eventinfosetter.param(
'expList', [0])
28 eventinfosetter.param(
'runList', [1])
29 eventinfosetter.param(
'evtNumList', [numEvents])
30 main.add_module(eventinfosetter)
31 main.add_module(
'EventInfoPrinter')
32 main.add_module(
'EvtGenInput')
34 if not svdOnlySimulation:
36 add_simulation(main, simulateT0jitter=
True, usePXDDataReduction=
False, forceSetPXDDataReduction=
True)
38 for m
in main.modules():
39 if m.name() ==
"SVDEventInfoSetter":
40 m.param(
"useDB",
True)
42 m.param(
"relativeShift", 9)
43 m.set_log_level(b2.LogLevel.DEBUG)
45 if m.name() ==
"SVDDigitizer":
46 m.set_log_level(b2.LogLevel.INFO)
52 main.add_module(
'Gearbox')
55 geometry = b2.register_module(
'Geometry')
56 main.add_module(geometry)
59 eventt0 = b2.register_module(
'EventT0Generator')
60 eventt0.param(
'coreGaussWidth', 10.0)
62 eventt0.param(
'tailGaussFraction', 0.0)
63 eventt0.param(
'tailGaussWidth', 20.0)
67 main.add_module(
'FullSim')
76 svdevtinfoset = b2.register_module(
"SVDEventInfoSetter")
78 svdevtinfoset.param(
"daqMode", 3)
79 svdevtinfoset.param(
"relativeShift", 9)
80 svdevtinfoset.set_log_level(b2.LogLevel.DEBUG)
81 svdevtinfoset.set_debug_level(25)
83 main.add_module(svdevtinfoset)
85 digitizer = b2.register_module(
'SVDDigitizer')
86 digitizer.param(
'statisticsFilename',
"digitizer_test2021_1_hwclock.root")
87 digitizer.param(
'storeWaveforms',
True)
88 digitizer.param(
'signalsList',
"digitizer_test2021_1_hwclock.txt")
89 digitizer.set_log_level(b2.LogLevel.DEBUG)
90 digitizer.set_debug_level(30)
91 main.add_module(digitizer)
93 main.add_module(
'RootOutput')
94 main.add_module(
'Progress')