ATLAS Offline Software
Loading...
Searching...
No Matches
RPCRawDataMonUtils.Panel Class Reference
Collaboration diagram for RPCRawDataMonUtils.Panel:

Public Member Functions

 __init__ (self, properties, index)
 getSector (self)
 getPanelName (self)
 setPanelProp (self, properties)
 getLocalPos (self)

Public Attributes

int stationName = 10) :
dict stationNames = {2:'BML', 3:'BMS', 4:'BOL', 5:'BOS', 8:'BMF' , 9:'BOF', 10:'BOG', 53:'BME'}
int measPhi = 0):
 properties = properties
 stationPhi = self.properties["stationPhi"]
 stationEta = self.properties["stationEta"]
 doubletR = self.properties["doubletR"]
 doubletPhi = self.properties["doubletPhi"]
 doubletZ = self.properties["doubletZ"]
 gasGap = self.properties["gasGap"]

Static Public Attributes

str panel_name = ''
 index

Detailed Description

Panel class

Definition at line 76 of file RPCRawDataMonUtils.py.

Constructor & Destructor Documentation

◆ __init__()

RPCRawDataMonUtils.Panel.__init__ ( self,
properties,
index )

Definition at line 80 of file RPCRawDataMonUtils.py.

80 def __init__(self, properties, index):

Member Function Documentation

◆ getLocalPos()

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()
172
173 if self.stationName == 10 : #'BOG':
174 etaStation = 2*etaStation
175 elif self.stationName == 9:
176 etaStation = 2*etaStation-1
177
178 if abs(sector) == 13 and self.stationName == 2: #BME BML
179 etaStation += 1
180
181 return [etaStation, self.doubletZ, self.doubletPhi, self.measPhi]
182

◆ getPanelName()

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'}
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" # N: NULL, "ETA NOT DEFINED"
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)+"." # NU: NULL, Not defined
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
if(febId1==febId2)

◆ getSector()

RPCRawDataMonUtils.Panel.getSector ( self)

Definition at line 86 of file RPCRawDataMonUtils.py.

86 def getSector(self):
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) :
89 myphi_part += 1
90
91 sector = myphi_part
92 if self.stationEta < 0:
93 sector = -sector
94
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
97 else:
98 layer = 4+(self.doubletR-1)*2 + self.gasGap
99
100 return (sector, layer)
101

◆ setPanelProp()

RPCRawDataMonUtils.Panel.setPanelProp ( self,
properties )

Definition at line 156 of file RPCRawDataMonUtils.py.

156 def setPanelProp(self, properties):
157 self.properties = properties
158
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"]
167

Member Data Documentation

◆ doubletPhi

RPCRawDataMonUtils.Panel.doubletPhi = self.properties["doubletPhi"]

Definition at line 163 of file RPCRawDataMonUtils.py.

◆ doubletR

RPCRawDataMonUtils.Panel.doubletR = self.properties["doubletR"]

Definition at line 162 of file RPCRawDataMonUtils.py.

◆ doubletZ

RPCRawDataMonUtils.Panel.doubletZ = self.properties["doubletZ"]

Definition at line 164 of file RPCRawDataMonUtils.py.

◆ gasGap

RPCRawDataMonUtils.Panel.gasGap = self.properties["gasGap"]

Definition at line 165 of file RPCRawDataMonUtils.py.

◆ index

RPCRawDataMonUtils.Panel.index
static

Definition at line 82 of file RPCRawDataMonUtils.py.

◆ measPhi

int RPCRawDataMonUtils.Panel.measPhi = 0):

Definition at line 147 of file RPCRawDataMonUtils.py.

◆ panel_name

str RPCRawDataMonUtils.Panel.panel_name = ''
static

Definition at line 77 of file RPCRawDataMonUtils.py.

◆ properties

RPCRawDataMonUtils.Panel.properties = properties

Definition at line 157 of file RPCRawDataMonUtils.py.

◆ stationEta

RPCRawDataMonUtils.Panel.stationEta = self.properties["stationEta"]

Definition at line 161 of file RPCRawDataMonUtils.py.

◆ stationName

int RPCRawDataMonUtils.Panel.stationName = 10) :

Definition at line 88 of file RPCRawDataMonUtils.py.

◆ stationNames

dict RPCRawDataMonUtils.Panel.stationNames = {2:'BML', 3:'BMS', 4:'BOL', 5:'BOS', 8:'BMF' , 9:'BOF', 10:'BOG', 53:'BME'}

Definition at line 104 of file RPCRawDataMonUtils.py.

◆ stationPhi

RPCRawDataMonUtils.Panel.stationPhi = self.properties["stationPhi"]

Definition at line 160 of file RPCRawDataMonUtils.py.


The documentation for this class was generated from the following file: