33 def initialize(self):
34 '''define histograms'''
35
36
37 self.test = []
38 self.testNew = []
39 self.size = TH1F("cl_size", "Cluster Size", 20, 0, 20)
40 self.sizeNew = TH1F("clNew_size", "New Cluster Size", 20, 0, 20)
41 self.time = TH1F("cl_time", "Cluster Time", 300, -100, 200)
42 self.timeNew = TH1F("clNew_time", "New Cluster Time", 300, -100, 200)
43 self.ff = TH1F("cl_ff", "Cluster FirstFrame", 4, -0.4, 3.5)
44 self.ffNew = TH1F("clNew_ff", "New Cluster FirstFrame", 4, -0.4, 3.5)
45 self.charge = TH1F("cl_charge", "Cluster Charge", 300, 0, 100)
46 self.chargeNew = TH1F("clNew_charge", "New Cluster Charge", 300, 0, 100)
47 self.SNR = TH1F("cl_SNR", "Cluster SNR", 100, 0, 100)
48 self.SNRNew = TH1F("clNew_SNR", "New Cluster SNR", 100, 0, 100)
49 self.position = TH1F("cl_position", "Cluster Position", 300, -6, 6)
50 self.positionNew = TH1F("clNew_position", "New Cluster Position", 300, -6, 6)
51 self.positionSigma = TH1F("cl_positionSigma", "Cluster Position Error", 300, 0, 100)
52 self.positionSigmaNew = TH1F("clNew_positionSigma", "New Cluster Position Error", 300, 0, 100)
53 self.positionS1 = TH1F("cl_positionS1", "Cluster Position Size 1", 300, -6, 6)
54 self.positionS1New = TH1F("clNew_positionS1", "New Cluster Position Size 1", 300, -6, 6)
55 self.positionS1Sigma = TH1F("cl_positionS1Sigma", "Cluster Position Error Size 1", 300, 0, 100)
56 self.positionS1SigmaNew = TH1F("clNew_positionS1Sigma", "New Cluster Position Error Size 1", 300, 0, 100)
57 self.positionS2 = TH1F("cl_positionS2", "Cluster Position Size 2", 300, -6, 6)
58 self.positionS2New = TH1F("clNew_positionS2", "New Cluster Position Size 2", 300, -6, 6)
59 self.positionS2Sigma = TH1F("cl_positionS2Sigma", "Cluster Position Size Error 2", 300, 0, 100)
60 self.positionS2SigmaNew = TH1F("clNew_positionS2Sigma", "New Cluster Position Error Size 2", 300, 0, 100)
61 self.positionS3 = TH1F("cl_positionS3", "Cluster Position Size >2", 300, -6, 6)
62 self.positionS3New = TH1F("clNew_positionS3", "New Cluster Position Size >2", 300, -6, 6)
63 self.positionS3Sigma = TH1F("cl_positionS3Sigma", "Cluster Position Error Size >2", 300, 0, 100)
64 self.positionS3SigmaNew = TH1F("clNew_positionS3Sigma", "New Cluster Position Error Size >2", 300, 0, 100)
65 self.positionPull = TH1F("cl_positionPull", "Cluster Position Pull", 200, -10, 10)
66 self.positionPullNew = TH1F("clNew_positionPull", "New Cluster Position Pull", 200, -10, 10)
67 self.positionPull1 = TH1F("cl_positionPull1", "Cluster Position Pull Size 1", 200, -10, 10)
68 self.positionPull1New = TH1F("clNew_positionPull1", "New Cluster Position Pull Size 1", 200, -10, 10)
69 self.positionPull2 = TH1F("cl_positionPull2", "Cluster Position Pull Size 2", 200, -10, 10)
70 self.positionPull2New = TH1F("clNew_positionPull2", "New Cluster Position Pull Size 2", 200, -10, 10)
71 self.positionPull3 = TH1F("cl_positionPull3", "Cluster Position Pull Size >2", 200, -10, 10)
72 self.positionPull3New = TH1F("clNew_positionPull3", "New Cluster Position Pull Size >2", 200, -10, 10)
73
74
76
77 ladderN = 0
78 sensorN = 0
79
80 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
81 layerNumber = layer.getLayerNumber()
82 ladderN = 0
83 for ladder in geoCache.getLadders(layer):
84 ladderN = ladderN + 1
85 sensorN = 0
86 for sensor in geoCache.getSensors(ladder):
87 sensorN = sensorN + 1
88 self.test.append(TH2F("cl_layer" + str(layerNumber), "Layer " + str(layerNumber) +
89 " Ladder VS Sensor.Side", ladderN, 0.5, ladderN + 0.5, 2 * sensorN, +0.75, sensorN + 0.75))
90 self.testNew.append(TH2F("clNew_layer" + str(layerNumber), "Layer " + str(layerNumber) +
91 " Ladder VS Sensor.Side", ladderN, 0.5, ladderN + 0.5, 2 * sensorN, +0.75, sensorN + 0.75))
92
93 print(self.test)
94
static GeoCache & getInstance()
Return a reference to the singleton instance.