ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RPCRawDataMonUtils.Panel Class Reference
Collaboration diagram for RPCRawDataMonUtils.Panel:

Public Member Functions

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

Public Attributes

 stationName
 
 stationNames
 
 doubletR
 
 measPhi
 
 panel_name
 
 properties
 
 stationPhi
 
 stationEta
 
 doubletPhi
 
 doubletZ
 
 gasGap
 

Static Public Attributes

string panel_name = ''
 
 index
 

Detailed Description

Panel class

Definition at line 76 of file RPCRawDataMonUtils.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 80 of file RPCRawDataMonUtils.py.

80  def __init__(self, properties, index):

Member Function Documentation

◆ 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()
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()

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'}
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 

◆ getSector()

def 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()

def 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

Definition at line 163 of file RPCRawDataMonUtils.py.

◆ doubletR

RPCRawDataMonUtils.Panel.doubletR

Definition at line 129 of file RPCRawDataMonUtils.py.

◆ doubletZ

RPCRawDataMonUtils.Panel.doubletZ

Definition at line 164 of file RPCRawDataMonUtils.py.

◆ gasGap

RPCRawDataMonUtils.Panel.gasGap

Definition at line 165 of file RPCRawDataMonUtils.py.

◆ index

RPCRawDataMonUtils.Panel.index
static

Definition at line 82 of file RPCRawDataMonUtils.py.

◆ measPhi

RPCRawDataMonUtils.Panel.measPhi

Definition at line 147 of file RPCRawDataMonUtils.py.

◆ panel_name [1/2]

string RPCRawDataMonUtils.Panel.panel_name = ''
static

Definition at line 77 of file RPCRawDataMonUtils.py.

◆ panel_name [2/2]

RPCRawDataMonUtils.Panel.panel_name

Definition at line 152 of file RPCRawDataMonUtils.py.

◆ properties

RPCRawDataMonUtils.Panel.properties

Definition at line 157 of file RPCRawDataMonUtils.py.

◆ stationEta

RPCRawDataMonUtils.Panel.stationEta

Definition at line 161 of file RPCRawDataMonUtils.py.

◆ stationName

RPCRawDataMonUtils.Panel.stationName

Definition at line 88 of file RPCRawDataMonUtils.py.

◆ stationNames

RPCRawDataMonUtils.Panel.stationNames

Definition at line 104 of file RPCRawDataMonUtils.py.

◆ stationPhi

RPCRawDataMonUtils.Panel.stationPhi

Definition at line 160 of file RPCRawDataMonUtils.py.


The documentation for this class was generated from the following file:
cscHashToHuman.getSector
def getSector(phi, tech)
Definition: cscHashToHuman.py:19
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567
str
Definition: BTagTrackIpAccessor.cxx:11