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

Athena independent part of the TgcCalibHit. More...

#include <TgcCalibHitBase.h>

Collaboration diagram for MuonCalib::TgcCalibHitBase:

Public Member Functions

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

Private Attributes

MuonFixedId m_id {0}
 Identifier of the hit (a MuonFixedId, not an Identifier)
int m_nStrips {0}
 number of strips used to cluster the hit
double m_stripWidth {0.}
 strip width
double m_stripLength {0.}
 strip length
double m_error {0.}
 error on the hit
Amg::Vector3D m_globalPosition {0., 0., 0.}
 position of the hit expressed in global coordinates
Amg::Vector3D m_localPosition {0., 0., 0.}
 position of the hit expressed in local (station) coordinates

Detailed Description

Athena independent part of the TgcCalibHit.

A TgcCalibHitBase contains the basic information of a RPC hit:

  • position, both in global and local (station) coordinates
  • an identifier, stored in the MuonFixedId format (not an Identifier)
  • strip information
  • error on the hit

Definition at line 36 of file TgcCalibHitBase.h.

Constructor & Destructor Documentation

◆ TgcCalibHitBase() [1/3]

MuonCalib::TgcCalibHitBase::TgcCalibHitBase ( )
default

default constructor

◆ TgcCalibHitBase() [2/3]

MuonCalib::TgcCalibHitBase::TgcCalibHitBase ( const TgcCalibHitBase & event)
default

Copy constructor.

◆ ~TgcCalibHitBase()

MuonCalib::TgcCalibHitBase::~TgcCalibHitBase ( )
default

destructor

◆ TgcCalibHitBase() [3/3]

MuonCalib::TgcCalibHitBase::TgcCalibHitBase ( int nStrips,
double stripWidth,
double error,
const Amg::Vector3D & globalPos,
const Amg::Vector3D & localPos )

constructor initializing most of its members

Definition at line 46 of file TgcCalibHitBase.cxx.

47 :
50 m_stripLength{0.},
52 m_globalPosition{globalPos},
53 m_localPosition{localPos} {}
int nStrips() const
retrieve the number of strips used to cluster the hit
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
double m_stripLength
strip length
double m_error
error on the hit
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
double stripWidth() const
retrieve the width of the strip
double error() const
retrieve the error on the hit
double m_stripWidth
strip width
int m_nStrips
number of strips used to cluster the hit

Member Function Documentation

◆ dump()

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

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

Definition at line 55 of file TgcCalibHitBase.cxx.

55 {
56 stream << "TgcCalibHitBase: " << std::endl;
57 stream << " Number of Strips " << nStrips() << " Strip width " << stripWidth() << " Strip length " << stripLength()
58 << " Error " << error() << " Global position " << globalPosition() << " local position " << localPosition()
59 << std::endl;
60 return stream;
61 }
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
double stripLength() const
retrieve the length of the strip

◆ error()

double MuonCalib::TgcCalibHitBase::error ( ) const

retrieve the error on the hit

Definition at line 44 of file TgcCalibHitBase.cxx.

44{ return m_error; }

◆ globalPosition()

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

retrieve the position in global coordinates

Definition at line 34 of file TgcCalibHitBase.cxx.

34{ return m_globalPosition; }

◆ identify()

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

retrieve the identifier (MuonFixedId)

Definition at line 32 of file TgcCalibHitBase.cxx.

32{ return m_id; }
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)

◆ localPosition()

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

retrieve the position in local (station) coordinates

Definition at line 36 of file TgcCalibHitBase.cxx.

36{ return m_localPosition; }

◆ nStrips()

int MuonCalib::TgcCalibHitBase::nStrips ( ) const

retrieve the number of strips used to cluster the hit

Definition at line 42 of file TgcCalibHitBase.cxx.

42{ return m_nStrips; }

◆ operator=()

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

assignment operator

◆ setError()

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

sets the error on the hit

Definition at line 22 of file TgcCalibHitBase.cxx.

22{ m_error = error; }

◆ setGlobalPos()

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

sets the position in global coordinates

Definition at line 24 of file TgcCalibHitBase.cxx.

24{ m_globalPosition = globalPos; }

◆ setIdentifier()

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

sets the identifier (MuonFixedId)

Definition at line 18 of file TgcCalibHitBase.cxx.

◆ setLocalPos()

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

sets the position in local (station) coordinates

Definition at line 26 of file TgcCalibHitBase.cxx.

26{ m_localPosition = localPos; }

◆ setNStrips()

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

sets the number of strips used to cluster the hit

Definition at line 20 of file TgcCalibHitBase.cxx.

20{ m_nStrips = nStrips; }

◆ setStripLength()

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

sets the length of the strip

Definition at line 30 of file TgcCalibHitBase.cxx.

◆ setStripWidth()

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

sets the width of the strip

Definition at line 28 of file TgcCalibHitBase.cxx.

◆ stripLength()

double MuonCalib::TgcCalibHitBase::stripLength ( ) const

retrieve the length of the strip

Definition at line 40 of file TgcCalibHitBase.cxx.

40{ return m_stripLength; }

◆ stripWidth()

double MuonCalib::TgcCalibHitBase::stripWidth ( ) const

retrieve the width of the strip

Definition at line 38 of file TgcCalibHitBase.cxx.

38{ return m_stripWidth; }

Member Data Documentation

◆ m_error

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

error on the hit

Definition at line 70 of file TgcCalibHitBase.h.

70{0.};

◆ m_globalPosition

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

position of the hit expressed in global coordinates

Definition at line 71 of file TgcCalibHitBase.h.

71{0., 0., 0.};

◆ m_id

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

Identifier of the hit (a MuonFixedId, not an Identifier)

Definition at line 66 of file TgcCalibHitBase.h.

66{0};

◆ m_localPosition

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

position of the hit expressed in local (station) coordinates

Definition at line 72 of file TgcCalibHitBase.h.

72{0., 0., 0.};

◆ m_nStrips

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

number of strips used to cluster the hit

Definition at line 67 of file TgcCalibHitBase.h.

67{0};

◆ m_stripLength

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

strip length

Definition at line 69 of file TgcCalibHitBase.h.

69{0.};

◆ m_stripWidth

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

strip width

Definition at line 68 of file TgcCalibHitBase.h.

68{0.};

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