24 b2.set_log_level(b2.LogLevel.WARNING)
29 particlegun = b2.register_module(
'ParticleGun')
31 eventinfosetter = b2.register_module(
'EventInfoSetter')
33 progress = b2.register_module(
'Progress')
35 gearbox = b2.register_module(
'Gearbox')
37 geometry = b2.register_module(
'Geometry')
39 simulation = b2.register_module(
'FullSim')
41 PXDDIGI = b2.register_module(
'PXDDigitizer')
43 SVDDIGI = b2.register_module(
'SVDDigitizer')
44 SVDDIGI.param(
'StartSampling', -31.44)
45 SVDDIGI.param(
'GenerateShaperDigits',
True)
51 SVDSIGR = b2.register_module(
'SVDNNShapeReconstructor')
53 SVDSIGR.param(
'WriteRecoDigits',
True)
55 SVDCLUST1 = b2.register_module(
'SVDNNClusterizer')
57 SVDCLUST2 = b2.register_module(
"SVDClusterizerDirect")
59 output = b2.register_module(
'RootOutput')
63 b2.set_random_seed(1028307)
67 particlegun.param(
'pdgCodes', [-11, 11])
71 particlegun.param(
'nTracks', 1)
74 eventinfosetter.param({
'evtNumList': [1000],
'expList': [0],
'runList': [0]})
77 output.param(
'outputFileName',
'SVDTestOutput.root')
81 geometry.param(
'components', [
'MagneticField',
'PXD',
'SVD'])
86 main = b2.create_path()
87 main.add_module(eventinfosetter)
88 main.add_module(progress)
89 main.add_module(gearbox)
90 main.add_module(geometry)
91 main.add_module(particlegun)
92 main.add_module(simulation)
93 main.add_module(PXDDIGI)
94 main.add_module(SVDDIGI)
95 main.add_module(SVDSIGR)
96 main.add_module(dump_digits())
97 main.add_module(SVDCLUST2)
98 main.add_module(dump_clusters())
99 main.add_module(output)