ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace MuonCalib {
17
19
21
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
41
42 int TgcCalibHitBase::nStrips() const { return m_nStrips; }
43
44 double TgcCalibHitBase::error() const { return m_error; }
45
47 const Amg::Vector3D &localPos) :
50 m_stripLength{0.},
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
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Athena independent part of the TgcCalibHit.
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the TgcCalibHitBase
void setNStrips(int nStrips)
sets the number of strips used to cluster the hit
int nStrips() const
retrieve the number of strips used to cluster the hit
Amg::Vector3D m_localPosition
position of the hit expressed in local (station) coordinates
const MuonFixedId & identify() const
retrieve the identifier (MuonFixedId)
const Amg::Vector3D & localPosition() const
retrieve the position in local (station) coordinates
void setStripWidth(double stripWidth)
sets the width of the strip
double m_stripLength
strip length
double m_error
error on the hit
void setLocalPos(const Amg::Vector3D &localPos)
sets the position in local (station) coordinates
Amg::Vector3D m_globalPosition
position of the hit expressed in global coordinates
double stripWidth() const
retrieve the width of the strip
TgcCalibHitBase()=default
default constructor
void setGlobalPos(const Amg::Vector3D &globalPos)
sets the position in global coordinates
double error() const
retrieve the error on the hit
MuonFixedId m_id
Identifier of the hit (a MuonFixedId, not an Identifier)
const Amg::Vector3D & globalPosition() const
retrieve the position in global coordinates
void setError(double error)
sets the error on the hit
void setStripLength(double stripLength)
sets the length of the strip
double m_stripWidth
strip width
void setIdentifier(const MuonFixedId &id)
sets the identifier (MuonFixedId)
int m_nStrips
number of strips used to cluster the hit
double stripLength() const
retrieve the length of the strip
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)