ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonCalib::RpcCalibHitBase Class Reference

#include <RpcCalibHitBase.h>

Collaboration diagram for MuonCalib::RpcCalibHitBase:

Public Member Functions

 RpcCalibHitBase ()=default
 default constructor More...
 
RpcCalibHitBaseoperator= (const RpcCalibHitBase &rhs)=default
 assignment operator More...
 
 RpcCalibHitBase (const RpcCalibHitBase &event)=default
 Copy constructor. More...
 
 ~RpcCalibHitBase ()=default
 destructor More...
 
 RpcCalibHitBase (int nStrips, double stripWidth, double time, double error, const Amg::Vector3D &globalPos, const Amg::Vector3D &localPos)
 constructor initializing most of its members. More...
 
 RpcCalibHitBase (int nStrips, double stripWidth, double stripLength, double time, double error, const Amg::Vector3D &globalPos, const Amg::Vector3D &localPos)
 constructor initializing most of its members. More...
 
void setIdentifier (const MuonFixedId &id)
 sets the MuonFixedId of the hit More...
 
void setNStrips (int nStrips)
 sets the number of strips used to construct the hit More...
 
void setStripWidth (double stripWidth)
 sets the strip width More...
 
void setStripLength (double stripLength)
 sets the strip length More...
 
void setTime (double time)
 sets the time More...
 
void setError (double error)
 sets the error More...
 
void setGlobalPos (const Amg::Vector3D &globalPos)
 sets the position in global coordinates More...
 
void setLocalPos (const Amg::Vector3D &localPos)
 sets the position in local (station) coordinates More...
 
void setDistanceToRO (const double distance)
 sets the distance of the hit to readout More...
 
const MuonFixedIdidentify () const
 retrieve the MuonFixedId of the hit More...
 
int nStrips () const
 retrieve the number of strips used to construct the hit More...
 
double stripWidth () const
 retrieve the strip width More...
 
double stripLength () const
 retrieve the strip length More...
 
double time () const
 retrieve the time More...
 
double error () const
 retrieve the error More...
 
const Amg::Vector3DglobalPosition () const
 retrieve the position in global coordinates More...
 
const Amg::Vector3DlocalPosition () const
 retrieve the position in local (station) coordinates More...
 
double distanceToRO () const
 retrieve the distance of the hit to readout More...
 
std::ostream & dump (std::ostream &stream) const
 dump to be used for operator<<() to dump the RpcCalibHitBase More...
 

Private Attributes

MuonFixedId m_id {0}
 Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId ) More...
 
int m_nStrips {0}
 number of strips More...
 
double m_stripWidth {0.}
 strip width More...
 
double m_stripLength {0.}
 strip length More...
 
double m_time {0.}
 time More...
 
double m_error {0.}
 error More...
 
Amg::Vector3D m_globalPosition {0., 0., 0.}
 position expressed in global coordinates More...
 
Amg::Vector3D m_localPosition {0., 0., 0.}
 position expressed in local (station) coordinates More...
 
double m_distanceToRO {0.}
 distance from hit to readout of the strip More...
 

Detailed Description

Athena independent part of the RpcCalibHit. A RpcCalibHitBase contains the basic information of a RPC hit:

Definition at line 47 of file RpcCalibHitBase.h.

Constructor & Destructor Documentation

◆ RpcCalibHitBase() [1/4]

MuonCalib::RpcCalibHitBase::RpcCalibHitBase ( )
default

default constructor

◆ RpcCalibHitBase() [2/4]

MuonCalib::RpcCalibHitBase::RpcCalibHitBase ( const RpcCalibHitBase event)
default

Copy constructor.

◆ ~RpcCalibHitBase()

MuonCalib::RpcCalibHitBase::~RpcCalibHitBase ( )
default

destructor

◆ RpcCalibHitBase() [3/4]

MuonCalib::RpcCalibHitBase::RpcCalibHitBase ( int  nStrips,
double  stripWidth,
double  time,
double  error,
const Amg::Vector3D globalPos,
const Amg::Vector3D localPos 
)

constructor initializing most of its members.

Definition at line 34 of file RpcCalibHitBase.cxx.

