12SVD Default CoG Time Calibration importer.
13Script to Import Calibrations into a local DB
16from ROOT
import Belle2
19now = datetime.datetime.now()
23 '''default cross talk strips importer'''
31 0,
"CrossTalkStrips_default_" + str(now.isoformat()) +
"_INFO:_noCrossTalkstrips")
34 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
35 layerNumber = layer.getLayerNumber()
36 for ladder
in geoCache.getLadders(layer):
37 ladderNumber = ladder.getLadderNumber()
38 for sensor
in geoCache.getSensors(ladder):
39 sensorNumber = sensor.getSensorNumber()
41 print(
"setting crossTalk strips default value (0, good strip) for " +
42 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber))
43 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, 0)
48main = b2.create_path()
51eventinfosetter = b2.register_module(
'EventInfoSetter')
52eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
53main.add_module(eventinfosetter)
55main.add_module(
"Gearbox")
56main.add_module(
"Geometry")
60progress = b2.register_module(
'Progress')
61main.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.