ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonCalib::MuonCalibTruth Class Reference

#include <MuonCalibTruth.h>

Collaboration diagram for MuonCalib::MuonCalibTruth:

Public Member Functions

 MuonCalibTruth ()=default
 default constructor More...
 
 MuonCalibTruth (const MuonCalibTruth &truth)=default
 copy constructor More...
 
MuonCalibTruthoperator= (const MuonCalibTruth &rhs)
 assignement operator More...
 
 ~MuonCalibTruth ()=default
 destructor More...
 
 MuonCalibTruth (const Amg::Vector3D &pos, const Amg::Vector3D &momentum, double kinEnergy, int code, int barCode)
 constructor initializing all attributes More...
 
void setPosition (const Amg::Vector3D &pos)
 sets position More...
 
void setMomentum (const Amg::Vector3D &mom)
 sets momentum More...
 
void setKinEnergy (double kinEnergy)
 sets kinetic energy More...
 
void setPDGCode (int code)
 sets PDG code More...
 
void setBarCode (int barCode)
 sets barcode More...
 
void setUniqueID (int uniqueID)
 sets unique ID More...
 
const Amg::Vector3Dposition () const
 retrieve position More...
 
const Amg::Vector3Dmomentum () const
 retrieve momentum More...
 
double kinEnergy () const
 retrieve kinetic energy More...
 
int PDGCode () const
 retrieve PDG code More...
 
int barCode () const
 retrieve barcode More...
 
int id () const
 retrieve unique ID More...
 
std::ostream & dump (std::ostream &stream) const
 dump method to be used in operator<<() of the MuonCalibTruth for output More...
 

Private Attributes

Amg::Vector3D m_position {0., 0., 0.}
 position More...
 
Amg::Vector3D m_momentum {0., 0., 0.}
 momentum More...
 
double m_kinEnergy {0.}
 kinetic energy More...
 
int m_PDGCode {0}
 PDG code. More...
 
int m_barCode {0}
 bar code More...
 
int m_uniqueID {0}
 unique ID More...
 

Detailed Description

Calib-EDM version of TrackRecord, given at the MuonSpectrometer entrance. It contains the following:

Definition at line 24 of file MuonCalibTruth.h.

Constructor & Destructor Documentation

◆ MuonCalibTruth() [1/3]

MuonCalib::MuonCalibTruth::MuonCalibTruth ( )
default

default constructor

◆ MuonCalibTruth() [2/3]

MuonCalib::MuonCalibTruth::MuonCalibTruth ( const MuonCalibTruth truth)
default

copy constructor

◆ ~MuonCalibTruth()

MuonCalib::MuonCalibTruth::~MuonCalibTruth ( )
default

destructor

◆ MuonCalibTruth() [3/3]

MuonCalib::MuonCalibTruth::MuonCalibTruth ( const Amg::Vector3D pos,
const Amg::Vector3D momentum,
double  kinEnergy,
int  code,
int  barCode 
)

constructor initializing all attributes

Definition at line 11 of file MuonCalibTruth.cxx.

Member Function Documentation

◆ barCode()

int MuonCalib::MuonCalibTruth::barCode ( ) const

retrieve barcode

Definition at line 34 of file MuonCalibTruth.cxx.

34 { return m_barCode; }

◆ dump()

std::ostream & MuonCalib::MuonCalibTruth::dump ( std::ostream &  stream) const

dump method to be used in operator<<() of the MuonCalibTruth for output

Definition at line 38 of file MuonCalibTruth.cxx.

38  {
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  }

◆ id()

int MuonCalib::MuonCalibTruth::id ( ) const

retrieve unique ID

Definition at line 36 of file MuonCalibTruth.cxx.

36 { return m_uniqueID; }

◆ kinEnergy()

double MuonCalib::MuonCalibTruth::kinEnergy ( ) const

retrieve kinetic energy

Definition at line 30 of file MuonCalibTruth.cxx.

30 { return m_kinEnergy; }

◆ momentum()

