14 from SVDChargeSharing
import SVDChargeSharing
15 b2.logging.log_level = b2.LogLevel.WARNING
18 particlegun = b2.register_module(
'ParticleGun')
20 eventinfosetter = b2.register_module(
'EventInfoSetter')
22 progress = b2.register_module(
'Progress')
24 gearbox = b2.register_module(
'Gearbox')
26 geometry = b2.register_module(
'Geometry')
28 output = b2.register_module(
'RootOutput')
33 eventinfosetter.param(
'evtNumList', [100000])
38 'pdgCodes': [211, -211, 11, -11],
39 'momentumGeneration':
'normal',
40 'momentumParams': [3, 0.2],
41 'phiGeneration':
'uniform',
42 'phiParams': [0, 360],
43 'thetaGeneration':
'uniform',
44 'thetaParams': [89, 91],
45 'vertexGeneration':
'normal',
46 'xVertexParams': [0.0, 0.1],
47 'yVertexParams': [0.0, 0.1],
48 'zVertexParams': [0.0, 5.0]
57 'Barrel': {
'U': 0.12,
'V': 0.39},
58 'Layer3': {
'U': 0.08,
'V': 0.26},
59 'Slanted': {
'U': 0.11,
'V': 0.42}
63 "overridePrefix":
"//DetectorComponent[@name='SVD']//Components/",
65 ((
'Sensor' if sensor ==
'Layer3' else 'SensorBase') +
66 '[@type=\"' + sensor +
'\"]/Active/BackplaneCapacitance' + coordinate,
67 str(factor * value),
'pF')
68 for (sensor, vals)
in base_params.items()
for (coordinate, value)
in vals.items()
73 main = b2.create_path()
74 main.add_module(eventinfosetter)
75 main.add_module(progress)
76 main.add_module(particlegun)
77 main.add_module(gearbox)
78 main.add_module(geometry)
79 main.add_module(
"FullSim")
82 main.add_module(analyze)
def add_svd_simulation(path, useConfigFromDB=False, daqMode=2, relativeShift=9)
def add_svd_reconstruction(path, isROIsimulation=False, createRecoDigits=False, applyMasking=False)