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

Representation of a single RPC digit. More...

Inheritance diagram for checkRpcDigits.RpcDigit:
Collaboration diagram for checkRpcDigits.RpcDigit:

Public Member Functions

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)
 

Private Attributes

 __id
 
 __globPos
 
 __locPos
 
 __time
 

Detailed Description

Representation of a single RPC digit.

Definition at line 8 of file checkRpcDigits.py.

Constructor & Destructor Documentation

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

9  def __init__(self,
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,
15  time = -1.
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 

Member Function Documentation

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

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

def checkRpcDigits.RpcDigit.globalPosition (   self)

Definition at line 28 of file checkRpcDigits.py.

28  def globalPosition(self):
29  return self.__globPos
30 

◆ identify()

def checkRpcDigits.RpcDigit.identify (   self)

Definition at line 25 of file checkRpcDigits.py.

25  def identify(self):
26  return self.__id
27 

◆ localPosition()

def checkRpcDigits.RpcDigit.localPosition (   self)

Definition at line 31 of file checkRpcDigits.py.

31  def localPosition(self):
32  return self.__locPos
33 

◆ time()

def checkRpcDigits.RpcDigit.time (   self)

Definition at line 34 of file checkRpcDigits.py.

34  def time(self):
35  return self.__time
36 

Member Data Documentation

◆ __globPos

checkRpcDigits.RpcDigit.__globPos
private

Definition at line 14 of file checkRpcDigits.py.

◆ __id

checkRpcDigits.RpcDigit.__id
private

Definition at line 10 of file checkRpcDigits.py.

◆ __locPos

checkRpcDigits.RpcDigit.__locPos
private

Definition at line 15 of file checkRpcDigits.py.

◆ __time

checkRpcDigits.RpcDigit.__time
private

Definition at line 16 of file checkRpcDigits.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
xAOD::identify
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/Root/UtilFunctions.cxx:61
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
Monitored::Y
@ Y
Definition: HistogramFillerUtils.h:24
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11