ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibTruth.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
9namespace MuonCalib {
10
13
15
17
19
20 void MuonCalibTruth::setPDGCode(int code) { m_PDGCode = code; }
21
23
24 void MuonCalibTruth::setUniqueID(int uniqueID) { m_uniqueID = uniqueID; }
25
27
29
30 double MuonCalibTruth::kinEnergy() const { return m_kinEnergy; }
31
32 int MuonCalibTruth::PDGCode() const { return m_PDGCode; }
33
34 int MuonCalibTruth::barCode() const { return m_barCode; }
35
36 int MuonCalibTruth::id() const { return m_uniqueID; }
37
38 std::ostream& MuonCalibTruth::dump(std::ostream& stream) const {
39 stream << "MuonCalibTruth with" << std::endl;
40 stream << " position " << position() << std::endl;
41 stream << " momentum " << momentum() << std::endl;
42 stream << " kinEnergy " << kinEnergy() << " , PDGCode " << PDGCode() << " and barCode/uniqueID " << barCode() <<"/" << id() << std::endl;
43
44 return stream;
45 }
46
47} // namespace MuonCalib
48
49std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibTruth& truth) { return truth.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibTruth &truth)
Calib-EDM version of TrackRecord, given at the MuonSpectrometer entrance.
const Amg::Vector3D & momentum() const
retrieve momentum
int barCode() const
retrieve barcode
Amg::Vector3D m_momentum
momentum
int PDGCode() const
retrieve PDG code
MuonCalibTruth()=default
default constructor
void setUniqueID(int uniqueID)
sets unique ID
void setMomentum(const Amg::Vector3D &mom)
sets momentum
void setPDGCode(int code)
sets PDG code
void setPosition(const Amg::Vector3D &pos)
sets position
double m_kinEnergy
kinetic energy
double kinEnergy() const
retrieve kinetic energy
Amg::Vector3D m_position
position
std::ostream & dump(std::ostream &stream) const
dump method to be used in operator<<() of the MuonCalibTruth for output
const Amg::Vector3D & position() const
retrieve position
void setKinEnergy(double kinEnergy)
sets kinetic energy
int id() const
retrieve unique ID
void setBarCode(int barCode)
sets barcode
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.