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