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

Athena-independent part of the CscCalibHit. More...

#include <CscCalibHitBase.h>

Collaboration diagram for MuonCalib::CscCalibHitBase:

Public Member Functions

 CscCalibHitBase ()=default
 default constructor
CscCalibHitBaseoperator= (const CscCalibHitBase &rhs)=default
 assignment operator
 CscCalibHitBase (const CscCalibHitBase &event)=default
 Copy constructor.
 ~CscCalibHitBase ()=default
 destructor
 CscCalibHitBase (int nStrips, double stripWidth, int charge, double error, const Amg::Vector3D &globalPos, const Amg::Vector3D &localPos)
 constructor setting almost all attributes of the hit
void setIdentifier (const MuonFixedId &id)
 sets the MuonFixedId
void setNStrips (int nStrips)
 sets the number of strips used to cluster
void setStripWidth (double stripWidth)
 sets the strip width
void setCharge (int charge)
 sets the charge
void setError (double error)
 sets the error on the hit
void setGlobalPos (const Amg::Vector3D &globalPos)
 sets the position of the hits in global coordinates
void setLocalPos (const Amg::Vector3D &localPos)
 sets the position of the hits in local (station) coordinates
const MuonFixedIdidentify () const
 retrieve the MuonFixedId
int nStrips () const
 retrieve the number of strips used to cluster
double stripWidth () const
 retrieve the strip width
int charge () const
 retrieve the charge
double error () const
 retrieve the error on the hit
const Amg::Vector3DglobalPosition () const
 retrieve the position of the hits in global coordinates
const Amg::Vector3DlocalPosition () const
 retrieve the position of the hits in local (station) coordinates
std::ostream & dump (std::ostream &stream) const
 dump method used to implement operator<<() of the CscCalibHitBase

Private Attributes

MuonFixedId m_id {0}
 identifier of the hit (as a MuonFixedId, not Identifier)
int m_nStrips {0}
 number of strips used to cluster
double m_stripWidth {0.}
 width of the strip
int m_charge {0}
 charge
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 CscCalibHit.

A CscCalibHitBase contains the basic information of a CSC hit:

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

Definition at line 36 of file CscCalibHitBase.h.

Constructor & Destructor Documentation

◆ CscCalibHitBase() [1/3]

MuonCalib::CscCalibHitBase::CscCalibHitBase ( )
default

default constructor

◆ CscCalibHitBase() [2/3]

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

Copy constructor.

◆ ~CscCalibHitBase()

MuonCalib::CscCalibHitBase::~CscCalibHitBase ( )
default

destructor

◆ CscCalibHitBase() [3/3]

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

constructor setting almost all attributes of the hit

Definition at line 10 of file CscCalibHitBase.cxx.

11 :
16 m_globalPosition(globalPos),
17 m_localPosition(localPos) {}
double m_stripWidth
width of the strip
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
double m_error
error on the hit
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
int charge() const
retrieve the charge
double error() const
retrieve the error on the hit
int m_nStrips
number of strips used to cluster
double stripWidth() const
retrieve the strip width
int nStrips() const
retrieve the number of strips used to cluster

Member Function Documentation

◆ charge()

int MuonCalib::CscCalibHitBase::charge ( ) const

retrieve the charge

Definition at line 37 of file CscCalibHitBase.cxx.

37{ return m_charge; }

◆ dump()

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

dump method used to implement operator<<() of the CscCalibHitBase

Definition at line 19 of file CscCalibHitBase.cxx.

19 {
20 stream << "CscCalibHitBase: " << std::endl;
21 stream << " Number of Strips " << nStrips() << " Strip width " << stripWidth() << " Charge " << charge() << " Error "
22 << error() << " Global position " << globalPosition() << " Local position " << localPosition() << std::endl;
23 return stream;
24 }
const Amg::Vector3D & localPosition() const
retrieve the position of the hits in local (station) coordinates
const Amg::Vector3D & globalPosition() const
retrieve the position of the hits in global coordinates

◆ error()

double MuonCalib::CscCalibHitBase::error ( ) const

retrieve the error on the hit

Definition at line 38 of file CscCalibHitBase.cxx.

38{ return m_error; }

◆ globalPosition()

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

retrieve the position of the hits in global coordinates

Definition at line 39 of file CscCalibHitBase.cxx.

39{ return m_globalPosition; }

◆ identify()

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

retrieve the MuonFixedId

Definition at line 34 of file CscCalibHitBase.cxx.

34{ return m_id; }
MuonFixedId m_id
identifier of the hit (as a MuonFixedId, not Identifier)

◆ localPosition()

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

retrieve the position of the hits in local (station) coordinates

Definition at line 40 of file CscCalibHitBase.cxx.

40{ return m_localPosition; }

◆ nStrips()

int MuonCalib::CscCalibHitBase::nStrips ( ) const

retrieve the number of strips used to cluster

Definition at line 35 of file CscCalibHitBase.cxx.

35{ return m_nStrips; }

◆ operator=()

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

assignment operator

◆ setCharge()

void MuonCalib::CscCalibHitBase::setCharge ( int charge)

sets the charge

Definition at line 30 of file CscCalibHitBase.cxx.

30{ m_charge = charge; }

◆ setError()

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

sets the error on the hit

Definition at line 31 of file CscCalibHitBase.cxx.

31{ m_error = error; }

◆ setGlobalPos()

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

sets the position of the hits in global coordinates

Definition at line 32 of file CscCalibHitBase.cxx.

32{ m_globalPosition = globalPos; }

◆ setIdentifier()

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

sets the MuonFixedId

Definition at line 27 of file CscCalibHitBase.cxx.

◆ setLocalPos()

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

sets the position of the hits in local (station) coordinates

Definition at line 33 of file CscCalibHitBase.cxx.

33{ m_localPosition = localPos; }

◆ setNStrips()

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

sets the number of strips used to cluster

Definition at line 28 of file CscCalibHitBase.cxx.

28{ m_nStrips = nStrips; }

◆ setStripWidth()

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

sets the strip width

Definition at line 29 of file CscCalibHitBase.cxx.

◆ stripWidth()

double MuonCalib::CscCalibHitBase::stripWidth ( ) const

retrieve the strip width

Definition at line 36 of file CscCalibHitBase.cxx.

36{ return m_stripWidth; }

Member Data Documentation

◆ m_charge

int MuonCalib::CscCalibHitBase::m_charge {0}
private

charge

Definition at line 67 of file CscCalibHitBase.h.

67{0};

◆ m_error

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

error on the hit

Definition at line 68 of file CscCalibHitBase.h.

68{0.};

◆ m_globalPosition

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

position of the hit expressed in global coordinates

Definition at line 69 of file CscCalibHitBase.h.

69{0., 0., 0.};

◆ m_id

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

identifier of the hit (as a MuonFixedId, not Identifier)

Definition at line 64 of file CscCalibHitBase.h.

64{0};

◆ m_localPosition

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

position of the hit expressed in local (station) coordinates

Definition at line 70 of file CscCalibHitBase.h.

70{0., 0., 0.};

◆ m_nStrips

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

number of strips used to cluster

Definition at line 65 of file CscCalibHitBase.h.

65{0};

◆ m_stripWidth

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

width of the strip

Definition at line 66 of file CscCalibHitBase.h.

66{0.};

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