12SVD Default FADC Masked Strips Calibration importer.
13Script to Import Calibrations into a local DB
16from ROOT
import Belle2
18from basf2
import conditions
as b2conditions
20now = datetime.datetime.now()
24 '''default importer for FADC masked strips'''
32 0,
"FADCMaskedStrips_default_" + str(now.isoformat()) +
"_INFO:_noFADCMaskedstrips")
36 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
37 layerNumber = layer.getLayerNumber()
38 for ladder
in geoCache.getLadders(layer):
39 ladderNumber = ladder.getLadderNumber()
40 for sensor
in geoCache.getSensors(ladder):
41 sensorNumber = sensor.getSensorNumber()
44 print(
"setting masked strips default value (0, not masked) for " +
45 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber))
46 if side == 0
and not layerNumber == 3:
49 for strip
in range(0, Nstrips):
50 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, 0)
59b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
61main = b2.create_path()
64eventinfosetter = b2.register_module(
'EventInfoSetter')
65eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
66main.add_module(eventinfosetter)
68main.add_module(
"Gearbox")
69main.add_module(
"Geometry")
74progress = b2.register_module(
'Progress')
75main.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.