24b2.set_log_level(b2.LogLevel.WARNING)
29particlegun = b2.register_module(
'ParticleGun')
31eventinfosetter = b2.register_module(
'EventInfoSetter')
33progress = b2.register_module(
'Progress')
35gearbox = b2.register_module(
'Gearbox')
37geometry = b2.register_module(
'Geometry')
39simulation = b2.register_module(
'FullSim')
41PXDDIGI = b2.register_module(
'PXDDigitizer')
43PXDCLUST = b2.register_module(
'PXDClusterizer')
45output = b2.register_module(
'RootOutput')
49b2.set_random_seed(1028307)
53particlegun.param(
'pdgCodes', [-11, 11])
57particlegun.param(
'nTracks', 1)
61eventinfosetter.param({
'evtNumList': [1000],
'runList': [1]})
64output.param(
'outputFileName',
'PXDTestOutput.root')
67geometry.param(
'components', [
'MagneticField',
'PXD'])
69PXDDIGI.set_log_level(b2.LogLevel.INFO)
71PXDCLUST.set_log_level(b2.LogLevel.INFO)
76main = b2.create_path()
77main.add_module(eventinfosetter)
78main.add_module(progress)
79main.add_module(gearbox)
80main.add_module(geometry)
81main.add_module(particlegun)
82main.add_module(simulation)
83main.add_module(PXDDIGI)
84main.add_module(PXDCLUST)
86main.add_module(output)