12SVD Default Pedestal Calibration importer (MC).
13Script to Import Calibrations into a local DB
16from ROOT
import Belle2
19now = datetime.datetime.now()
26 """strip pedestal importer"""
29 """do everything here"""
34 str(now.isoformat()) +
"_INFO:_fakeNULLpedestals")
38 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
39 layerNumber = layer.getLayerNumber()
40 for ladder
in geoCache.getLadders(layer):
41 ladderNumber = ladder.getLadderNumber()
42 for sensor
in geoCache.getSensors(ladder):
43 sensorNumber = sensor.getSensorNumber()
51 for strip
in range(0, Nstrips):
52 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, pedestal)
57main = b2.create_path()
60eventinfosetter = b2.register_module(
'EventInfoSetter')
61eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
62main.add_module(eventinfosetter)
64main.add_module(
"Gearbox")
65main.add_module(
"Geometry", components=[
'SVD'])
70progress = b2.register_module(
'Progress')
71main.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.