58 def beginRun(self):
59 '''begin run'''
60
62
64 str(now.isoformat()) + "_INFO:_fromPhase3calibrations")
65
67
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()
74 for side in (0, 1):
75 Nstrips = 768
76 print("setting Noise for " +
77 str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
78 if side == 0:
79 if layerNumber == 3:
80 noise = noise_L3_V
81 else:
82 Nstrips = 512
83 if sensorNumber == 1:
84 noise = noise_fwd_V
85 else:
86 if sensorNumber == layerNumber - 1:
87 noise = noise_bkw_V
88 else:
89 noise = noise_origami_V
90 if side == 1:
91 if layerNumber == 3:
92 noise = noise_L3_U
93 else:
94 if sensorNumber == 1:
95 noise = noise_fwd_U
96 else:
97 if sensorNumber == layerNumber - 1:
98 noise = noise_bkw_U
99 else:
100 noise = noise_origami_U
101
102 print(str(Nstrips))
103 for strip in range(0, Nstrips):
104 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, noise)
105
107
108
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.