270 def initialize(self):
271 '''define histograms'''
272
273
274 self.test = []
275 self.testNew = []
276 self.time = TH1F("rd_time", "RecoDigit Time", 300, -100, 200)
277 self.timeNew = TH1F("rdNew_time", "New RecoDigit Time", 300, -100, 200)
278 self.charge = TH1F("rd_charge", "RecoDigit Charge", 300, 0, 100000)
279 self.chargeNew = TH1F("rdNew_charge", "New RecoDigit Charge", 300, 0, 100000)
280
281
283
284 ladderN = 0
285 sensorN = 0
286
287 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
288 layerNumber = layer.getLayerNumber()
289 ladderN = 0
290 for ladder in geoCache.getLadders(layer):
291 ladderN = ladderN + 1
292 sensorN = 0
293 for sensor in geoCache.getSensors(ladder):
294 sensorN = sensorN + 1
295 self.test.append(TH2F("rd_layer" + str(layerNumber), "Layer " + str(layerNumber) +
296 " Ladder VS Sensor.Side", ladderN, 0.5, ladderN + 0.5, 2 * sensorN, +0.75, sensorN + 0.75))
297 self.testNew.append(TH2F("rdNew_layer" + str(layerNumber), "Layer " + str(layerNumber) +
298 " Ladder VS Sensor.Side", ladderN, 0.5, ladderN + 0.5, 2 * sensorN, +0.75, sensorN + 0.75))
299
300 print(self.test)
301
static GeoCache & getInstance()
Return a reference to the singleton instance.