34  {nStrips},
36  m_time{time},
37  m_error{error},
38  m_globalPosition{globalPos},
39  m_localPosition{localPos} {}
40 
41  RpcCalibHitBase::RpcCalibHitBase(int nStrips, double stripWidth, double stripLength, double time, double error,

◆ RpcCalibHitBase() [4/4]

MuonCalib::RpcCalibHitBase::RpcCalibHitBase ( int  nStrips,
double  stripWidth,
double  stripLength,
double  time,
double  error,
const Amg::Vector3D globalPos,
const Amg::Vector3D localPos 
)

constructor initializing most of its members.

Definition at line 43 of file RpcCalibHitBase.cxx.

43  {nStrips},
46  m_time{time},
47  m_error{error},
48  m_globalPosition{globalPos},
49  m_localPosition{localPos} {}
50 
51  std::ostream &RpcCalibHitBase::dump(std::ostream &stream) const {

Member Function Documentation

◆ distanceToRO()

double MuonCalib::RpcCalibHitBase::distanceToRO ( ) const

retrieve the distance of the hit to readout

Definition at line 33 of file RpcCalibHitBase.cxx.

33 :

◆ dump()

std::ostream & MuonCalib::RpcCalibHitBase::dump ( std::ostream &  stream) const

dump to be used for operator<<() to dump the RpcCalibHitBase

Definition at line 53 of file RpcCalibHitBase.cxx.

59  { return hit.dump(stream); }

◆ error()

double MuonCalib::RpcCalibHitBase::error ( ) const

retrieve the error

Definition at line 30 of file RpcCalibHitBase.cxx.

30 { return m_localPosition; }

◆ globalPosition()

const Amg::Vector3D & MuonCalib::RpcCalibHitBase::globalPosition ( ) const

retrieve the position in global coordinates

Definition at line 31 of file RpcCalibHitBase.cxx.

31 { return m_distanceToRO; }

◆ identify()

const MuonFixedId & MuonCalib::RpcCalibHitBase::identify ( ) const

retrieve the MuonFixedId of the hit

Definition at line 25 of file RpcCalibHitBase.cxx.

25 { return m_stripWidth; }

◆ localPosition()

const Amg::Vector3D & MuonCalib::RpcCalibHitBase::localPosition ( ) const

retrieve the position in local (station) coordinates

Definition at line 32 of file RpcCalibHitBase.cxx.

◆ nStrips()

int MuonCalib::RpcCalibHitBase::nStrips ( ) const

retrieve the number of strips used to construct the hit

Definition at line 26 of file RpcCalibHitBase.cxx.

26 { return m_stripLength; }

◆ operator=()

RpcCalibHitBase& MuonCalib::RpcCalibHitBase::operator= ( const RpcCalibHitBase rhs)
default

assignment operator

◆ setDistanceToRO()

void MuonCalib::RpcCalibHitBase::setDistanceToRO ( const double  distance)

sets the distance of the hit to readout

Definition at line 24 of file RpcCalibHitBase.cxx.

24 { return m_nStrips; }

◆ setError()

void MuonCalib::RpcCalibHitBase::setError ( double  error)

sets the error

Definition at line 21 of file RpcCalibHitBase.cxx.

21 { m_localPosition = localPos; }

◆ setGlobalPos()

void MuonCalib::RpcCalibHitBase::setGlobalPos ( const Amg::Vector3D globalPos)

sets the position in global coordinates

Definition at line 22 of file RpcCalibHitBase.cxx.

◆ setIdentifier()

void MuonCalib::RpcCalibHitBase::setIdentifier ( const MuonFixedId id)

sets the MuonFixedId of the hit

Definition at line 16 of file RpcCalibHitBase.cxx.

◆ setLocalPos()

void MuonCalib::RpcCalibHitBase::setLocalPos ( const Amg::Vector3D localPos)

sets the position in local (station) coordinates

Definition at line 23 of file RpcCalibHitBase.cxx.

23 { return m_id; }

◆ setNStrips()

void MuonCalib::RpcCalibHitBase::setNStrips ( int  nStrips)

sets the number of strips used to construct the hit

Definition at line 17 of file RpcCalibHitBase.cxx.

◆ setStripLength()

void MuonCalib::RpcCalibHitBase::setStripLength ( double  stripLength)

sets the strip length

Definition at line 19 of file RpcCalibHitBase.cxx.

19 { m_error = error; }

◆ setStripWidth()

void MuonCalib::RpcCalibHitBase::setStripWidth ( double  stripWidth)

sets the strip width

Definition at line 18 of file RpcCalibHitBase.cxx.

18 { m_time = time; }

◆ setTime()

void MuonCalib::RpcCalibHitBase::setTime ( double  time)

sets the time

Definition at line 20 of file RpcCalibHitBase.cxx.

20 { m_globalPosition = globalPos; }

◆ stripLength()

double MuonCalib::RpcCalibHitBase::stripLength ( ) const

retrieve the strip length

Definition at line 28 of file RpcCalibHitBase.cxx.

28 { return m_error; }

◆ stripWidth()

double MuonCalib::RpcCalibHitBase::stripWidth ( ) const

retrieve the strip width

Definition at line 27 of file RpcCalibHitBase.cxx.

27 { return m_time; }

◆ time()

double MuonCalib::RpcCalibHitBase::time ( ) const

retrieve the time

Definition at line 29 of file RpcCalibHitBase.cxx.

29 { return m_globalPosition; }

Member Data Documentation

◆ m_distanceToRO

double MuonCalib::RpcCalibHitBase::m_distanceToRO {0.}
private

distance from hit to readout of the strip

Definition at line 90 of file RpcCalibHitBase.h.

◆ m_error

double MuonCalib::RpcCalibHitBase::m_error {0.}
private

error

Definition at line 87 of file RpcCalibHitBase.h.

◆ m_globalPosition

Amg::Vector3D MuonCalib::RpcCalibHitBase::m_globalPosition {0., 0., 0.}
private

position expressed in global coordinates

Definition at line 88 of file RpcCalibHitBase.h.

◆ m_id

MuonFixedId MuonCalib::RpcCalibHitBase::m_id {0}
private

Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )

Definition at line 82 of file RpcCalibHitBase.h.

◆ m_localPosition

Amg::Vector3D MuonCalib::RpcCalibHitBase::m_localPosition {0., 0., 0.}
private

position expressed in local (station) coordinates

Definition at line 89 of file RpcCalibHitBase.h.

◆ m_nStrips

int MuonCalib::RpcCalibHitBase::m_nStrips {0}
private

number of strips

Definition at line 83 of file RpcCalibHitBase.h.

◆ m_stripLength

double MuonCalib::RpcCalibHitBase::m_stripLength {0.}
private

strip length

Definition at line 85 of file RpcCalibHitBase.h.

◆ m_stripWidth

double MuonCalib::RpcCalibHitBase::m_stripWidth {0.}
private

strip width

Definition at line 84 of file RpcCalibHitBase.h.

◆ m_time

double MuonCalib::RpcCalibHitBase::m_time {0.}
private

time

Definition at line 86 of file RpcCalibHitBase.h.


The documentation for this class was generated from the following files:
MuonCalib::RpcCalibHitBase::stripWidth
double stripWidth() const
retrieve the strip width
Definition: RpcCalibHitBase.cxx:27
MuonCalib::RpcCalibHitBase::m_id
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )
Definition: RpcCalibHitBase.h:82
MuonCalib::RpcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: RpcCalibHitBase.h:85
MuonCalib::RpcCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to construct the hit
Definition: RpcCalibHitBase.cxx:26
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::RpcCalibHitBase::m_time
double m_time
time
Definition: RpcCalibHitBase.h:86
MuonCalib::RpcCalibHitBase::error
double error() const
retrieve the error
Definition: RpcCalibHitBase.cxx:30
MuonCalib::RpcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position expressed in global coordinates
Definition: RpcCalibHitBase.h:88
MuonCalib::RpcCalibHitBase::m_nStrips
int m_nStrips
number of strips
Definition: RpcCalibHitBase.h:83
MuonCalib::RpcCalibHitBase::m_error
double m_error
error
Definition: RpcCalibHitBase.h:87
MuonCalib::RpcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: RpcCalibHitBase.h:84
MuonCalib::RpcCalibHitBase::RpcCalibHitBase
RpcCalibHitBase()=default
default constructor
MuonCalib::RpcCalibHitBase::time
double time() const
retrieve the time
Definition: RpcCalibHitBase.cxx:29
MuonCalib::RpcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
Definition: RpcCalibHitBase.h:89
MuonCalib::RpcCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the RpcCalibHitBase
Definition: RpcCalibHitBase.cxx:53
MuonCalib::RpcCalibHitBase::stripLength
double stripLength() const
retrieve the strip length
Definition: RpcCalibHitBase.cxx:28
MuonCalib::RpcCalibHitBase::m_distanceToRO
double m_distanceToRO
distance from hit to readout of the strip
Definition: RpcCalibHitBase.h:90
error
Definition: IImpactPoint3dEstimator.h:70
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54