36 def beginRun(self):
37 """
38 call the functions to import the cluster parameters
39 """
41
42
43 clsParam = SVDPosErrScaleFactors()
44 clsParam.scaleError_clSize1 = clsScaleErrSize1
45 clsParam.scaleError_clSize2 = clsScaleErrSize2
46 clsParam.scaleError_clSize3 = clsScaleErrSize3
47 clsParam.scaleError_clSize4 = clsScaleErrSize4
48 clsParam.scaleError_clSize5 = clsScaleErrSize5
49
51 clsParam,
52 "CoGOnlyErrorScaleFactors_default_" +
53 str(
54 now.isoformat()) +
55 "_INFO:_scaleFactors=1")
56
58
59 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
60 layerNumber = layer.getLayerNumber()
61 for ladder in geoCache.getLadders(layer):
62 ladderNumber = ladder.getLadderNumber()
63 for sensor in geoCache.getSensors(ladder):
64 sensorNumber = sensor.getSensorNumber()
65 for side in (0, 1):
66 print("setting CoGOnly Error Scale Factors for " +
67 str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
68 cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
69
71
72
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.