12SVD Default CoGOnly Position Error Formulas importer.
15from ROOT
import Belle2
16from ROOT.Belle2
import SVDPositionErrorFunction
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 = SVDPositionErrorFunction()
45 "CoGOnlyPositionError_default_" +
48 "_INFO:_formulas=rel05")
52 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
53 layerNumber = layer.getLayerNumber()
54 for ladder
in geoCache.getLadders(layer):
55 ladderNumber = ladder.getLadderNumber()
56 for sensor
in geoCache.getSensors(ladder):
57 sensorNumber = sensor.getSensorNumber()
59 print(
"setting CoGOnly Position Error for " +
60 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
61 cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
66b2conditions.prepend_globaltag(
'svd_onlySVDinGeoConfiguration')
68main = b2.create_path()
71eventinfosetter = b2.register_module(
'EventInfoSetter')
72eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
73main.add_module(eventinfosetter)
75main.add_module(
"Gearbox")
76main.add_module(
"Geometry")
81progress = b2.register_module(
'Progress')
82main.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.