ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
HitIdentifier.StationIdentifier Class Reference

Basic class to represent a muon Identifier with the fields stationName, stationPhi, stationEta. More...

Inheritance diagram for HitIdentifier.StationIdentifier:
Collaboration diagram for HitIdentifier.StationIdentifier:

Public Member Functions

None __init__ (self, stationIndex=-1, stationEta=-1, stationPhi=-1)
 basic constructor taking the stationIndex, stationPhi, station Eta of a muon identifier More...
 
bool __lt__ (self, other)
 
bool __eq__ (self, other)
 
def __str__ (self)
 
int stationIndex (self)
 
str stationName (self)
 Translates the stationIndex into the stationName
More...
 
int stationEta (self)
 
int stationPhi (self)
 

Private Attributes

 __stationIndex
 
 __stationEta
 
 __stationPhi
 

Detailed Description

Basic class to represent a muon Identifier with the fields stationName, stationPhi, stationEta.

Definition at line 6 of file HitIdentifier.py.

Constructor & Destructor Documentation

◆ __init__()

None HitIdentifier.StationIdentifier.__init__ (   self,
  stationIndex = -1,
  stationEta = -1,
  stationPhi = -1 
)

basic constructor taking the stationIndex, stationPhi, station Eta of a muon identifier

Definition at line 8 of file HitIdentifier.py.

8  def __init__(self, stationIndex = -1, stationEta = -1, stationPhi = -1) -> None:
9  self.__stationIndex = stationIndex
10  self.__stationEta = stationEta if stationEta < 128 else stationEta - 255
11  self.__stationPhi = stationPhi
12 

Member Function Documentation

◆ __eq__()

bool HitIdentifier.StationIdentifier.__eq__ (   self,
  other 
)

Reimplemented in HitIdentifier.RpcIdentifier.

Definition at line 19 of file HitIdentifier.py.

19  def __eq__(self, other) -> bool:
20  return self.stationIndex() == other.stationIndex() and \
21  self.stationEta() == other.stationEta() and \
22  self.stationPhi() == other.stationPhi()
23 

◆ __lt__()

bool HitIdentifier.StationIdentifier.__lt__ (   self,
  other 
)

Reimplemented in HitIdentifier.RpcIdentifier.

Definition at line 13 of file HitIdentifier.py.

13  def __lt__(self, other) -> bool:
14  if self.stationIndex() != other.stationIndex():
15  return self.stationIndex() < other.stationIndex()
16  if self.stationEta() != other.stationEta():
17  return self.stationEta() < other.stationEta()
18  return self.stationPhi() < other.stationPhi()

◆ __str__()

def HitIdentifier.StationIdentifier.__str__ (   self)

Reimplemented in HitIdentifier.RpcIdentifier.

Definition at line 24 of file HitIdentifier.py.

24  def __str__(self):
25  return "{stationName} eta: {stationEta:2} phi: {stationPhi: 2}".format(stationName = self.stationName(),
26  stationEta = self.stationEta(),
27  stationPhi = self.stationPhi())

◆ stationEta()

int HitIdentifier.StationIdentifier.stationEta (   self)

Definition at line 44 of file HitIdentifier.py.

44  def stationEta(self)-> int:
45  return self.__stationEta
46 

◆ stationIndex()

int HitIdentifier.StationIdentifier.stationIndex (   self)

Definition at line 28 of file HitIdentifier.py.

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

◆ stationName()

str HitIdentifier.StationIdentifier.stationName (   self)

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)

Definition at line 47 of file HitIdentifier.py.

47  def stationPhi(self) -> int:
48  return self.__stationPhi
49 

Member Data Documentation

◆ __stationEta

HitIdentifier.StationIdentifier.__stationEta
private

Definition at line 10 of file HitIdentifier.py.

◆ __stationIndex

HitIdentifier.StationIdentifier.__stationIndex
private

Definition at line 9 of file HitIdentifier.py.

◆ __stationPhi

HitIdentifier.StationIdentifier.__stationPhi
private

Definition at line 11 of file HitIdentifier.py.


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