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