ATLAS Offline Software
Loading...
Searching...
No Matches
HitIdentifier.RpcIdentifier Class Reference
Inheritance diagram for HitIdentifier.RpcIdentifier:
Collaboration diagram for HitIdentifier.RpcIdentifier:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

None __init__ (self, stationIndex=-1, stationEta=-1, stationPhi=-1, doubletR=-1, doubletPhi=-1, doubletZ=-1, gasGap=-1, measuresPhi=False, strip=-1)
 doubletR (self)
 doubletPhi (self)
 doubletZ (self)
 gasGap (self)
 measuresPhi (self)
 strip (self)
 __str__ (self)
bool __lt__ (self, other)
bool __eq__ (self, other)
 gasGapID (self)
 Returns an Identifier ignoring the strip number.
int stationIndex (self)
str stationName (self)
 Translates the stationIndex into the stationName.
int stationEta (self)
int stationPhi (self)

Private Attributes

 __doubletR = doubletR
 __doubletPhi = doubletPhi
 __doubletZ = doubletZ
 __gasGap = gasGap
 __measuresPhi = measuresPhi
 __strip = strip
int __stationIndex = stationIndex
int __stationEta = stationEta if stationEta < 128 else stationEta - 255
int __stationPhi = stationPhi

Detailed Description

Definition at line 51 of file HitIdentifier.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __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.

54 gasGap =-1, measuresPhi = False, strip = -1) -> None:
55 super().__init__(stationIndex, stationEta, stationPhi)
56
57 self.__doubletR = doubletR
58 self.__doubletPhi = doubletPhi
59 self.__doubletZ = doubletZ
60 self.__gasGap = gasGap
61 self.__measuresPhi = measuresPhi
62 self.__strip = strip
63

Member Function Documentation

◆ __eq__()

bool HitIdentifier.RpcIdentifier.__eq__ ( self,
other )

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

◆ __lt__()

bool HitIdentifier.RpcIdentifier.__lt__ ( self,
other )

Definition at line 86 of file HitIdentifier.py.

86 def __lt__(self, other) -> bool:
87 if StationIdentifier.__lt__(self, other):
88 return True
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()
100

◆ __str__()

HitIdentifier.RpcIdentifier.__str__ ( self)

Definition at line 76 of file HitIdentifier.py.

76 def __str__(self):
77 rpcIdStr = StationIdentifier.__str__(self)
78 rpcIdStr+=" measuresPhi: {measPhi:2}".format(measPhi = "si" if self.measuresPhi() else "no")
79
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())
85 return rpcIdStr

◆ doubletPhi()

HitIdentifier.RpcIdentifier.doubletPhi ( self)

Definition at line 66 of file HitIdentifier.py.

66 def doubletPhi(self):
67 return self.__doubletPhi

◆ doubletR()

HitIdentifier.RpcIdentifier.doubletR ( self)

Definition at line 64 of file HitIdentifier.py.

64 def doubletR(self):
65 return self.__doubletR

◆ doubletZ()

HitIdentifier.RpcIdentifier.doubletZ ( self)

Definition at line 68 of file HitIdentifier.py.

68 def doubletZ(self):
69 return self.__doubletZ

◆ gasGap()

HitIdentifier.RpcIdentifier.gasGap ( self)

Definition at line 70 of file HitIdentifier.py.

70 def gasGap(self):
71 return self.__gasGap

◆ gasGapID()

HitIdentifier.RpcIdentifier.gasGapID ( self)

Returns an Identifier ignoring the strip number.

Definition at line 111 of file HitIdentifier.py.

111 def gasGapID(self):
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()

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
46

◆ stationIndex()

int HitIdentifier.StationIdentifier.stationIndex ( self)
inherited

Definition at line 28 of file HitIdentifier.py.

28 def stationIndex(self) -> int:
29 return self.__stationIndex
30

◆ stationName()

str HitIdentifier.StationIdentifier.stationName ( self)
inherited

Translates the stationIndex into the stationName.

Definition at line 32 of file HitIdentifier.py.

32 def stationName(self) -> str:
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",
37 13: "EIL",
38 17: "EML", 18: "EMS",
39 20: "EOL", 21: "EOS",
40 41: "T1F", 42: "T1E", 43: "T2F", 44: "T2E",
41 45: "T3F", 46: "T3E", 47: "T4F", 48: "T4E"
42 }
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
49

◆ strip()

HitIdentifier.RpcIdentifier.strip ( self)

Definition at line 74 of file HitIdentifier.py.

74 def strip(self):
75 return self.__strip

Member Data Documentation

◆ __doubletPhi

HitIdentifier.RpcIdentifier.__doubletPhi = doubletPhi
private

Definition at line 58 of file HitIdentifier.py.

◆ __doubletR

HitIdentifier.RpcIdentifier.__doubletR = doubletR
private

Definition at line 57 of file HitIdentifier.py.

◆ __doubletZ

HitIdentifier.RpcIdentifier.__doubletZ = doubletZ
private

Definition at line 59 of file HitIdentifier.py.

◆ __gasGap

HitIdentifier.RpcIdentifier.__gasGap = gasGap
private

Definition at line 60 of file HitIdentifier.py.

◆ __measuresPhi

HitIdentifier.RpcIdentifier.__measuresPhi = measuresPhi
private

Definition at line 61 of file HitIdentifier.py.

◆ __stationEta

int HitIdentifier.StationIdentifier.__stationEta = stationEta if stationEta < 128 else stationEta - 255
privateinherited

Definition at line 10 of file HitIdentifier.py.

◆ __stationIndex

int HitIdentifier.StationIdentifier.__stationIndex = stationIndex
privateinherited

Definition at line 9 of file HitIdentifier.py.

◆ __stationPhi

int HitIdentifier.StationIdentifier.__stationPhi = stationPhi
privateinherited

Definition at line 11 of file HitIdentifier.py.

◆ __strip

HitIdentifier.RpcIdentifier.__strip = strip
private

Definition at line 62 of file HitIdentifier.py.


The documentation for this class was generated from the following file: