13 SVD Default OldDefault Error Scaling Factors importer.
16 from ROOT
import Belle2
17 from ROOT.Belle2
import SVDPosErrScaleFactors
18 from basf2
import conditions
as b2conditions
27 now = datetime.datetime.now()
32 Defining the python module to do the import.
37 call the functions to import the cluster parameters
42 clsParam = SVDPosErrScaleFactors()
43 clsParam.scaleError_clSize1 = clsScaleErrSize1
44 clsParam.scaleError_clSize2 = clsScaleErrSize2
45 clsParam.scaleError_clSize3 = clsScaleErrSize3
49 "OldDefaultErrorScaleFactors_default_" +
52 "_INFO:_scaleFactors=fromSimulation")
57 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
58 layerNumber = layer.getLayerNumber()
59 for ladder
in geoCache.getLadders(layer):
60 ladderNumber = ladder.getLadderNumber()
61 for sensor
in geoCache.getSensors(ladder):
62 sensorNumber = sensor.getSensorNumber()
64 print(
"setting OldDefault Error Scale Factors for " +
65 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
69 clsParam.scaleError_clSize1 = 1.664
70 clsParam.scaleError_clSize2 = 0.977
71 clsParam.scaleError_clSize3 = 0.446
74 clsParam.scaleError_clSize1 = 1.859
75 clsParam.scaleError_clSize2 = 1.185
76 clsParam.scaleError_clSize3 = 0.459
78 clsParam.scaleError_clSize1 = 2.082
79 clsParam.scaleError_clSize2 = 1.218
80 clsParam.scaleError_clSize3 = 0.510
83 clsParam.scaleError_clSize1 = 1.301
84 clsParam.scaleError_clSize2 = 0.711
85 clsParam.scaleError_clSize3 = 0.619
88 clsParam.scaleError_clSize1 = 2.196
89 clsParam.scaleError_clSize2 = 0.889
90 clsParam.scaleError_clSize3 = 0.700
92 clsParam.scaleError_clSize1 = 0.813
93 clsParam.scaleError_clSize2 = 0.693
94 clsParam.scaleError_clSize3 = 0.630
96 print(
" size 1 = " + str(clsParam.scaleError_clSize1) +
", size 2 = " +
97 str(clsParam.scaleError_clSize2) +
", size >2 = " + str(clsParam.scaleError_clSize3))
99 cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
104 b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
106 main = b2.create_path()
109 eventinfosetter = b2.register_module(
'EventInfoSetter')
110 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
111 main.add_module(eventinfosetter)
113 main.add_module(
"Gearbox")
114 main.add_module(
"Geometry")
119 progress = b2.register_module(
'Progress')
120 main.add_module(progress)
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.