ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::RpcCalibHitBase Class Reference

Athena independent part of the RpcCalibHit. More...

#include <RpcCalibHitBase.h>

Collaboration diagram for MuonCalib::RpcCalibHitBase:

Public Member Functions

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

Private Attributes

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

Detailed Description

Athena independent part of the RpcCalibHit.

A RpcCalibHitBase contains the basic information of a RPC hit:

  • identifier, stored in the MuonFixedId format (not an Identifier)
  • strip width and length
  • number of strips used to cluster the hit
  • time value
  • the error
  • position in both local (station) and global coordinates
  • distance of the hit to readout of the strip

Definition at line 40 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 32 of file RpcCalibHitBase.cxx.

33 :
36 m_time{time},
38 m_globalPosition{globalPos},
39 m_localPosition{localPos} {}
Amg::Vector3D m_globalPosition
position expressed in global coordinates
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
double m_stripWidth
strip width
double error() const
retrieve the error
double time() const
retrieve the time
double stripWidth() const
retrieve the strip width
int nStrips() const
retrieve the number of strips used to construct the hit
int m_nStrips
number of strips

◆ 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 41 of file RpcCalibHitBase.cxx.

42 :
46 m_time{time},
48 m_globalPosition{globalPos},
49 m_localPosition{localPos} {}
double stripLength() const
retrieve the strip length
double m_stripLength
strip length

Member Function Documentation

◆ distanceToRO()

double MuonCalib::RpcCalibHitBase::distanceToRO ( ) const

retrieve the distance of the hit to readout

Definition at line 31 of file RpcCalibHitBase.cxx.

31{ return m_distanceToRO; }
double m_distanceToRO
distance from hit to readout of the strip

◆ dump()

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

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

Definition at line 51 of file RpcCalibHitBase.cxx.

51 {
52 stream << "RpcCalibHitBase: " << std::endl;
53 stream << " Number of Strips " << nStrips() << " Strip width " << stripWidth() << " Strip length " << stripLength()
54 << " Time " << time() << " Error " << error() << " Global position " << globalPosition() << " local position "
55 << localPosition() << " distance to readout " << distanceToRO() << std::endl;
56 return stream;
57 }
double distanceToRO() const
retrieve the distance of the hit to readout
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates

◆ error()

double MuonCalib::RpcCalibHitBase::error ( ) const

retrieve the error

Definition at line 28 of file RpcCalibHitBase.cxx.

28{ return m_error; }

◆ globalPosition()

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

retrieve the position in global coordinates

Definition at line 29 of file RpcCalibHitBase.cxx.

29{ return m_globalPosition; }

◆ identify()

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

retrieve the MuonFixedId of the hit

Definition at line 23 of file RpcCalibHitBase.cxx.

23{ return m_id; }
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )

◆ localPosition()

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

retrieve the position in local (station) coordinates

Definition at line 30 of file RpcCalibHitBase.cxx.

30{ return m_localPosition; }

◆ nStrips()

int MuonCalib::RpcCalibHitBase::nStrips ( ) const

retrieve the number of strips used to construct the hit

Definition at line 24 of file RpcCalibHitBase.cxx.

24{ return m_nStrips; }

◆ 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 22 of file RpcCalibHitBase.cxx.

float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space

◆ setError()

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

sets the error

Definition at line 19 of file RpcCalibHitBase.cxx.

19{ m_error = error; }

◆ setGlobalPos()

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

sets the position in global coordinates

Definition at line 20 of file RpcCalibHitBase.cxx.

20{ m_globalPosition = globalPos; }

◆ setIdentifier()

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

sets the MuonFixedId of the hit

Definition at line 14 of file RpcCalibHitBase.cxx.

◆ setLocalPos()

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

sets the position in local (station) coordinates

Definition at line 21 of file RpcCalibHitBase.cxx.

21{ m_localPosition = localPos; }

◆ setNStrips()

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

sets the number of strips used to construct the hit

Definition at line 15 of file RpcCalibHitBase.cxx.

15{ m_nStrips = nStrips; }

◆ setStripLength()

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

sets the strip length

Definition at line 17 of file RpcCalibHitBase.cxx.

◆ setStripWidth()

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

sets the strip width

Definition at line 16 of file RpcCalibHitBase.cxx.

◆ setTime()

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

sets the time

Definition at line 18 of file RpcCalibHitBase.cxx.

18{ m_time = time; }

◆ stripLength()

double MuonCalib::RpcCalibHitBase::stripLength ( ) const

retrieve the strip length

Definition at line 26 of file RpcCalibHitBase.cxx.

26{ return m_stripLength; }

◆ stripWidth()

double MuonCalib::RpcCalibHitBase::stripWidth ( ) const

retrieve the strip width

Definition at line 25 of file RpcCalibHitBase.cxx.

25{ return m_stripWidth; }

◆ time()

double MuonCalib::RpcCalibHitBase::time ( ) const

retrieve the time

Definition at line 27 of file RpcCalibHitBase.cxx.

27{ return m_time; }

Member Data Documentation

◆ m_distanceToRO

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

distance from hit to readout of the strip

Definition at line 83 of file RpcCalibHitBase.h.

83{0.};

◆ m_error

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

error

Definition at line 80 of file RpcCalibHitBase.h.

80{0.};

◆ m_globalPosition

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

position expressed in global coordinates

Definition at line 81 of file RpcCalibHitBase.h.

81{0., 0., 0.};

◆ m_id

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

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

Definition at line 75 of file RpcCalibHitBase.h.

75{0};

◆ m_localPosition

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

position expressed in local (station) coordinates

Definition at line 82 of file RpcCalibHitBase.h.

82{0., 0., 0.};

◆ m_nStrips

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

number of strips

Definition at line 76 of file RpcCalibHitBase.h.

76{0};

◆ m_stripLength

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

strip length

Definition at line 78 of file RpcCalibHitBase.h.

78{0.};

◆ m_stripWidth

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

strip width

Definition at line 77 of file RpcCalibHitBase.h.

77{0.};

◆ m_time

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

time

Definition at line 79 of file RpcCalibHitBase.h.

79{0.};

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