ATLAS Offline Software
Loading...
Searching...
No Matches
CscCalibHitBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5// this package
7
8namespace MuonCalib {
9
11 const Amg::Vector3D &localPos) :
16 m_globalPosition(globalPos),
17 m_localPosition(localPos) {}
18
19 std::ostream &CscCalibHitBase::dump(std::ostream &stream) const {
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 }
25
26 std::ostream &operator<<(std::ostream &stream, const CscCalibHitBase &hit) { return hit.dump(stream); }
32 void CscCalibHitBase::setGlobalPos(const Amg::Vector3D &globalPos) { m_globalPosition = globalPos; }
33 void CscCalibHitBase::setLocalPos(const Amg::Vector3D &localPos) { m_localPosition = localPos; }
34 const MuonFixedId &CscCalibHitBase::identify() const { return m_id; }
35 int CscCalibHitBase::nStrips() const { return m_nStrips; }
36 double CscCalibHitBase::stripWidth() const { return m_stripWidth; }
37 int CscCalibHitBase::charge() const { return m_charge; }
38 double CscCalibHitBase::error() const { return m_error; }
41} // namespace MuonCalib
Athena-independent part of the CscCalibHit.
double m_stripWidth
width of the strip
CscCalibHitBase()=default
default constructor
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
double m_error
error on the hit
const Amg::Vector3D & localPosition() const
retrieve the position of the hits in local (station) coordinates
void setNStrips(int nStrips)
sets the number of strips used to cluster
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position of the hits in global coordinates
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
int charge() const
retrieve the charge
MuonFixedId m_id
identifier of the hit (as a MuonFixedId, not Identifier)
std::ostream & dump(std::ostream &stream) const
dump method used to implement operator<<() of the CscCalibHitBase
double error() const
retrieve the error on the hit
int m_nStrips
number of strips used to cluster
void setLocalPos(const Amg::Vector3D &localPos)
sets the position of the hits in local (station) coordinates
void setError(double error)
sets the error on the hit
const MuonFixedId & identify() const
retrieve the MuonFixedId
void setStripWidth(double stripWidth)
sets the strip width
double stripWidth() const
retrieve the strip width
void setCharge(int charge)
sets the charge
int nStrips() const
retrieve the number of strips used to cluster
const Amg::Vector3D & globalPosition() const
retrieve the position of the hits in global coordinates
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)