97 chargeSimCal = SVDChargeSimCal()
100 str(now.isoformat()) +
"_INFO:release-06_APVCouplings=0")
104 for layer
in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
105 layerNumber = layer.getLayerNumber()
106 for ladder
in geoCache.getLadders(layer):
107 ladderNumber = ladder.getLadderNumber()
108 for sensor
in geoCache.getSensors(ladder):
109 sensorNumber = sensor.getSensorNumber()
111 print(
"setting ChargeSimulation for " +
112 str(layerNumber) +
"." + str(ladderNumber) +
"." + str(sensorNumber) +
"." + str(side))
115 apvCoupling = apvCoupling_L3_V
122 if sensorNumber == 1:
123 apvCoupling = apvCoupling_fw_V
130 if sensorNumber == layerNumber - 1:
131 apvCoupling = apvCoupling_bk_V
138 apvCoupling = apvCoupling_or_V
146 apvCoupling = apvCoupling_L3_U
153 if sensorNumber == 1:
154 apvCoupling = apvCoupling_fw_U
161 if sensorNumber == layerNumber - 1:
162 apvCoupling = apvCoupling_bk_U
169 apvCoupling = apvCoupling_or_U
176 chargeSimCal.couplingConstant[
'C0'] = c0
177 chargeSimCal.couplingConstant[
'C1'] = c1
178 chargeSimCal.couplingConstant[
'C2'] = c2
179 chargeSimCal.couplingConstant[
'C3'] = c3
180 chargeSimCal.couplingConstant[
'APVCoupling'] = apvCoupling
181 chargeSimCal.electronWeight = ew
182 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, chargeSimCal)
187 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
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.