103 def getPanelName(self):
104 self.stationNames = {2:'BML', 3:'BMS', 4:'BOL', 5:'BOS', 8:'BMF' , 9:'BOF', 10:'BOG', 53:'BME'}
105
106 str_name = self.stationNames[self.stationName]
107 str_eta = str(abs(self.stationEta))
108 str_dPhi = "DP" + str(self.doubletPhi) + "."
109 str_gap = "Ly" + str(self.gasGap - 1) + "."
110 str_dZ = "DZ" + str(self.doubletZ)
111
112 myphi_part = (2 * self.stationPhi) - 1
113
114 if self.stationEta > 0:
115 str_side = "A"
116 elif self.stationEta < 0:
117 str_side = "C"
118 else:
119 str_side = "N"
120
121 if (self.stationName == 3 or self.stationName == 5 or self.stationName == 8 or self.stationName == 9 or self.stationName == 10) :
122 myphi_part += 1
123
124 if myphi_part < 10:
125 str_phi = "0" + str(myphi_part)
126 else:
127 str_phi = str(myphi_part)
128
129 if ((self.stationName == 2 and self.doubletR == 1) or
130 (self.stationName == 3 and self.doubletR == 1) or
131 (self.stationName == 53 and self.doubletR == 1) or
132 (self.stationName == 8 and self.doubletR == 1)):
133 str_PICO = ".CO."
134 elif ((self.stationName == 2 and self.doubletR == 2) or
135 (self.stationName == 3 and self.doubletR == 2) or
136 (self.stationName == 53 and self.doubletR == 2) or
137 (self.stationName == 8 and self.doubletR == 2)):
138 str_PICO = ".PI."
139 elif ((self.stationName == 4 and self.doubletR == 1) or
140 (self.stationName == 5 and self.doubletR == 1) or
141 (self.stationName == 9 and self.doubletR == 1) or
142 (self.stationName == 10 and self.doubletR == 1)):
143 str_PICO = ".CO."
144 else:
145 str_PICO = ".NU"+str(self.doubletR)+"."
146
147 if(self.measPhi == 0):
148 str_ETAPHI = "ETA."
149 else:
150 str_ETAPHI = "PHI."
151
152 self.panel_name = str_name + str_eta + str_side + str_phi + str_PICO + str_dPhi + str_gap + str_dZ + str_ETAPHI
153 return self.panel_name
154