ATLAS Offline Software
MuonCalibTruth.h
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 // Class to store truth information in //
7 // Author: Zdenko van Kesteren //
8 // Date : 2 December 2005 //
9 //*********************************************************//
10 
11 #ifndef MuonCalibTruth_h
12 #define MuonCalibTruth_h
14 
15 namespace MuonCalib {
25  public:
26  MuonCalibTruth() = default;
27  MuonCalibTruth(const MuonCalibTruth& truth) = default;
29  ~MuonCalibTruth() = default;
30 
32  int barCode);
33 
34  void setPosition(const Amg::Vector3D& pos);
35  void setMomentum(const Amg::Vector3D& mom);
36  void setKinEnergy(double kinEnergy);
37  void setPDGCode(int code);
38  void setBarCode(int barCode);
39  void setUniqueID(int uniqueID);
40 
41  const Amg::Vector3D& position() const;
42  const Amg::Vector3D& momentum() const;
43  double kinEnergy() const;
44  int PDGCode() const;
45  int barCode() const;
46  int id() const;
47 
48  std::ostream& dump(std::ostream& stream) const;
49  private:
50  Amg::Vector3D m_position{0., 0., 0.};
51  Amg::Vector3D m_momentum{0., 0., 0.};
52  double m_kinEnergy{0.};
53  int m_PDGCode{0};
54  int m_barCode{0};
55  int m_uniqueID{0};
56  };
57 
58 } // namespace MuonCalib
59 
60 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibTruth& truht);
61 
62 #endif // MuonCalibTruth_h
MuonCalib::MuonCalibTruth::setBarCode
void setBarCode(int barCode)
sets barcode
Definition: MuonCalibTruth.cxx:22
MuonCalib::MuonCalibTruth::setPDGCode
void setPDGCode(int code)
sets PDG code
Definition: MuonCalibTruth.cxx:20
MuonCalib::MuonCalibTruth::m_uniqueID
int m_uniqueID
unique ID
Definition: MuonCalibTruth.h:55
MuonCalib::MuonCalibTruth::operator=
MuonCalibTruth & operator=(const MuonCalibTruth &rhs)
assignement operator
MuonCalib::MuonCalibTruth::position
const Amg::Vector3D & position() const
retrieve position
Definition: MuonCalibTruth.cxx:26
MuonCalib::MuonCalibTruth::PDGCode
int PDGCode() const
retrieve PDG code
Definition: MuonCalibTruth.cxx:32
MuonCalib::MuonCalibTruth::m_PDGCode
int m_PDGCode
PDG code.
Definition: MuonCalibTruth.h:53
MuonCalib::MuonCalibTruth::kinEnergy
double kinEnergy() const
retrieve kinetic energy
Definition: MuonCalibTruth.cxx:30
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibTruth::m_kinEnergy
double m_kinEnergy
kinetic energy
Definition: MuonCalibTruth.h:52
GeoPrimitives.h
MuonCalib::MuonCalibTruth::~MuonCalibTruth
~MuonCalibTruth()=default
destructor
histSizes.code
code
Definition: histSizes.py:129
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
MuonCalib::MuonCalibTruth::setUniqueID
void setUniqueID(int uniqueID)
sets unique ID
Definition: MuonCalibTruth.cxx:24
MuonCalib::MuonCalibTruth::MuonCalibTruth
MuonCalibTruth()=default
default constructor
MuonCalib::MuonCalibTruth::setMomentum
void setMomentum(const Amg::Vector3D &mom)
sets momentum
Definition: MuonCalibTruth.cxx:16
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:109
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::MuonCalibTruth &truht)
Definition: MuonCalibTruth.cxx:49
MuonCalib::MuonCalibTruth::m_momentum
Amg::Vector3D m_momentum
momentum
Definition: MuonCalibTruth.h:51
MuonCalib::MuonCalibTruth::m_position
Amg::Vector3D m_position
position
Definition: MuonCalibTruth.h:50
MuonCalib::MuonCalibTruth::dump
std::ostream & dump(std::ostream &stream) const
dump method to be used in operator<<() of the MuonCalibTruth for output
Definition: MuonCalibTruth.cxx:38
MuonCalib::MuonCalibTruth::m_barCode
int m_barCode
bar code
Definition: MuonCalibTruth.h:54
MuonCalib::MuonCalibTruth::setPosition
void setPosition(const Amg::Vector3D &pos)
sets position
Definition: MuonCalibTruth.cxx:14
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibTruth::id
int id() const
retrieve unique ID
Definition: MuonCalibTruth.cxx:36
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
MuonCalib::MuonCalibTruth::setKinEnergy
void setKinEnergy(double kinEnergy)
sets kinetic energy
Definition: MuonCalibTruth.cxx:18
MuonCalib::MuonCalibTruth::momentum
const Amg::Vector3D & momentum() const
retrieve momentum
Definition: MuonCalibTruth.cxx:28
MuonCalib::MuonCalibTruth
Definition: MuonCalibTruth.h:24
MuonCalib::MuonCalibTruth::MuonCalibTruth
MuonCalibTruth(const MuonCalibTruth &truth)=default
copy constructor
MuonCalib::MuonCalibTruth::barCode
int barCode() const
retrieve barcode
Definition: MuonCalibTruth.cxx:34