|
None | __init__ (self, stationIndex=-1, stationEta=-1, stationPhi=-1, doubletR=-1, doubletPhi=-1, doubletZ=-1, gasGap=-1, measuresPhi=False, strip=-1) |
|
def | doubletR (self) |
|
def | doubletPhi (self) |
|
def | doubletZ (self) |
|
def | gasGap (self) |
|
def | measuresPhi (self) |
|
def | strip (self) |
|
def | __str__ (self) |
|
bool | __lt__ (self, other) |
|
bool | __eq__ (self, other) |
|
def | gasGapID (self) |
| Returns an Identifier ignoring the strip number. More...
|
|
int | stationIndex (self) |
|
str | stationName (self) |
| Translates the stationIndex into the stationName
More...
|
|
int | stationEta (self) |
|
int | stationPhi (self) |
|
Definition at line 51 of file HitIdentifier.py.
◆ __init__()
None HitIdentifier.RpcIdentifier.__init__ |
( |
|
self, |
|
|
|
stationIndex = -1 , |
|
|
|
stationEta = -1 , |
|
|
|
stationPhi = -1 , |
|
|
|
doubletR = -1 , |
|
|
|
doubletPhi = -1 , |
|
|
|
doubletZ = -1 , |
|
|
|
gasGap = -1 , |
|
|
|
measuresPhi = False , |
|
|
|
strip = -1 |
|
) |
| |
Definition at line 52 of file HitIdentifier.py.
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)
57 self.__doubletR = doubletR
58 self.__doubletPhi = doubletPhi
59 self.__doubletZ = doubletZ
60 self.__gasGap = gasGap
61 self.__measuresPhi = measuresPhi
◆ __eq__()
bool HitIdentifier.RpcIdentifier.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Reimplemented from HitIdentifier.StationIdentifier.
Definition at line 101 of file HitIdentifier.py.
101 def __eq__(self, other) -> bool:
102 return StationIdentifier.__eq__(self, other)
and \
103 self.doubletR() == other.doubletR()
and \
104 self.doubletZ() == other.doubletZ()
and \
105 self.doubletPhi() == other.doubletPhi()
and \
106 self.gasGap() == other.gasGap()
and \
107 self.measuresPhi() == other.measuresPhi()
and \
108 self.strip() == other.strip()
◆ __lt__()
bool HitIdentifier.RpcIdentifier.__lt__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Reimplemented from HitIdentifier.StationIdentifier.
Definition at line 86 of file HitIdentifier.py.
86 def __lt__(self, other) -> bool:
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()
93 if self.doubletPhi() != other.doubletPhi():
94 return self.doubletPhi() < other.doubletPhi()
95 if self.gasGap() != other.gasGap():
96 return self.gasGap() < other.gasGap()
97 if self.measuresPhi() != other.measuresPhi():
98 return self.measuresPhi()
99 return self.strip() < other.strip()
◆ __str__()
def HitIdentifier.RpcIdentifier.__str__ |
( |
|
self | ) |
|
Reimplemented from HitIdentifier.StationIdentifier.
Definition at line 76 of file HitIdentifier.py.
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())
◆ doubletPhi()
def HitIdentifier.RpcIdentifier.doubletPhi |
( |
|
self | ) |
|
◆ doubletR()
def HitIdentifier.RpcIdentifier.doubletR |
( |
|
self | ) |
|
◆ doubletZ()
def HitIdentifier.RpcIdentifier.doubletZ |
( |
|
self | ) |
|
◆ gasGap()
def HitIdentifier.RpcIdentifier.gasGap |
( |
|
self | ) |
|
◆ gasGapID()
def HitIdentifier.RpcIdentifier.gasGapID |
( |
|
self | ) |
|
Returns an Identifier ignoring the strip number.
Definition at line 111 of file HitIdentifier.py.
112 return RpcIdentifier(stationIndex= self.stationIndex(),
113 stationPhi = self.stationPhi(),
114 stationEta = self.stationEta(),
115 doubletR = self.doubletR(),
116 doubletPhi = self.doubletPhi(),
117 doubletZ = self.doubletZ(),
118 gasGap = self.gasGap(),
119 measuresPhi=self.measuresPhi())
◆ measuresPhi()
def HitIdentifier.RpcIdentifier.measuresPhi |
( |
|
self | ) |
|
Definition at line 72 of file HitIdentifier.py.
72 def measuresPhi(self):
73 return self.__measuresPhi
◆ stationEta()
int HitIdentifier.StationIdentifier.stationEta |
( |
|
self | ) |
|
|
inherited |
Definition at line 44 of file HitIdentifier.py.
44 def stationEta(self)-> int:
45 return self.__stationEta
◆ stationIndex()
int HitIdentifier.StationIdentifier.stationIndex |
( |
|
self | ) |
|
|
inherited |
Definition at line 28 of file HitIdentifier.py.
28 def stationIndex(self) -> int:
29 return self.__stationIndex
◆ stationName()
str HitIdentifier.StationIdentifier.stationName |
( |
|
self | ) |
|
|
inherited |
Translates the stationIndex into the stationName
Definition at line 32 of file HitIdentifier.py.
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"
43 return __transDict[self.stationIndex()]
◆ stationPhi()
int HitIdentifier.StationIdentifier.stationPhi |
( |
|
self | ) |
|
|
inherited |
Definition at line 47 of file HitIdentifier.py.
47 def stationPhi(self) -> int:
48 return self.__stationPhi
◆ strip()
def HitIdentifier.RpcIdentifier.strip |
( |
|
self | ) |
|
◆ __doubletPhi
HitIdentifier.RpcIdentifier.__doubletPhi |
|
private |
◆ __doubletR
HitIdentifier.RpcIdentifier.__doubletR |
|
private |
◆ __doubletZ
HitIdentifier.RpcIdentifier.__doubletZ |
|
private |
◆ __gasGap
HitIdentifier.RpcIdentifier.__gasGap |
|
private |
◆ __measuresPhi
HitIdentifier.RpcIdentifier.__measuresPhi |
|
private |
◆ __stationEta
HitIdentifier.StationIdentifier.__stationEta |
|
privateinherited |
◆ __stationIndex
HitIdentifier.StationIdentifier.__stationIndex |
|
privateinherited |
◆ __stationPhi
HitIdentifier.StationIdentifier.__stationPhi |
|
privateinherited |
◆ __strip
HitIdentifier.RpcIdentifier.__strip |
|
private |
The documentation for this class was generated from the following file: