12SVD Default Noise Calibration importer (MC).
13Script to Import Calibrations into a local DB
16from ROOT
import Belle2
18from basf2
import conditions
as b2conditions
20now = datetime.datetime.now()
23# Phase 3 - scaled with 375
56 ''' default strip noise importer'''
64 str(now.isoformat()) +
"_INFO:_fromPhase3calibrations")
68 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
69 layerNumber = layer.getLayerNumber()
70 for ladder
in geoCache.getLadders(layer):
71 ladderNumber = ladder.getLadderNumber()
72 for sensor
in geoCache.getSensors(ladder):
73 sensorNumber = sensor.getSensorNumber()
76 print(
"setting Noise for " +
77 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
86 if sensorNumber == layerNumber - 1:
89 noise = noise_origami_V
97 if sensorNumber == layerNumber - 1:
100 noise = noise_origami_U
103 for strip
in range(0, Nstrips):
104 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, noise)
109b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
111main = b2.create_path()
114eventinfosetter = b2.register_module(
'EventInfoSetter')
115eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
116main.add_module(eventinfosetter)
118main.add_module(
"Gearbox")
119main.add_module(
"Geometry")
124progress = b2.register_module(
'Progress')
125main.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.