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 PXDCLUST = b2.register_module(
'PXDClusterizer')
45 output = b2.register_module(
'RootOutput')
49 b2.set_random_seed(1028307)
53 particlegun.param(
'pdgCodes', [-11, 11])
57 particlegun.param(
'nTracks', 1)
61 eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
64 output.param(
'outputFileName',
'PXDTestOutput.root')
67 geometry.param(
'components', [
'MagneticField',
'PXD'])
69 PXDDIGI.set_log_level(b2.LogLevel.INFO)
71 PXDCLUST.set_log_level(b2.LogLevel.INFO)
76 main = b2.create_path()
77 main.add_module(eventinfosetter)
78 main.add_module(progress)
79 main.add_module(gearbox)
80 main.add_module(geometry)
81 main.add_module(particlegun)
82 main.add_module(simulation)
83 main.add_module(PXDDIGI)
84 main.add_module(PXDCLUST)
86 main.add_module(output)