34 def beginRun(self):
35 """
36 call the functions to import the cluster parameters
37 """
39
40
41 clsParam = SVDPosErrScaleFactors()
42 clsParam.scaleError_clSize1 = clsScaleErrSize1
43 clsParam.scaleError_clSize2 = clsScaleErrSize2
44 clsParam.scaleError_clSize3 = clsScaleErrSize3
45
47 clsParam,
48 "OldDefaultErrorScaleFactors_default_" +
49 str(
50 now.isoformat()) +
51 "_INFO:_scaleFactors=fromSimulation")
52
53
55
56 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
57 layerNumber = layer.getLayerNumber()
58 for ladder in geoCache.getLadders(layer):
59 ladderNumber = ladder.getLadderNumber()
60 for sensor in geoCache.getSensors(ladder):
61 sensorNumber = sensor.getSensorNumber()
62 for side in (0, 1):
63 print("setting OldDefault Error Scale Factors for " +
64 str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
65
66 if side == 0:
67 if layerNumber == 3:
68 clsParam.scaleError_clSize1 = 1.664
69 clsParam.scaleError_clSize2 = 0.977
70 clsParam.scaleError_clSize3 = 0.446
71 else:
72 if sensorNumber == 1:
73 clsParam.scaleError_clSize1 = 1.859
74 clsParam.scaleError_clSize2 = 1.185
75 clsParam.scaleError_clSize3 = 0.459
76 else:
77 clsParam.scaleError_clSize1 = 2.082
78 clsParam.scaleError_clSize2 = 1.218
79 clsParam.scaleError_clSize3 = 0.510
80 if side == 1:
81 if layerNumber == 3:
82 clsParam.scaleError_clSize1 = 1.301
83 clsParam.scaleError_clSize2 = 0.711
84 clsParam.scaleError_clSize3 = 0.619
85 else:
86 if sensorNumber == 1:
87 clsParam.scaleError_clSize1 = 2.196
88 clsParam.scaleError_clSize2 = 0.889
89 clsParam.scaleError_clSize3 = 0.700
90 else:
91 clsParam.scaleError_clSize1 = 0.813
92 clsParam.scaleError_clSize2 = 0.693
93 clsParam.scaleError_clSize3 = 0.630
94
95 print(" size 1 = " + str(clsParam.scaleError_clSize1) + ", size 2 = " +
96 str(clsParam.scaleError_clSize2) + ", size >2 = " + str(clsParam.scaleError_clSize3))
97
98 cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
99
101
102
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
base class for calibrations classes
static GeoCache & getInstance()
Return a reference to the singleton instance.
static Database & Instance()
Instance of a singleton Database.