13 SVD Default HotStrips Calibration importer.
14 Script to Import Calibrations into a local DB
17 from ROOT
import Belle2
19 from basf2
import conditions
as b2conditions
21 now = datetime.datetime.now()
25 '''default importer for hot strips'''
37 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
38 layerNumber = layer.getLayerNumber()
39 for ladder
in geoCache.getLadders(layer):
40 ladderNumber = ladder.getLadderNumber()
41 for sensor
in geoCache.getSensors(ladder):
42 sensorNumber = sensor.getSensorNumber()
45 print(
"setting hot strips default value (0, good strip) for " +
46 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber))
48 if side == 0
and not layerNumber == 3:
51 for strip
in range(0, Nstrips):
52 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, 0)
57 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
59 main = b2.create_path()
62 eventinfosetter = b2.register_module(
'EventInfoSetter')
63 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
64 main.add_module(eventinfosetter)
66 main.add_module(
"Gearbox")
67 main.add_module(
"Geometry")
72 progress = b2.register_module(
'Progress')
73 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.