13from SVDChargeSharing
import SVDChargeSharing
14b2.logging.log_level = b2.LogLevel.WARNING
17particlegun = b2.register_module(
'ParticleGun')
19eventinfosetter = b2.register_module(
'EventInfoSetter')
21progress = b2.register_module(
'Progress')
23gearbox = b2.register_module(
'Gearbox')
25geometry = b2.register_module(
'Geometry')
27output = b2.register_module(
'RootOutput')
32eventinfosetter.param(
'evtNumList', [100000])
37 'pdgCodes': [211, -211, 11, -11],
38 'momentumGeneration':
'normal',
39 'momentumParams': [3, 0.2],
40 'phiGeneration':
'uniform',
41 'phiParams': [0, 360],
42 'thetaGeneration':
'uniform',
43 'thetaParams': [89, 91],
44 'vertexGeneration':
'normal',
45 'xVertexParams': [0.0, 0.1],
46 'yVertexParams': [0.0, 0.1],
47 'zVertexParams': [0.0, 5.0]
56 'Barrel': {
'U': 0.12,
'V': 0.39},
57 'Layer3': {
'U': 0.08,
'V': 0.26},
58 'Slanted': {
'U': 0.11,
'V': 0.42}
62 "overridePrefix":
"//DetectorComponent[@name='SVD']//Components/",
64 ((
'Sensor' if sensor ==
'Layer3' else 'SensorBase') +
65 '[@type=\"' + sensor +
'\"]/Active/BackplaneCapacitance' + coordinate,
66 str(factor * value),
'pF')
67 for (sensor, vals)
in base_params.items()
for (coordinate, value)
in vals.items()
72main = b2.create_path()
73main.add_module(eventinfosetter)
74main.add_module(progress)
75main.add_module(particlegun)
76main.add_module(gearbox)
77main.add_module(geometry)
78main.add_module(
"FullSim")
81main.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)