Panel class
Definition at line 76 of file RPCRawDataMonUtils.py.
◆ __init__()
def RPCRawDataMonUtils.Panel.__init__ |
( |
|
self, |
|
|
|
properties, |
|
|
|
index |
|
) |
| |
◆ getLocalPos()
def RPCRawDataMonUtils.Panel.getLocalPos |
( |
|
self | ) |
|
Definition at line 169 of file RPCRawDataMonUtils.py.
169 def getLocalPos(self):
170 etaStation = abs(self.stationEta)
171 (sector, layer) = self.getSector()
173 if self.stationName == 10 :
174 etaStation = 2*etaStation
175 elif self.stationName == 9:
176 etaStation = 2*etaStation-1
178 if abs(sector) == 13
and self.stationName == 2:
181 return [etaStation, self.doubletZ, self.doubletPhi, self.measPhi]
◆ getPanelName()
def RPCRawDataMonUtils.Panel.getPanelName |
( |
|
self | ) |
|
Definition at line 103 of file RPCRawDataMonUtils.py.
103 def getPanelName(self):
104 self.stationNames = {2:
'BML', 3:
'BMS', 4:
'BOL', 5:
'BOS', 8:
'BMF' , 9:
'BOF', 10:
'BOG', 53:
'BME'}
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)
112 myphi_part = (2 * self.stationPhi) - 1
114 if self.stationEta > 0:
116 elif self.stationEta < 0:
121 if (self.stationName == 3
or self.stationName == 5
or self.stationName == 8
or self.stationName == 9
or self.stationName == 10) :
125 str_phi =
"0" +
str(myphi_part)
127 str_phi =
str(myphi_part)
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)):
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)):
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)):
145 str_PICO =
".NU"+
str(self.doubletR)+
"."
147 if(self.measPhi == 0):
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
◆ getSector()
def RPCRawDataMonUtils.Panel.getSector |
( |
|
self | ) |
|
Definition at line 86 of file RPCRawDataMonUtils.py.
87 myphi_part = (2 * self.stationPhi) - 1
88 if (self.stationName == 3
or self.stationName == 5
or self.stationName == 8
or self.stationName == 9
or self.stationName == 10) :
92 if self.stationEta < 0:
95 if (self.stationName == 2
or self.stationName == 3
or self.stationName == 8
or self.stationName == 53) :
96 layer = (self.doubletR-1)*2 + self.gasGap
98 layer = 4+(self.doubletR-1)*2 + self.gasGap
100 return (sector, layer)
◆ setPanelProp()
def RPCRawDataMonUtils.Panel.setPanelProp |
( |
|
self, |
|
|
|
properties |
|
) |
| |
Definition at line 156 of file RPCRawDataMonUtils.py.
156 def setPanelProp(self, properties):
157 self.properties = properties
159 self.stationName = self.properties[
"stationName"]
160 self.stationPhi = self.properties[
"stationPhi"]
161 self.stationEta = self.properties[
"stationEta"]
162 self.doubletR = self.properties[
"doubletR"]
163 self.doubletPhi = self.properties[
"doubletPhi"]
164 self.doubletZ = self.properties[
"doubletZ"]
165 self.gasGap = self.properties[
"gasGap"]
166 self.measPhi = self.properties[
"measPhi"]
◆ doubletPhi
RPCRawDataMonUtils.Panel.doubletPhi |
◆ doubletR
RPCRawDataMonUtils.Panel.doubletR |
◆ doubletZ
RPCRawDataMonUtils.Panel.doubletZ |
◆ gasGap
RPCRawDataMonUtils.Panel.gasGap |
◆ index
RPCRawDataMonUtils.Panel.index |
|
static |
◆ measPhi
RPCRawDataMonUtils.Panel.measPhi |
◆ panel_name [1/2]
string RPCRawDataMonUtils.Panel.panel_name = '' |
|
static |
◆ panel_name [2/2]
RPCRawDataMonUtils.Panel.panel_name |
◆ properties
RPCRawDataMonUtils.Panel.properties |
◆ stationEta
RPCRawDataMonUtils.Panel.stationEta |
◆ stationName
RPCRawDataMonUtils.Panel.stationName |
◆ stationNames
RPCRawDataMonUtils.Panel.stationNames |
◆ stationPhi
RPCRawDataMonUtils.Panel.stationPhi |
The documentation for this class was generated from the following file: