22b2.set_log_level(b2.LogLevel.WARNING)
27particlegun = b2.register_module(
'ParticleGun')
29eventinfosetter = b2.register_module(
'EventInfoSetter')
31progress = b2.register_module(
'Progress')
33gearbox = b2.register_module(
'Gearbox')
35geometry = b2.register_module(
'Geometry')
37simulation = b2.register_module(
'FullSim')
39PXDDIGI = b2.register_module(
'PXDDigitizer')
41PXDPACKER = b2.register_module(
'PXDPacker')
43output = b2.register_module(
'RootOutput')
47b2.set_random_seed(1028307)
51particlegun.param(
'pdgCodes', [-11, 11])
55particlegun.param(
'nTracks', 1)
59eventinfosetter.param({
'evtNumList': [100],
'runList': [1]})
63output.param(
'outputFileName',
'PXDRawHit.root')
68PXDPACKER.param(
'dhe_to_dhc', [
69 [0, 2, 4, 34, 36, 38],
70 [1, 6, 8, 40, 42, 44],
71 [2, 10, 12, 46, 48, 50],
72 [3, 14, 16, 52, 54, 56],
73 [4, 3, 5, 35, 37, 39],
74 [5, 7, 9, 41, 43, 45],
75 [6, 11, 13, 47, 49, 51],
76 [7, 15, 17, 53, 55, 57],
81geometry.param(
'components', [
'MagneticField',
'PXD'])
86main = b2.create_path()
87main.add_module(eventinfosetter)
88main.add_module(progress)
89main.add_module(gearbox)
90main.add_module(geometry)
91main.add_module(particlegun)
92main.add_module(simulation)
93main.add_module(PXDDIGI)
94main.add_module(PXDPACKER)
95main.add_module(output)