12 from PXDHitErrorsTTree
import PXDHitErrorsTTree
13 b2.logging.log_level = b2.LogLevel.WARNING
16 particlegun = b2.register_module(
'ParticleGun')
18 eventinfosetter = b2.register_module(
'EventInfoSetter')
20 progress = b2.register_module(
'Progress')
22 gearbox = b2.register_module(
'Gearbox')
24 geometry = b2.register_module(
'Geometry')
26 simulation = b2.register_module(
'FullSim')
28 pxddigi = b2.register_module(
'PXDDigitizer')
30 pxdclust = b2.register_module(
'PXDClusterizer')
32 output = b2.register_module(
'RootOutput')
37 eventinfosetter.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,
70 geometry.param(
'components', [
'MagneticField',
'PXD'])
73 pxddigi.param(
'ElectronicEffects',
True)
74 pxddigi.param(
'SimpleDriftModel',
False)
77 main = b2.create_path()
78 main.add_module(eventinfosetter)
79 main.add_module(progress)
80 main.add_module(particlegun)
81 main.add_module(gearbox)
82 main.add_module(geometry)
83 main.add_module(simulation)
84 main.add_module(pxddigi)
85 main.add_module(pxdclust)
86 main.add_module(analyze)