12from PXDHitErrorsTTree
import PXDHitErrorsTTree
13b2.logging.log_level = b2.LogLevel.WARNING
16particlegun = b2.register_module(
'ParticleGun')
18eventinfosetter = b2.register_module(
'EventInfoSetter')
20progress = b2.register_module(
'Progress')
22gearbox = b2.register_module(
'Gearbox')
24geometry = b2.register_module(
'Geometry')
26simulation = b2.register_module(
'FullSim')
28pxddigi = b2.register_module(
'PXDDigitizer')
30pxdclust = b2.register_module(
'PXDClusterizer')
32output = b2.register_module(
'RootOutput')
37eventinfosetter.param({
'evtNumList': [10000],
'runList': [1]})
46 'pdgCodes': [211, -211, 11, -11],
48 'momentumGeneration':
'normal',
50 'momentumParams': [2, 0.2],
52 'phiGeneration':
'uniform',
54 'phiParams': [0, 360],
56 'thetaGeneration':
'uniformCos',
58 'thetaParams': [30, 150],
60 'vertexGeneration':
'normal',
62 'xVertexParams': [0.0, 0.5],
63 'yVertexParams': [0.0, 0.5],
64 'zVertexParams': [0.0, 0.5],
66 'independentVertices':
False,
70geometry.param(
'components', [
'MagneticField',
'PXD'])
73pxddigi.param(
'ElectronicEffects',
True)
74pxddigi.param(
'SimpleDriftModel',
False)
77main = b2.create_path()
78main.add_module(eventinfosetter)
79main.add_module(progress)
80main.add_module(particlegun)
81main.add_module(gearbox)
82main.add_module(geometry)
83main.add_module(simulation)
84main.add_module(pxddigi)
85main.add_module(pxdclust)
86main.add_module(analyze)