ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
HitIdentifier.RpcIdentifier Class Reference
Inheritance diagram for HitIdentifier.RpcIdentifier:
Collaboration diagram for HitIdentifier.RpcIdentifier:

Public Member Functions

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)
 

Private Attributes

 __doubletR
 
 __doubletPhi
 
 __doubletZ
 
 __gasGap
 
 __measuresPhi
 
 __strip
 
 __stationIndex
 
 __stationEta
 
 __stationPhi
 

Detailed Description

Definition at line 51 of file HitIdentifier.py.

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.

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

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

◆ __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):
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__()

def HitIdentifier.RpcIdentifier.__str__ (   self)

Reimplemented from HitIdentifier.StationIdentifier.

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

def HitIdentifier.RpcIdentifier.doubletPhi (   self)

Definition at line 66 of file HitIdentifier.py.

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

◆ doubletR()

def HitIdentifier.RpcIdentifier.doubletR (   self)

Definition at line 64 of file HitIdentifier.py.

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

◆ doubletZ()

def HitIdentifier.RpcIdentifier.doubletZ (   self)

Definition at line 68 of file HitIdentifier.py.

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

◆ gasGap()

def HitIdentifier.RpcIdentifier.gasGap (   self)

Definition at line 70 of file HitIdentifier.py.

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

◆ gasGapID()

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

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

def 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
private

Definition at line 56 of file HitIdentifier.py.

◆ __doubletR

HitIdentifier.RpcIdentifier.__doubletR
private

Definition at line 55 of file HitIdentifier.py.

◆ __doubletZ

HitIdentifier.RpcIdentifier.__doubletZ
private

Definition at line 57 of file HitIdentifier.py.

◆ __gasGap

HitIdentifier.RpcIdentifier.__gasGap
private

Definition at line 58 of file HitIdentifier.py.

◆ __measuresPhi

HitIdentifier.RpcIdentifier.__measuresPhi
private

Definition at line 59 of file HitIdentifier.py.

◆ __stationEta

HitIdentifier.StationIdentifier.__stationEta
privateinherited

Definition at line 10 of file HitIdentifier.py.

◆ __stationIndex

HitIdentifier.StationIdentifier.__stationIndex
privateinherited

Definition at line 9 of file HitIdentifier.py.

◆ __stationPhi

HitIdentifier.StationIdentifier.__stationPhi
privateinherited

Definition at line 11 of file HitIdentifier.py.

◆ __strip

HitIdentifier.RpcIdentifier.__strip
private

Definition at line 60 of file HitIdentifier.py.


The documentation for this class was generated from the following file:
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
vtune_athena.format
format
Definition: vtune_athena.py:14
dumpTgcDigiDeadChambers.stationName
dictionary stationName
Definition: dumpTgcDigiDeadChambers.py:30
createCablingJSON.doubletR
int doubletR
Definition: createCablingJSON.py:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
createCablingJSON.doubletPhi
int doubletPhi
Definition: createCablingJSON.py:11