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

#include <TgcCalibHitBase.h>

Collaboration diagram for MuonCalib::TgcCalibHitBase:

Public Member Functions

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

Private Attributes

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

Detailed Description

Athena independent part of the TgcCalibHit. A TgcCalibHitBase contains the basic information of a RPC hit:

Definition at line 43 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 52 of file TgcCalibHitBase.cxx.

52  {globalPos},
53  m_localPosition{localPos} {}
54 
55  std::ostream &TgcCalibHitBase::dump(std::ostream &stream) const {
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;

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 61 of file TgcCalibHitBase.cxx.

64  { return hit.dump(stream); }
65 
66 } // namespace MuonCalib

◆ error()

double MuonCalib::TgcCalibHitBase::error ( ) const

retrieve the error on the hit

Definition at line 50 of file TgcCalibHitBase.cxx.

50 {0.},

◆ globalPosition()

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

retrieve the position in global coordinates

Definition at line 40 of file TgcCalibHitBase.cxx.

40 { return m_stripLength; }

◆ identify()

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

retrieve the identifier (MuonFixedId)

Definition at line 38 of file TgcCalibHitBase.cxx.

38 { return m_stripWidth; }

◆ localPosition()

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

retrieve the position in local (station) coordinates

Definition at line 42 of file TgcCalibHitBase.cxx.

42 { return m_nStrips; }

◆ nStrips()

int MuonCalib::TgcCalibHitBase::nStrips ( ) const

retrieve the number of strips used to cluster the hit

Definition at line 48 of file TgcCalibHitBase.cxx.

48 {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 28 of file TgcCalibHitBase.cxx.

◆ setGlobalPos()

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

sets the position in global coordinates

Definition at line 30 of file TgcCalibHitBase.cxx.

◆ setIdentifier()

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

sets the identifier (MuonFixedId)

Definition at line 24 of file TgcCalibHitBase.cxx.

24 { m_globalPosition = globalPos; }

◆ setLocalPos()

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

sets the position in local (station) coordinates

Definition at line 32 of file TgcCalibHitBase.cxx.

32 { return m_id; }

◆ setNStrips()

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

sets the number of strips used to cluster the hit

Definition at line 26 of file TgcCalibHitBase.cxx.

26 { m_localPosition = localPos; }

◆ setStripLength()

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

sets the length of the strip

Definition at line 36 of file TgcCalibHitBase.cxx.

36 { return m_localPosition; }

◆ setStripWidth()

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

sets the width of the strip

Definition at line 34 of file TgcCalibHitBase.cxx.

34 { return m_globalPosition; }

◆ stripLength()

double MuonCalib::TgcCalibHitBase::stripLength ( ) const

retrieve the length of the strip

Definition at line 46 of file TgcCalibHitBase.cxx.

◆ stripWidth()

double MuonCalib::TgcCalibHitBase::stripWidth ( ) const

retrieve the width of the strip

Definition at line 44 of file TgcCalibHitBase.cxx.

44 { return m_error; }

Member Data Documentation

◆ m_error

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

error on the hit

Definition at line 77 of file TgcCalibHitBase.h.

◆ m_globalPosition

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

position of the hit expressed in global coordinates

Definition at line 78 of file TgcCalibHitBase.h.

◆ m_id

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

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

Definition at line 73 of file TgcCalibHitBase.h.

◆ m_localPosition

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

position of the hit expressed in local (station) coordinates

Definition at line 79 of file TgcCalibHitBase.h.

◆ m_nStrips

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

number of strips used to cluster the hit

Definition at line 74 of file TgcCalibHitBase.h.

◆ m_stripLength

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

strip length

Definition at line 76 of file TgcCalibHitBase.h.

◆ m_stripWidth

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

strip width

Definition at line 75 of file TgcCalibHitBase.h.


The documentation for this class was generated from the following files:
MuonCalib::TgcCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
Definition: TgcCalibHitBase.cxx:42
MuonCalib::TgcCalibHitBase::error
double error() const
retrieve the error on the hit
Definition: TgcCalibHitBase.cxx:50
MuonCalib::TgcCalibHitBase::m_id
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)
Definition: TgcCalibHitBase.h:73
MuonCalib::TgcCalibHitBase::m_error
double m_error
error on the hit
Definition: TgcCalibHitBase.h:77
MuonCalib::TgcCalibHitBase::m_nStrips
int m_nStrips
number of strips used to cluster the hit
Definition: TgcCalibHitBase.h:74
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::TgcCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
Definition: TgcCalibHitBase.cxx:40
MuonCalib::TgcCalibHitBase::stripWidth
double stripWidth() const
retrieve the width of the strip
Definition: TgcCalibHitBase.cxx:44
MuonCalib::TgcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
Definition: TgcCalibHitBase.h:78
MuonCalib::TgcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: TgcCalibHitBase.h:76
MuonCalib::TgcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: TgcCalibHitBase.h:75
MuonCalib::TgcCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the TgcCalibHitBase
Definition: TgcCalibHitBase.cxx:61
MuonCalib::TgcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
Definition: TgcCalibHitBase.h:79
MuonCalib::TgcCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to cluster the hit
Definition: TgcCalibHitBase.cxx:48
MuonCalib::TgcCalibHitBase::stripLength
double stripLength() const
retrieve the length of the strip
Definition: TgcCalibHitBase.cxx:46