12SVD Default OldDefault Error Scaling Factors importer.
15from ROOT
import Belle2
16from ROOT.Belle2
import SVDPosErrScaleFactors
17from basf2
import conditions
as b2conditions
26now = datetime.datetime.now()
31 Defining the python module to do the import.
36 call the functions to import the cluster parameters
41 clsParam = SVDPosErrScaleFactors()
42 clsParam.scaleError_clSize1 = clsScaleErrSize1
43 clsParam.scaleError_clSize2 = clsScaleErrSize2
44 clsParam.scaleError_clSize3 = clsScaleErrSize3
48 "OldDefaultErrorScaleFactors_default_" +
51 "_INFO:_scaleFactors=fromSimulation")
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()
63 print(
"setting OldDefault Error Scale Factors for " +
64 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
68 clsParam.scaleError_clSize1 = 1.664
69 clsParam.scaleError_clSize2 = 0.977
70 clsParam.scaleError_clSize3 = 0.446
73 clsParam.scaleError_clSize1 = 1.859
74 clsParam.scaleError_clSize2 = 1.185
75 clsParam.scaleError_clSize3 = 0.459
77 clsParam.scaleError_clSize1 = 2.082
78 clsParam.scaleError_clSize2 = 1.218
79 clsParam.scaleError_clSize3 = 0.510
82 clsParam.scaleError_clSize1 = 1.301
83 clsParam.scaleError_clSize2 = 0.711
84 clsParam.scaleError_clSize3 = 0.619
87 clsParam.scaleError_clSize1 = 2.196
88 clsParam.scaleError_clSize2 = 0.889
89 clsParam.scaleError_clSize3 = 0.700
91 clsParam.scaleError_clSize1 = 0.813
92 clsParam.scaleError_clSize2 = 0.693
93 clsParam.scaleError_clSize3 = 0.630
95 print(
" size 1 = " + str(clsParam.scaleError_clSize1) +
", size 2 = " +
96 str(clsParam.scaleError_clSize2) +
", size >2 = " + str(clsParam.scaleError_clSize3))
98 cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
103b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
105main = b2.create_path()
108eventinfosetter = b2.register_module(
'EventInfoSetter')
109eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
110main.add_module(eventinfosetter)
112main.add_module(
"Gearbox")
113main.add_module(
"Geometry")
118progress = b2.register_module(
'Progress')
119main.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.