const Amg::Vector3D & MuonCalib::MuonCalibTruth::momentum ( ) const

retrieve momentum

Definition at line 28 of file MuonCalibTruth.cxx.

28 { return m_momentum; }

◆ operator=()

MuonCalibTruth& MuonCalib::MuonCalibTruth::operator= ( const MuonCalibTruth rhs)

assignement operator

◆ PDGCode()

int MuonCalib::MuonCalibTruth::PDGCode ( ) const

retrieve PDG code

Definition at line 32 of file MuonCalibTruth.cxx.

32 { return m_PDGCode; }

◆ position()

const Amg::Vector3D & MuonCalib::MuonCalibTruth::position ( ) const

retrieve position

Definition at line 26 of file MuonCalibTruth.cxx.

26 { return m_position; }

◆ setBarCode()

void MuonCalib::MuonCalibTruth::setBarCode ( int  barCode)

sets barcode

Definition at line 22 of file MuonCalibTruth.cxx.

22 { m_barCode = barCode; }

◆ setKinEnergy()

void MuonCalib::MuonCalibTruth::setKinEnergy ( double  kinEnergy)

sets kinetic energy

Definition at line 18 of file MuonCalibTruth.cxx.

◆ setMomentum()

void MuonCalib::MuonCalibTruth::setMomentum ( const Amg::Vector3D mom)

sets momentum

Definition at line 16 of file MuonCalibTruth.cxx.

16 { m_momentum = mom; }

◆ setPDGCode()

void MuonCalib::MuonCalibTruth::setPDGCode ( int  code)

sets PDG code

Definition at line 20 of file MuonCalibTruth.cxx.

20 { m_PDGCode = code; }

◆ setPosition()

void MuonCalib::MuonCalibTruth::setPosition ( const Amg::Vector3D pos)

sets position

Definition at line 14 of file MuonCalibTruth.cxx.

14 { m_position = pos; }

◆ setUniqueID()

void MuonCalib::MuonCalibTruth::setUniqueID ( int  uniqueID)

sets unique ID

Definition at line 24 of file MuonCalibTruth.cxx.

24 { m_uniqueID = uniqueID; }

Member Data Documentation

◆ m_barCode

int MuonCalib::MuonCalibTruth::m_barCode {0}
private

bar code

Definition at line 54 of file MuonCalibTruth.h.

◆ m_kinEnergy

double MuonCalib::MuonCalibTruth::m_kinEnergy {0.}
private

kinetic energy

Definition at line 52 of file MuonCalibTruth.h.

◆ m_momentum

Amg::Vector3D MuonCalib::MuonCalibTruth::m_momentum {0., 0., 0.}
private

momentum

Definition at line 51 of file MuonCalibTruth.h.

◆ m_PDGCode

int MuonCalib::MuonCalibTruth::m_PDGCode {0}
private

PDG code.

Definition at line 53 of file MuonCalibTruth.h.

◆ m_position

Amg::Vector3D MuonCalib::MuonCalibTruth::m_position {0., 0., 0.}
private

position

Definition at line 50 of file MuonCalibTruth.h.

◆ m_uniqueID

int MuonCalib::MuonCalibTruth::m_uniqueID {0}
private

unique ID

Definition at line 55 of file MuonCalibTruth.h.


The documentation for this class was generated from the following files:
MuonCalib::MuonCalibTruth::m_uniqueID
int m_uniqueID
unique ID
Definition: MuonCalibTruth.h:55
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
histSizes.code
code
Definition: histSizes.py:129
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:116
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::m_barCode
int m_barCode
bar code
Definition: MuonCalibTruth.h:54
MuonCalib::MuonCalibTruth::id
int id() const
retrieve unique ID
Definition: MuonCalibTruth.cxx:36
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
MuonCalib::MuonCalibTruth::momentum
const Amg::Vector3D & momentum() const
retrieve momentum
Definition: MuonCalibTruth.cxx:28
MuonCalib::MuonCalibTruth::barCode
int barCode() const
retrieve barcode
Definition: MuonCalibTruth.cxx:34