ATLAS Offline Software
TgcCalibHitBase.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  * Muon Calibration Input Event Data Model
7  * -----------------------------------------
8  *
9  * Author : Zdenko van Kesteren
10  * Creation Date: 17 October 2005
11  ***************************************************************************/
12 
13 // this package
15 
16 namespace MuonCalib {
17 
18  void TgcCalibHitBase::setIdentifier(const MuonFixedId &id) { m_id = id; }
19 
21 
22  void TgcCalibHitBase::setError(double error) { m_error = error; }
23 
24  void TgcCalibHitBase::setGlobalPos(const Amg::Vector3D &globalPos) { m_globalPosition = globalPos; }
25 
26  void TgcCalibHitBase::setLocalPos(const Amg::Vector3D &localPos) { m_localPosition = localPos; }
27 
29 
31 
32  const MuonFixedId &TgcCalibHitBase::identify() const { return m_id; }
33 
35 
37 
38  double TgcCalibHitBase::stripWidth() const { return m_stripWidth; }
39 
40  double TgcCalibHitBase::stripLength() const { return m_stripLength; }
41 
42  int TgcCalibHitBase::nStrips() const { return m_nStrips; }
43 
44  double TgcCalibHitBase::error() const { return m_error; }
45 
46  TgcCalibHitBase::TgcCalibHitBase(int nStrips, double stripWidth, double error, const Amg::Vector3D &globalPos,
47  const Amg::Vector3D &localPos) :
48  m_nStrips{nStrips},
49  m_stripWidth{stripWidth},
50  m_stripLength{0.},
51  m_error{error},
52  m_globalPosition{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;
60  return stream;
61  }
62 
63  // All the other ostream operators are outside namespace MuonCalib, does it matter?
64  std::ostream &operator<<(std::ostream &stream, const TgcCalibHitBase &hit) { return hit.dump(stream); }
65 
66 } // namespace MuonCalib
MuonCalib::TgcCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
Definition: TgcCalibHitBase.cxx:42
MuonCalib::TgcCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the identifier (MuonFixedId)
Definition: TgcCalibHitBase.cxx:38
MuonCalib::TgcCalibHitBase::error
double error() const
retrieve the error on the hit
Definition: TgcCalibHitBase.cxx:50
MuonCalib::TgcCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
Definition: TgcCalibHitBase.cxx:30
MuonCalib::TgcCalibHitBase
Definition: TgcCalibHitBase.h:43
MuonCalib::TgcCalibHitBase::TgcCalibHitBase
TgcCalibHitBase()=default
default constructor
MuonCalib::TgcCalibHitBase::m_id
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)
Definition: TgcCalibHitBase.h:73
MuonCalib::TgcCalibHitBase::setError
void setError(double error)
sets the error on the hit
Definition: TgcCalibHitBase.cxx:28
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
MuonCalib::TgcCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Definition: TgcCalibHitBase.cxx:32
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::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to cluster the hit
Definition: TgcCalibHitBase.cxx:26
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib::TgcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
Definition: TgcCalibHitBase.h:78
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
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::TgcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: TgcCalibHitBase.h:76
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::TgcCalibHitBase::setStripLength
void setStripLength(double stripLength)
sets the length of the strip
Definition: TgcCalibHitBase.cxx:36
TgcCalibHitBase.h
MuonCalib::TgcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: TgcCalibHitBase.h:75
MuonCalib::TgcCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the identifier (MuonFixedId)
Definition: TgcCalibHitBase.cxx:24
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::setStripWidth
void setStripWidth(double stripWidth)
sets the width of the strip
Definition: TgcCalibHitBase.cxx:34
MuonCalib::TgcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
Definition: TgcCalibHitBase.h:79
error
Definition: IImpactPoint3dEstimator.h:70
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