ATLAS Offline Software
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 
8 namespace MuonCalib {
9 
10  CscCalibHitBase::CscCalibHitBase(int nStrips, double stripWidth, int charge, double error, const Amg::Vector3D &globalPos,
11  const Amg::Vector3D &localPos) :
12  m_nStrips(nStrips),
13  m_stripWidth(stripWidth),
14  m_charge(charge),
15  m_error(error),
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
MuonCalib::CscCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
Definition: CscCalibHitBase.h:71
MuonCalib::CscCalibHitBase::setStripWidth
void setStripWidth(double stripWidth)
sets the strip width
Definition: CscCalibHitBase.cxx:29
MuonCalib::CscCalibHitBase
Definition: CscCalibHitBase.h:38
MuonCalib::CscCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
Definition: CscCalibHitBase.h:72
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::CscCalibHitBase::error
double error() const
retrieve the error on the hit
Definition: CscCalibHitBase.cxx:38
MuonCalib::CscCalibHitBase::setCharge
void setCharge(int charge)
sets the charge
Definition: CscCalibHitBase.cxx:30
MuonCalib::CscCalibHitBase::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to cluster
Definition: CscCalibHitBase.cxx:28
MuonCalib::CscCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: CscCalibHitBase.cxx:34
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib::CscCalibHitBase::m_error
double m_error
error on the hit
Definition: CscCalibHitBase.h:70
MuonCalib::CscCalibHitBase::m_id
MuonFixedId m_id
identifier of the hit (as a MuonFixedId, not Identifier)
Definition: CscCalibHitBase.h:66
MuonCalib::CscCalibHitBase::charge
int charge() const
retrieve the charge
Definition: CscCalibHitBase.cxx:37
MuonCalib::CscCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump method used to implement operator<<() of the CscCalibHitBase
Definition: CscCalibHitBase.cxx:19
MuonCalib::CscCalibHitBase::setError
void setError(double error)
sets the error on the hit
Definition: CscCalibHitBase.cxx:31
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonGM::nStrips
int nStrips(const MuonGM::TgcReadoutElement &readoutEle, int layer)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:46
MuonCalib::CscCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position of the hits in global coordinates
Definition: CscCalibHitBase.cxx:32
MuonCalib::CscCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to cluster
Definition: CscCalibHitBase.cxx:35
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
charge
double charge(const T &p)
Definition: AtlasPID.h:538
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::CscCalibHitBase::stripWidth
double stripWidth() const
retrieve the strip width
Definition: CscCalibHitBase.cxx:36
MuonCalib::CscCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position of the hits in local (station) coordinates
Definition: CscCalibHitBase.cxx:40
MuonCalib::CscCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position of the hits in global coordinates
Definition: CscCalibHitBase.cxx:39
MuonCalib::CscCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId
Definition: CscCalibHitBase.cxx:27
MuonCalib::CscCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position of the hits in local (station) coordinates
Definition: CscCalibHitBase.cxx:33
MuonCalib::CscCalibHitBase::m_charge
int m_charge
charge
Definition: CscCalibHitBase.h:69
MuonCalib::CscCalibHitBase::CscCalibHitBase
CscCalibHitBase()=default
default constructor
error
Definition: IImpactPoint3dEstimator.h:70
CscCalibHitBase.h
MuonCalib::CscCalibHitBase::m_nStrips
int m_nStrips
number of strips used to cluster
Definition: CscCalibHitBase.h:67
MuonCalib::CscCalibHitBase::m_stripWidth
double m_stripWidth
width of the strip
Definition: CscCalibHitBase.h:68