13 SVD Default Noise Calibration importer (MC).
14 Script to Import Calibrations into a local DB
17 from ROOT
import Belle2
19 from basf2
import conditions
as b2conditions
21 now = datetime.datetime.now()
24 # Phase 3 - scaled with 375
29 noise_origami_U = 2.40
30 noise_origami_V = 1.33
39 noise_origami_U = 3.32
40 noise_origami_V = 2.28
49 noise_origami_U = 2.88
50 noise_origami_V = 1.73
57 ''' default strip noise importer'''
65 str(now.isoformat()) +
"_INFO:_fromPhase3calibrations")
69 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
70 layerNumber = layer.getLayerNumber()
71 for ladder
in geoCache.getLadders(layer):
72 ladderNumber = ladder.getLadderNumber()
73 for sensor
in geoCache.getSensors(ladder):
74 sensorNumber = sensor.getSensorNumber()
77 print(
"setting Noise for " +
78 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
87 if sensorNumber == layerNumber - 1:
90 noise = noise_origami_V
98 if sensorNumber == layerNumber - 1:
101 noise = noise_origami_U
104 for strip
in range(0, Nstrips):
105 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, noise)
110 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
112 main = b2.create_path()
115 eventinfosetter = b2.register_module(
'EventInfoSetter')
116 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
117 main.add_module(eventinfosetter)
119 main.add_module(
"Gearbox")
120 main.add_module(
"Geometry")
125 progress = b2.register_module(
'Progress')
126 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.