13 SVD Default FADC Masked Strips 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 FADC masked strips'''
33 0,
"FADCMaskedStrips_default_" + str(now.isoformat()) +
"_INFO:_noFADCMaskedstrips")
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 masked strips default value (0, not masked) for " +
46 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber))
47 if side == 0
and not layerNumber == 3:
50 for strip
in range(0, Nstrips):
51 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, 0)
60 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
62 main = b2.create_path()
65 eventinfosetter = b2.register_module(
'EventInfoSetter')
66 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
67 main.add_module(eventinfosetter)
69 main.add_module(
"Gearbox")
70 main.add_module(
"Geometry")
75 progress = b2.register_module(
'Progress')
76 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.