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) |
|
def | identify (self) |
|
def | globalPosition (self) |
|
def | localPosition (self) |
|
def | 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.
10 stationIndex=-1, stationEta=-1, stationPhi=-1,
11 doubletR = -1, doubletPhi = -1, doubletZ = -1,
12 gasGap =-1, measuresPhi = False, strip = -1,
13 globPosX= -1, globPosY = -1., globPosZ = -1,
14 locPosX = -1, locPosY= -1,
17 self.__id = RpcIdentifier(stationIndex=stationIndex, stationEta = stationEta, stationPhi = stationPhi,
18 doubletR= doubletR, doubletPhi = doubletPhi, doubletZ = doubletZ,
19 gasGap = gasGap, measuresPhi = measuresPhi, strip = strip)
21 self.__globPos = TVector3(globPosX, globPosY, globPosZ)
22 self.__locPos = TVector2(locPosX, locPosY)
◆ __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
◆ __str__()
str checkRpcDigits.RpcDigit.__str__ |
( |
|
self | ) |
|
Reimplemented in checkRpcDigits.RpcSDO.
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()),
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()
def checkRpcDigits.RpcDigit.globalPosition |
( |
|
self | ) |
|
◆ identify()
def checkRpcDigits.RpcDigit.identify |
( |
|
self | ) |
|
◆ localPosition()
def checkRpcDigits.RpcDigit.localPosition |
( |
|
self | ) |
|
◆ time()
def checkRpcDigits.RpcDigit.time |
( |
|
self | ) |
|
◆ __globPos
checkRpcDigits.RpcDigit.__globPos |
|
private |
◆ __id
checkRpcDigits.RpcDigit.__id |
|
private |
◆ __locPos
checkRpcDigits.RpcDigit.__locPos |
|
private |
◆ __time
checkRpcDigits.RpcDigit.__time |
|
private |
The documentation for this class was generated from the following file: