23b2.set_log_level(b2.LogLevel.WARNING)
28particlegun = b2.register_module(
'ParticleGun')
30eventinfosetter = b2.register_module(
'EventInfoSetter')
32progress = b2.register_module(
'Progress')
34gearbox = b2.register_module(
'Gearbox')
36geometry = b2.register_module(
'Geometry')
38simulation = b2.register_module(
'FullSim')
40PXDDIGI = b2.register_module(
'PXDDigitizer')
42SVDDIGI = b2.register_module(
'SVDDigitizer')
43SVDDIGI.param(
'StartSampling', -31.44)
44SVDDIGI.param(
'GenerateShaperDigits',
True)
50SVDSIGR = b2.register_module(
'SVDNNShapeReconstructor')
52SVDSIGR.param(
'WriteRecoDigits',
True)
54SVDCLUST1 = b2.register_module(
'SVDNNClusterizer')
56SVDCLUST2 = b2.register_module(
"SVDClusterizerDirect")
58output = b2.register_module(
'RootOutput')
62b2.set_random_seed(1028307)
66particlegun.param(
'pdgCodes', [-11, 11])
70particlegun.param(
'nTracks', 1)
73eventinfosetter.param({
'evtNumList': [1000],
'expList': [0],
'runList': [0]})
76output.param(
'outputFileName',
'SVDTestOutput.root')
80geometry.param(
'components', [
'MagneticField',
'PXD',
'SVD'])
85main = b2.create_path()
86main.add_module(eventinfosetter)
87main.add_module(progress)
88main.add_module(gearbox)
89main.add_module(geometry)
90main.add_module(particlegun)
91main.add_module(simulation)
92main.add_module(PXDDIGI)
93main.add_module(SVDDIGI)
94main.add_module(SVDSIGR)
95main.add_module(dump_digits())
96main.add_module(SVDCLUST2)
97main.add_module(dump_clusters())
98main.add_module(output)