ATLAS Offline Software
MuonCalibMdtTruthHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MuonCalibMdtTruthHit_h
6 #define MuonCalibMdtTruthHit_h
7 
8 #include <iostream>
9 
12 
13 namespace MuonCalib {
22  public:
23  MuonCalibMdtTruthHit() = default;
24  MuonCalibMdtTruthHit(const MuonCalibMdtTruthHit &truth) = default;
25  ~MuonCalibMdtTruthHit() = default;
27 
29  double time); //<! constructor initializing all attributes of the MuonCalibMdtTruthHit
30 
31  std::ostream &dump(std::ostream &stream) const;
32 
33  MuonFixedId identify() const;
34  int barCode() const;
35  double driftRadius() const;
36  double positionAlongTube() const;
37  double gpositionX() const;
38  double gpositionY() const;
39  double gpositionZ() const;
40  double time() const;
41  void setIdentifier(MuonFixedId id);
42  void setBarCode(int barCode);
43  void setDriftRadius(double driftRadius);
45  void setgPositionX(double gpositionX);
46  void setgPositionY(double gpositionY);
47  void setgPositionZ(double gpositionZ);
48  void setgPosition(Amg::Vector3D newPos);
49  void setTime(double time);
50 
51  private:
53  int m_barCode{0};
54  double m_driftRadius{0.};
55  double m_positionAlongTube{0.};
56  Amg::Vector3D m_pos{0., 0., 0.};
57  double m_time{0.};
58  };
59 
60 } // namespace MuonCalib
61 
62 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibMdtTruthHit &truth);
63 
64 #endif // MuonCalibTruth_h
MuonCalib::MuonCalibMdtTruthHit::time
double time() const
retrieve the time
Definition: MuonCalibMdtTruthHit.cxx:18
MuonCalib::MuonCalibMdtTruthHit::m_ID
MuonFixedId m_ID
identifier of the truth hit, (a MuonFixedId, not an Identifier)
Definition: MuonCalibMdtTruthHit.h:52
MuonCalib::MuonCalibMdtTruthHit::m_time
double m_time
time
Definition: MuonCalibMdtTruthHit.h:57
MuonCalib::MuonCalibMdtTruthHit::operator=
MuonCalibMdtTruthHit & operator=(const MuonCalibMdtTruthHit &rhs)=default
assignment operator
MuonCalib::MuonCalibMdtTruthHit::setgPosition
void setgPosition(Amg::Vector3D newPos)
Definition: MuonCalibMdtTruthHit.cxx:27
MuonCalib::MuonCalibMdtTruthHit::~MuonCalibMdtTruthHit
~MuonCalibMdtTruthHit()=default
destructor
MuonCalib::MuonCalibMdtTruthHit::gpositionZ
double gpositionZ() const
retrieve the global Z position
Definition: MuonCalibMdtTruthHit.cxx:17
MuonCalib::MuonCalibMdtTruthHit::MuonCalibMdtTruthHit
MuonCalibMdtTruthHit(const MuonCalibMdtTruthHit &truth)=default
copyconstructor
MuonCalib::MuonCalibMdtTruthHit::gpositionX
double gpositionX() const
retrieve the global X position
Definition: MuonCalibMdtTruthHit.cxx:15
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibMdtTruthHit::driftRadius
double driftRadius() const
retrieve the driftradius
Definition: MuonCalibMdtTruthHit.cxx:13
GeoPrimitives.h
MuonCalib::MuonCalibMdtTruthHit::gpositionY
double gpositionY() const
retrieve the global Y position
Definition: MuonCalibMdtTruthHit.cxx:16
MuonCalib::MuonCalibMdtTruthHit::MuonCalibMdtTruthHit
MuonCalibMdtTruthHit()=default
default constructor
MuonCalib::MuonCalibMdtTruthHit::setBarCode
void setBarCode(int barCode)
sets the barcode
Definition: MuonCalibMdtTruthHit.cxx:20
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibMdtTruthHit &truth)
Definition: MuonCalibMdtTruthHit.cxx:47
MuonCalib::MuonCalibMdtTruthHit
Definition: MuonCalibMdtTruthHit.h:21
MuonCalib::MuonCalibMdtTruthHit::m_barCode
int m_barCode
barcode
Definition: MuonCalibMdtTruthHit.h:53
MuonCalib::MuonCalibMdtTruthHit::identify
MuonFixedId identify() const
retrieve the MuonFixedId
Definition: MuonCalibMdtTruthHit.cxx:11
MuonCalib::MuonCalibMdtTruthHit::m_positionAlongTube
double m_positionAlongTube
position along tube
Definition: MuonCalibMdtTruthHit.h:55
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibMdtTruthHit::setTime
void setTime(double time)
sets the time
Definition: MuonCalibMdtTruthHit.cxx:26
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibMdtTruthHit::setgPositionZ
void setgPositionZ(double gpositionZ)
sets the global Z position
Definition: MuonCalibMdtTruthHit.cxx:25
MuonCalib::MuonCalibMdtTruthHit::m_driftRadius
double m_driftRadius
drift radius
Definition: MuonCalibMdtTruthHit.h:54
MuonCalib::MuonCalibMdtTruthHit::setgPositionY
void setgPositionY(double gpositionY)
sets the global Y position
Definition: MuonCalibMdtTruthHit.cxx:24
MuonCalib::MuonCalibMdtTruthHit::positionAlongTube
double positionAlongTube() const
retrieve the position along tube
Definition: MuonCalibMdtTruthHit.cxx:14
MuonCalib::MuonCalibMdtTruthHit::setDriftRadius
void setDriftRadius(double driftRadius)
sets the driftradius
Definition: MuonCalibMdtTruthHit.cxx:21
MuonCalib::MuonCalibMdtTruthHit::barCode
int barCode() const
retrieve the barcode
Definition: MuonCalibMdtTruthHit.cxx:12
MuonCalib::MuonCalibMdtTruthHit::setgPositionX
void setgPositionX(double gpositionX)
sets the global X position
Definition: MuonCalibMdtTruthHit.cxx:23
MuonCalib::MuonCalibMdtTruthHit::setPositionAlongTube
void setPositionAlongTube(double positionAlongTube)
sets the position along tube
Definition: MuonCalibMdtTruthHit.cxx:22
MuonFixedId.h
MuonCalib::MuonCalibMdtTruthHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibMdtTruthHit
Definition: MuonCalibMdtTruthHit.cxx:32
MuonCalib::MuonCalibMdtTruthHit::m_pos
Amg::Vector3D m_pos
Definition: MuonCalibMdtTruthHit.h:56
MuonCalib::MuonCalibMdtTruthHit::setIdentifier
void setIdentifier(MuonFixedId id)
sets the MuonFixedId
Definition: MuonCalibMdtTruthHit.cxx:19