ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace MuonCalib {
13
20 void RpcCalibHitBase::setGlobalPos(const Amg::Vector3D &globalPos) { m_globalPosition = globalPos; }
21 void RpcCalibHitBase::setLocalPos(const Amg::Vector3D &localPos) { m_localPosition = localPos; }
22 void RpcCalibHitBase::setDistanceToRO(const double distance) { m_distanceToRO = distance; }
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; }
27 double RpcCalibHitBase::time() const { return m_time; }
28 double RpcCalibHitBase::error() const { return m_error; }
32 RpcCalibHitBase::RpcCalibHitBase(int nStrips, double stripWidth, double time, double error, const Amg::Vector3D &globalPos,
33 const Amg::Vector3D &localPos) :
36 m_time{time},
38 m_globalPosition{globalPos},
39 m_localPosition{localPos} {}
40
42 const Amg::Vector3D &globalPos, const Amg::Vector3D &localPos) :
46 m_time{time},
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
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Athena independent part of the RpcCalibHit.
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
void setNStrips(int nStrips)
sets the number of strips used to construct the hit
void setTime(double time)
sets the time
const MuonFixedId & identify() const
retrieve the MuonFixedId of the hit
RpcCalibHitBase()=default
default constructor
Amg::Vector3D m_globalPosition
position expressed in global coordinates
MuonFixedId m_id
Indentifier of the RpcCalibHit (is not of the type Identifier but MuonFixedId )
void setDistanceToRO(const double distance)
sets the distance of the hit to readout
double stripLength() const
retrieve the strip length
double m_distanceToRO
distance from hit to readout of the strip
void setStripLength(double stripLength)
sets the strip length
double distanceToRO() const
retrieve the distance of the hit to readout
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the RpcCalibHitBase
Amg::Vector3D m_localPosition
position expressed in local (station) coordinates
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
double m_stripWidth
strip width
void setStripWidth(double stripWidth)
sets the strip width
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
void setError(double error)
sets the error
double error() const
retrieve the error
double m_stripLength
strip length
void setIdentifier(const MuonFixedId &id)
sets the MuonFixedId of the hit
double time() const
retrieve the time
double stripWidth() const
retrieve the strip width
int nStrips() const
retrieve the number of strips used to construct the hit
int m_nStrips
number of strips
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
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)