ATLAS Offline Software
RpcCalibHitBase.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 /***************************************************************************
6  * Muon Calibration Input Event Data Model
7  ***************************************************************************/
8 
9 // this package
11 
12 namespace MuonCalib {
13 
14  void RpcCalibHitBase::setIdentifier(const MuonFixedId &id) { m_id = id; }
18  void RpcCalibHitBase::setTime(double time) { m_time = time; }
20  void RpcCalibHitBase::setGlobalPos(const Amg::Vector3D &globalPos) { m_globalPosition = globalPos; }
21  void RpcCalibHitBase::setLocalPos(const Amg::Vector3D &localPos) { m_localPosition = localPos; }
23  const MuonFixedId &RpcCalibHitBase::identify() const { return m_id; }
24  int RpcCalibHitBase::nStrips() const { return m_nStrips; }
25  double RpcCalibHitBase::stripWidth() const { return m_stripWidth; }
26  double RpcCalibHitBase::stripLength() const { return m_stripLength; }
27  double RpcCalibHitBase::time() const { return m_time; }
28  double RpcCalibHitBase::error() const { return m_error; }
31  double RpcCalibHitBase::distanceToRO() const { return m_distanceToRO; }
32  RpcCalibHitBase::RpcCalibHitBase(int nStrips, double stripWidth, double time, double error, const Amg::Vector3D &globalPos,
33  const Amg::Vector3D &localPos) :
34  m_nStrips{nStrips},
35  m_stripWidth{stripWidth},
36  m_time{time},
37  m_error{error},
38  m_globalPosition{globalPos},
39  m_localPosition{localPos} {}
40 
41  RpcCalibHitBase::RpcCalibHitBase(int nStrips, double stripWidth, double stripLength, double time, double error,
42  const Amg::Vector3D &globalPos, const Amg::Vector3D &localPos) :
43  m_nStrips{nStrips},
44  m_stripWidth{stripWidth},
45  m_stripLength{stripLength},
46  m_time{time},
47  m_error{error},
48  m_globalPosition{globalPos},
49  m_localPosition{localPos} {}
50 
51  std::ostream &RpcCalibHitBase::dump(std::ostream &stream) const {
52  stream << "RpcCalibHitBase: " << std::endl;
53  stream << " Number of Strips " << nStrips() << " Strip width " << stripWidth() << " Strip length " << stripLength()
54  << " Time " << time() << " Error " << error() << " Global position " << globalPosition() << " local position "
55  << localPosition() << " distance to readout " << distanceToRO() << std::endl;
56  return stream;
57  }
58 
59  std::ostream &operator<<(std::ostream &stream, const RpcCalibHitBase &hit) { return hit.dump(stream); }
60 
61 } // namespace MuonCalib
MuonCalib::RpcCalibHitBase::distanceToRO
double distanceToRO() const
retrieve the distance of the hit to readout
Definition: RpcCalibHitBase.cxx:33
MuonCalib::RpcCalibHitBase::stripWidth
double stripWidth() const
retrieve the strip width
Definition: RpcCalibHitBase.cxx:27
MuonCalib::RpcCalibHitBase::setNStrips
void setNStrips(int nStrips)
sets the number of strips used to construct the hit
Definition: RpcCalibHitBase.cxx:17
MuonCalib::RpcCalibHitBase::setTime
void setTime(double time)
sets the time
Definition: RpcCalibHitBase.cxx:20
MuonCalib::RpcCalibHitBase::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
Definition: RpcCalibHitBase.cxx:31
MuonCalib::RpcCalibHitBase::m_id
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )
Definition: RpcCalibHitBase.h:82
MuonCalib::RpcCalibHitBase::m_stripLength
double m_stripLength
strip length
Definition: RpcCalibHitBase.h:85
MuonCalib::RpcCalibHitBase::nStrips
int nStrips() const
retrieve the number of strips used to construct the hit
Definition: RpcCalibHitBase.cxx:26
MuonCalib::RpcCalibHitBase::setLocalPos
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Definition: RpcCalibHitBase.cxx:23
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::RpcCalibHitBase::m_time
double m_time
time
Definition: RpcCalibHitBase.h:86
MuonCalib::RpcCalibHitBase::setError
void setError(double error)
sets the error
Definition: RpcCalibHitBase.cxx:21
MuonCalib::RpcCalibHitBase::error
double error() const
retrieve the error
Definition: RpcCalibHitBase.cxx:30
MuonCalib::RpcCalibHitBase::m_globalPosition
Amg::Vector3D m_globalPosition
position expressed in global coordinates
Definition: RpcCalibHitBase.h:88
MuonCalib::RpcCalibHitBase::m_nStrips
int m_nStrips
number of strips
Definition: RpcCalibHitBase.h:83
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib::RpcCalibHitBase::setGlobalPos
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
Definition: RpcCalibHitBase.cxx:22
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RpcCalibHitBase::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId of the hit
Definition: RpcCalibHitBase.cxx:25
RpcCalibHitBase.h
MuonCalib::RpcCalibHitBase::localPosition
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
Definition: RpcCalibHitBase.cxx:32
MuonCalib::RpcCalibHitBase::setStripLength
void setStripLength(double stripLength)
sets the strip length
Definition: RpcCalibHitBase.cxx:19
MuonGM::nStrips
int nStrips(const MuonGM::TgcReadoutElement &readoutEle, int layer)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:46
MuonCalib::RpcCalibHitBase::setIdentifier
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId of the hit
Definition: RpcCalibHitBase.cxx:16
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::RpcCalibHitBase::m_error
double m_error
error
Definition: RpcCalibHitBase.h:87
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::RpcCalibHitBase::m_stripWidth
double m_stripWidth
strip width
Definition: RpcCalibHitBase.h:84
MuonCalib::RpcCalibHitBase::RpcCalibHitBase
RpcCalibHitBase()=default
default constructor
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
MuonCalib::RpcCalibHitBase::time
double time() const
retrieve the time
Definition: RpcCalibHitBase.cxx:29
MuonCalib::RpcCalibHitBase::m_localPosition
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
Definition: RpcCalibHitBase.h:89
MuonCalib::RpcCalibHitBase::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the RpcCalibHitBase
Definition: RpcCalibHitBase.cxx:53
MuonCalib::RpcCalibHitBase::stripLength
double stripLength() const
retrieve the strip length
Definition: RpcCalibHitBase.cxx:28
MuonCalib::RpcCalibHitBase::setStripWidth
void setStripWidth(double stripWidth)
sets the strip width
Definition: RpcCalibHitBase.cxx:18
MuonCalib::RpcCalibHitBase::m_distanceToRO
double m_distanceToRO
distance from hit to readout of the strip
Definition: RpcCalibHitBase.h:90
MuonCalib::RpcCalibHitBase
Definition: RpcCalibHitBase.h:47
error
Definition: IImpactPoint3dEstimator.h:70
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
MuonCalib::RpcCalibHitBase::setDistanceToRO
void setDistanceToRO(const double distance)
sets the distance of the hit to readout
Definition: RpcCalibHitBase.cxx:24