ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibMdtTruthHit.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#include <utility>
6
8
9namespace MuonCalib {
10
15 double MuonCalibMdtTruthHit::gpositionX() const { return m_pos[0]; }
16 double MuonCalibMdtTruthHit::gpositionY() const { return m_pos[1]; }
17 double MuonCalibMdtTruthHit::gpositionZ() const { return m_pos[2]; }
18 double MuonCalibMdtTruthHit::time() const { return m_time; }
27 void MuonCalibMdtTruthHit::setgPosition(Amg::Vector3D newPos) { m_pos = std::move(newPos); }
31
32 std::ostream &MuonCalibMdtTruthHit::dump(std::ostream &stream) const {
33 stream << "MuonCalibMdtTruthHit: " << std::endl;
34 stream << " ID = " << identify() << std::endl;
35 stream << " barCode = " << barCode() << std::endl;
36 stream << " driftRadius = " << driftRadius() << std::endl;
37 stream << " positionAlongTube = " << positionAlongTube() << std::endl;
38 stream << " gpositionX = " << gpositionX() << std::endl;
39 stream << " gpositionY = " << gpositionY() << std::endl;
40 stream << " gpositionZ = " << gpositionZ() << std::endl;
41 stream << " Time = " << time() << std::endl;
42 return stream;
43 }
44
45} // namespace MuonCalib
46
47std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibMdtTruthHit &truth) { return truth.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibMdtTruthHit &truth)
Class with truth information of a MDT hit, containing:
double time() const
retrieve the time
MuonFixedId m_ID
identifier of the truth hit, (a MuonFixedId, not an Identifier)
double gpositionX() const
retrieve the global X position
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibMdtTruthHit
MuonFixedId identify() const
retrieve the MuonFixedId
void setBarCode(int barCode)
sets the barcode
double gpositionZ() const
retrieve the global Z position
void setPositionAlongTube(double positionAlongTube)
sets the position along tube
void setgPositionY(double gpositionY)
sets the global Y position
void setIdentifier(MuonFixedId id)
sets the MuonFixedId
int barCode() const
retrieve the barcode
double driftRadius() const
retrieve the driftradius
double positionAlongTube() const
retrieve the position along tube
double m_positionAlongTube
position along tube
void setTime(double time)
sets the time
double gpositionY() const
retrieve the global Y position
void setgPosition(Amg::Vector3D newPos)
void setgPositionZ(double gpositionZ)
sets the global Z position
MuonCalibMdtTruthHit()=default
default constructor
void setDriftRadius(double driftRadius)
sets the driftradius
void setgPositionX(double gpositionX)
sets the global X position
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
STL namespace.