ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace MuonCalib {
22 public:
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.};
56 Amg::Vector3D m_pos{0., 0., 0.};
57 double m_time{0.};
58 };
59
60} // namespace MuonCalib
61
62std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibMdtTruthHit &truth);
63
64#endif // MuonCalibTruth_h
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
MuonFixedId identify() const
retrieve the MuonFixedId
MuonCalibMdtTruthHit & operator=(const MuonCalibMdtTruthHit &rhs)=default
assignment operator
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
~MuonCalibMdtTruthHit()=default
destructor
void setDriftRadius(double driftRadius)
sets the driftradius
void setgPositionX(double gpositionX)
sets the global X position
MuonCalibMdtTruthHit(const MuonCalibMdtTruthHit &truth)=default
copyconstructor
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.
-event-from-file