Representation of a single RPC digit.
More...
|
| None | __init__ (self, stationIndex=-1, stationEta=-1, stationPhi=-1, doubletR=-1, doubletPhi=-1, doubletZ=-1, gasGap=-1, measuresPhi=False, strip=-1, globPosX=-1, globPosY=-1., globPosZ=-1, locPosX=-1, locPosY=-1, time=-1. ### Time of the digit signal) |
| | identify (self) |
| | globalPosition (self) |
| | localPosition (self) |
| | time (self) |
| str | __str__ (self) |
| bool | __eq__ (self, other) |
Representation of a single RPC digit.
Definition at line 8 of file checkRpcDigits.py.
◆ __init__()
| None checkRpcDigits.RpcDigit.__init__ |
( |
| self, |
|
|
| stationIndex = -1, |
|
|
| stationEta = -1, |
|
|
| stationPhi = -1, |
|
|
| doubletR = -1, |
|
|
| doubletPhi = -1, |
|
|
| doubletZ = -1, |
|
|
| gasGap = -1, |
|
|
| measuresPhi = False, |
|
|
| strip = -1, |
|
|
| globPosX = -1, |
|
|
| globPosY = -1., |
|
|
| globPosZ = -1, |
|
|
| locPosX = -1, |
|
|
| locPosY = -1, |
|
|
| time = -1. ### Time of the digit signal ) |
Definition at line 9 of file checkRpcDigits.py.
16 ) -> None:
17 self.__id = RpcIdentifier(stationIndex=stationIndex, stationEta = stationEta, stationPhi = stationPhi,
18 doubletR= doubletR, doubletPhi = doubletPhi, doubletZ = doubletZ,
19 gasGap = gasGap, measuresPhi = measuresPhi, strip = strip)
20
21 self.__globPos = TVector3(globPosX, globPosY, globPosZ)
22 self.__locPos = TVector2(locPosX, locPosY)
23 self.__time = time
24
◆ __eq__()
| bool checkRpcDigits.RpcDigit.__eq__ |
( |
| self, |
|
|
| other ) |
Definition at line 45 of file checkRpcDigits.py.
45 def __eq__(self, other) -> bool:
46 return self.identify() == other.identify() and \
47 (self.localPosition() - other.localPosition()).Mod() < 0.01
48
◆ __str__()
| str checkRpcDigits.RpcDigit.__str__ |
( |
| self | ) |
|
Definition at line 37 of file checkRpcDigits.py.
37 def __str__(self) -> str:
38 return "Rpc digit {id}, time {time:.2f}, localPos ({locX:.2f}, {locY:.2f}) globalPos ({globX:.2f}, {globY:.2f}, {globZ:.2f})".format(id = str(self.identify()),
39 time = self.__time,
40 locX = self.localPosition().X(),
41 locY = self.localPosition().Y(),
42 globX = self.globalPosition().X(),
43 globY = self.globalPosition().Y(),
44 globZ = self.globalPosition().Z())
◆ globalPosition()
| checkRpcDigits.RpcDigit.globalPosition |
( |
| self | ) |
|
Definition at line 28 of file checkRpcDigits.py.
28 def globalPosition(self):
29 return self.__globPos
30
◆ identify()
| checkRpcDigits.RpcDigit.identify |
( |
| self | ) |
|
◆ localPosition()
| checkRpcDigits.RpcDigit.localPosition |
( |
| self | ) |
|
Definition at line 31 of file checkRpcDigits.py.
31 def localPosition(self):
32 return self.__locPos
33
◆ time()
| checkRpcDigits.RpcDigit.time |
( |
| self | ) |
|
◆ __globPos
| checkRpcDigits.RpcDigit.__globPos = TVector3(globPosX, globPosY, globPosZ) |
|
private |
◆ __id
| checkRpcDigits.RpcDigit.__id |
|
private |
Initial value:= RpcIdentifier(stationIndex=stationIndex, stationEta = stationEta, stationPhi = stationPhi,
doubletR= doubletR, doubletPhi = doubletPhi, doubletZ = doubletZ,
gasGap = gasGap, measuresPhi = measuresPhi, strip = strip)
Definition at line 17 of file checkRpcDigits.py.
◆ __locPos
| checkRpcDigits.RpcDigit.__locPos = TVector2(locPosX, locPosY) |
|
private |
◆ __time
| checkRpcDigits.RpcDigit.__time = time |
|
private |
The documentation for this class was generated from the following file: