8 def __init__(self, stationIndex = -1, stationEta = -1, stationPhi = -1) -> None:
10 self.
__stationEta = stationEta
if stationEta < 128
else stationEta - 255
25 return "{stationName} eta: {stationEta:2} phi: {stationPhi: 2}".format(stationName = self.
stationName(),
33 __transDict = { 0:
"BIL", 1:
"BIS", 7:
"BIR",
34 2:
"BML", 3:
"BMS", 8:
"BMF", 53:
"BME", 54:
"BMG", 52:
"BIM",
35 4:
"BOL", 5:
"BOS", 9:
"BOF", 10:
"BOG",
36 6:
"BEE", 14:
"EEL", 15:
"EES",
40 41:
"T1F", 42:
"T1E", 43:
"T2F", 44:
"T2E",
41 45:
"T3F", 46:
"T3E", 47:
"T4F", 48:
"T4E"
52 def __init__(self, stationIndex=-1, stationEta=-1, stationPhi=-1,
53 doubletR = -1, doubletPhi = -1, doubletZ = -1,
54 gasGap =-1, measuresPhi = False, strip = -1) -> None:
55 super().
__init__(stationIndex, stationEta, stationPhi)
77 rpcIdStr = StationIdentifier.__str__(self)
78 rpcIdStr+=
" measuresPhi: {measPhi:2}".format(measPhi =
"si" if self.
measuresPhi()
else "no")
80 if self.
doubletR() > 0: rpcIdStr+=
" doubletR: {doubR:2}".format(doubR = self.
doubletR())
81 if self.
doubletZ() > 0: rpcIdStr+=
" doubletZ: {doubZ:2}".format(doubZ = self.
doubletZ())
82 if self.
doubletPhi() > 0: rpcIdStr+=
" doubletPhi: {doubPhi:2}".format(doubPhi = self.
doubletPhi())
83 if self.
gasGap() > 0: rpcIdStr+=
" gasGap: {gasGap:2}".format(gasGap = self.
gasGap())
84 if self.
strip() > 0: rpcIdStr+=
" strip: {strip:2}".format(strip = self.
strip())
87 if StationIdentifier.__lt__(self, other):
89 if self.
doubletR() != other.doubletR():
90 return self.
doubletR() < other.doubletR()
91 if self.
doubletZ() != other.doubletZ():
92 return self.
doubletZ() < other.doubletZ()
95 if self.
gasGap() != other.gasGap():
96 return self.
gasGap() < other.gasGap()
99 return self.
strip() < other.strip()
102 return StationIdentifier.__eq__(self, other)
and \
103 self.
doubletR() == other.doubletR()
and \
104 self.
doubletZ() == other.doubletZ()
and \
106 self.
gasGap() == other.gasGap()
and \
108 self.
strip() == other.strip()
gasGapID(self)
Returns an Identifier ignoring the strip number.
None __init__(self, stationIndex=-1, stationEta=-1, stationPhi=-1, doubletR=-1, doubletPhi=-1, doubletZ=-1, gasGap=-1, measuresPhi=False, strip=-1)
Basic class to represent a muon Identifier with the fields stationName, stationPhi,...
str stationName(self)
Translates the stationIndex into the stationName.
None __init__(self, stationIndex=-1, stationEta=-1, stationPhi=-1)
basic constructor taking the stationIndex, stationPhi, station Eta of a muon identifier