CbmRoot
Loading...
Searching...
No Matches
cbm::ca::tools::MCPoint Class Reference

Class describes a unified MC-point, used in CA tracking QA analysis. More...

#include <CaToolsMCPoint.h>

Collaboration diagram for cbm::ca::tools::MCPoint:
[legend]

Public Member Functions

 MCPoint ()=default
 Default constructor.
 
 ~MCPoint ()=default
 Destructor.
 
 MCPoint (const MCPoint &)=default
 Copy constructor.
 
 MCPoint (MCPoint &&)=default
 Move constructor.
 
MCPointoperator= (const MCPoint &)=default
 Copy assignment operator.
 
MCPointoperator= (MCPoint &&)=default
 Move assignment operator.
 
void AddHitID (int iH)
 Adds index of hits from the container of hits of event/TS.
 
double GetCharge () const
 Gets charge of the particle [e].
 
ca::EDetectorID GetDetectorId () const
 Gets detector ID.
 
int GetEventId () const
 Gets MC event ID.
 
int GetExternalId () const
 Gets MC external ID.
 
int GetFileId () const
 Gets MC file ID.
 
int GetId () const
 Gets index of this point in internal CA container.
 
int GetInvSpeed () const
 Gets inverse speed at reference z of station [ns/cm].
 
int GetInvSpeedIn () const
 Gets inverse speed at entrance to station [ns/cm].
 
int GetInvSpeedOut () const
 Gets inverse speed at exit of station [ns/cm].
 
const auto & GetHitIndexes () const
 Gets container of matched hit indexes.
 
LinkKey GetLinkKey () const
 Gets link key.
 
double GetMass () const
 Gets mass of the particle [GeV/c2].
 
int GetMotherId () const
 Gets mother ID of the track.
 
double GetP () const
 Gets track momentum absolute value at reference z of station [GeV/c].
 
int GetPdgCode () const
 Gets PDG code of the particle.
 
double GetPhi () const
 Gets track azimuthal angle at reference z of station [rad].
 
double GetPhiIn () const
 Gets track azimuthal angle at entrance to station [rad].
 
double GetPhiOut () const
 Gets track azimuthal angle at exit of station [rad].
 
double GetPIn () const
 Gets track momentum absolute value at entrance to station [GeV/c].
 
double GetPOut () const
 Gets track momentum absolute value at exit of station [GeV/c].
 
double GetPt () const
 Gets track transverse momentum at reference z of station [GeV/c].
 
double GetPtIn () const
 Gets track transverse momentum at entrance to station [GeV/c].
 
double GetPtOut () const
 Gets track transverse momentum at exit of station [GeV/c].
 
double GetPx () const
 Gets track momentum x component at reference z of station [GeV/c].
 
double GetPxIn () const
 Gets track momentum x component at entrance to station [GeV/c].
 
double GetPxOut () const
 Gets track momentum x component at exit of station [GeV/c].
 
double GetPy () const
 Gets track momentum y component at reference z of station [GeV/c].
 
double GetPyIn () const
 Gets track momentum y component at entrance to station [GeV/c].
 
double GetPyOut () const
 Gets track momentum y component at exit of station [GeV/c].
 
double GetPz () const
 Gets track momentum z component at reference z of station [GeV/c].
 
double GetPzIn () const
 Gets track momentum z component at entrance to station [GeV/c].
 
double GetPzOut () const
 Gets track momentum z component at exit of station [GeV/c].
 
double GetQp () const
 Gets track charge over momentum at reference z of station [ec/GeV].
 
double GetQpIn () const
 Gets track momentum absolute value at entrance to station [ec/GeV].
 
double GetQpOut () const
 Gets track momentum absolute value at exit of station [ec/GeV].
 
int GetStationId () const
 Gets global ID of the active tracking station.
 
double GetTheta () const
 Gets polar angle at reference z of station [rad].
 
double GetThetaIn () const
 Gets polar angle at entrance to station [rad].
 
double GetThetaOut () const
 Gets polar angle at exit of station [rad].
 
double GetTime () const
 Gets time [ns].
 
int GetTrackId () const
 Gets ID of track from the internal CA MC track container (within event/TS)
 
double GetTx () const
 Gets slope along x-axis at reference z of station.
 
double GetTxIn () const
 Gets slope along x-axis at entrance to station.
 
double GetTxOut () const
 Gets slope along x-axis at exit of station.
 
double GetTy () const
 Gets slope along x-axis at reference z of station.
 
double GetTyIn () const
 Gets slope along x-axis at entrance to station.
 
double GetTyOut () const
 Gets slope along x-axis at exit of station.
 
double GetX () const
 Gets x coordinate at reference z of station [cm].
 
double GetXIn () const
 Gets x coordinate at entrance to station [cm].
 
double GetXOut () const
 Gets x coordinate at exit of station [cm].
 
double GetY () const
 Gets y coordinate at reference z of station [cm].
 
double GetYIn () const
 Gets y coordinate at entrance to station [cm].
 
double GetYOut () const
 Gets y coordinate at exit of station [cm].
 
double GetZ () const
 Gets z coordinate at reference z of station [cm].
 
double GetZIn () const
 Gets z coordinate at entrance to station [cm].
 
double GetZOut () const
 Gets z coordinate at exit of station [cm].
 
void SetCharge (double charge)
 Sets particle charge [e].
 
void SetDetectorId (ca::EDetectorID detId)
 Sets detector ID.
 
void SetEventId (int eventId)
 Sets index of MC event containing this point.
 
void SetExternalId (int id)
 Sets index of this point in external data structures.
 
void SetFileId (int fileId)
 Sets index of MC file containing this point.
 
void SetId (int id)
 Sets index of this point in the CA internal structure.
 
void SetMass (double mass)
 Sets particle mass [GeV/c2].
 
void SetMotherId (int motherId)
 Sets index of mother track in the internal CA data structures.
 
void SetPdgCode (int pdg)
 Sets PDG code.
 
void SetPx (double px)
 Sets track momentum x component at reference z of station [GeV/c].
 
void SetPxIn (double px)
 Sets track momentum x component at entrance to station [GeV/c].
 
void SetPxOut (double px)
 Sets track momentum x component at exit of station [GeV/c].
 
void SetPy (double py)
 Sets track momentum y component at reference z of station [GeV/c].
 
void SetPyIn (double py)
 Sets track momentum y component at entrance to station [GeV/c].
 
void SetPyOut (double py)
 Sets track momentum y component at exit of station [GeV/c].
 
void SetPz (double pz)
 Sets track momentum z component at reference z of station [GeV/c].
 
void SetPzIn (double pz)
 Sets track momentum z component at entrance to station [GeV/c].
 
void SetPzOut (double pz)
 Sets track momentum z component at exit of station [GeV/c].
 
void SetStationId (int stationId)
 Sets global index of active station.
 
void SetTime (double time)
 Sets time [ns].
 
void SetTrackId (int trackId)
 Sets track ID in the CA internal track container (within event/TS)
 
void SetX (double x)
 Sets x coordinate at reference z of station [cm].
 
void SetXIn (double x)
 Sets x coordinate at entrance to station [cm].
 
void SetXOut (double x)
 Sets x coordinate at exit of station [cm].
 
void SetY (double y)
 Sets y coordinate at reference z of station [cm].
 
void SetYIn (double y)
 Sets y coordinate at entrance to station [cm].
 
void SetYOut (double y)
 Sets x coordinate at exit of station [cm].
 
void SetZ (double z)
 Sets z coordinate at reference z of station [cm].
 
void SetZIn (double z)
 Sets z coordinate at entrance to station [cm].
 
void SetZOut (double z)
 Sets z coordinate at exit of station [cm].
 
std::string ToString (int verbose, bool printHeader=false) const
 Prints content for a given verbosity level.
 

Private Attributes

std::array< double, 3 > fPos = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Position at reference z of station [cm].
 
std::array< double, 3 > fPosIn = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Position at entrance to station [cm].
 
std::array< double, 3 > fPosOut = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Position at exit of station [cm].
 
std::array< double, 3 > fMom = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Momentum at reference z of station [GeV/c].
 
std::array< double, 3 > fMomIn = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Momentum at entrance to station [GeV/c].
 
std::array< double, 3 > fMomOut = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
 Momentum at exit of station [cm].
 
double fMass = constants::Undef<double>
 Particle mass [GeV/c2].
 
double fCharge = constants::Undef<double>
 Particle charge [e].
 
double fTime = constants::Undef<double>
 Point time [ns].
 
LinkKey fLinkKey = {constants::Undef<int>, constants::Undef<int>, constants::Undef<int>}
 Link key of point.
 
int fPdgCode = constants::Undef<int>
 Particle PDG code.
 
int fId = constants::Undef<int>
 Index of MC point in the external MC point container.
 
int fTrackId
 Index of associated MC track in CA internal track container within TS/event.
 
int fMotherId = constants::Undef<int>
 Index of mother track in CA internal data structures (within event/TS)
 
int fStationId = constants::Undef<int>
 Global index of active tracking station.
 
ca::EDetectorID fDetectorId
 Detector ID of MC point.
 
ca::Vector< int > fvHitIndexes {"ca::tools::MCPoint::fvHitIndexes"}
 Indexes of hits, assigned to this point.
 

Detailed Description

Class describes a unified MC-point, used in CA tracking QA analysis.

Definition at line 33 of file CaToolsMCPoint.h.

Constructor & Destructor Documentation

◆ MCPoint() [1/3]

cbm::ca::tools::MCPoint::MCPoint ( )
default

Default constructor.

◆ ~MCPoint()

cbm::ca::tools::MCPoint::~MCPoint ( )
default

Destructor.

◆ MCPoint() [2/3]

cbm::ca::tools::MCPoint::MCPoint ( const MCPoint & )
default

Copy constructor.

◆ MCPoint() [3/3]

cbm::ca::tools::MCPoint::MCPoint ( MCPoint && )
default

Move constructor.

Member Function Documentation

◆ AddHitID()

void cbm::ca::tools::MCPoint::AddHitID ( int iH)
inline

Adds index of hits from the container of hits of event/TS.

Parameters
iHA hit index in the external hits container of event/TS

Definition at line 56 of file CaToolsMCPoint.h.

References fvHitIndexes, and cbm::algo::ca::Vector< T >::push_back_no_warning().

◆ GetCharge()

double cbm::ca::tools::MCPoint::GetCharge ( ) const
inline

Gets charge of the particle [e].

Definition at line 64 of file CaToolsMCPoint.h.

References fCharge.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetDetectorId()

ca::EDetectorID cbm::ca::tools::MCPoint::GetDetectorId ( ) const
inline

Gets detector ID.

Definition at line 67 of file CaToolsMCPoint.h.

References fDetectorId.

Referenced by cbm::ca::tools::MCData::AddPoint().

◆ GetEventId()

int cbm::ca::tools::MCPoint::GetEventId ( ) const
inline

Gets MC event ID.

Definition at line 70 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fEvent, and fLinkKey.

◆ GetExternalId()

int cbm::ca::tools::MCPoint::GetExternalId ( ) const
inline

Gets MC external ID.

Note
External ID of a point shifted from the original external ID by the total number of points, produced in the preceding detector subsystems.

Definition at line 75 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fIndex, and fLinkKey.

◆ GetFileId()

int cbm::ca::tools::MCPoint::GetFileId ( ) const
inline

Gets MC file ID.

Definition at line 78 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fFile, and fLinkKey.

◆ GetHitIndexes()

const auto & cbm::ca::tools::MCPoint::GetHitIndexes ( ) const
inline

Gets container of matched hit indexes.

Definition at line 99 of file CaToolsMCPoint.h.

References fvHitIndexes.

◆ GetId()

int cbm::ca::tools::MCPoint::GetId ( ) const
inline

Gets index of this point in internal CA container.

Definition at line 81 of file CaToolsMCPoint.h.

References fId.

Referenced by cbm::ca::tools::MCData::AddPoint().

◆ GetInvSpeed()

int cbm::ca::tools::MCPoint::GetInvSpeed ( ) const
inline

Gets inverse speed at reference z of station [ns/cm].

Definition at line 84 of file CaToolsMCPoint.h.

References GetMass(), GetP(), and cbm::algo::ca::constants::phys::SpeedOfLightInv.

Referenced by cbm::ca::TrackFitQa::Fill(), and CbmL1::FillFitHistos().

◆ GetInvSpeedIn()

int cbm::ca::tools::MCPoint::GetInvSpeedIn ( ) const
inline

Gets inverse speed at entrance to station [ns/cm].

Definition at line 87 of file CaToolsMCPoint.h.

References GetMass(), GetPIn(), and cbm::algo::ca::constants::phys::SpeedOfLightInv.

◆ GetInvSpeedOut()

int cbm::ca::tools::MCPoint::GetInvSpeedOut ( ) const
inline

Gets inverse speed at exit of station [ns/cm].

Definition at line 93 of file CaToolsMCPoint.h.

References GetMass(), GetPOut(), and cbm::algo::ca::constants::phys::SpeedOfLightInv.

◆ GetLinkKey()

LinkKey cbm::ca::tools::MCPoint::GetLinkKey ( ) const
inline

Gets link key.

Definition at line 102 of file CaToolsMCPoint.h.

References fLinkKey.

Referenced by cbm::ca::tools::MCData::AddPoint().

◆ GetMass()

double cbm::ca::tools::MCPoint::GetMass ( ) const
inline

Gets mass of the particle [GeV/c2].

Definition at line 105 of file CaToolsMCPoint.h.

References fMass.

Referenced by GetInvSpeed(), GetInvSpeedIn(), and GetInvSpeedOut().

◆ GetMotherId()

int cbm::ca::tools::MCPoint::GetMotherId ( ) const
inline

Gets mother ID of the track.

Definition at line 108 of file CaToolsMCPoint.h.

References fMotherId.

◆ GetP()

double cbm::ca::tools::MCPoint::GetP ( ) const
inline

Gets track momentum absolute value at reference z of station [GeV/c].

Definition at line 111 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::TrackFitQa::Fill(), CbmL1::FillFitHistos(), GetInvSpeed(), GetQp(), GetTheta(), and ToString().

◆ GetPdgCode()

int cbm::ca::tools::MCPoint::GetPdgCode ( ) const
inline

Gets PDG code of the particle.

Definition at line 114 of file CaToolsMCPoint.h.

References fPdgCode.

◆ GetPhi()

double cbm::ca::tools::MCPoint::GetPhi ( ) const
inline

Gets track azimuthal angle at reference z of station [rad].

Definition at line 117 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetPhiIn()

double cbm::ca::tools::MCPoint::GetPhiIn ( ) const
inline

Gets track azimuthal angle at entrance to station [rad].

Definition at line 120 of file CaToolsMCPoint.h.

References fMomIn.

◆ GetPhiOut()

double cbm::ca::tools::MCPoint::GetPhiOut ( ) const
inline

Gets track azimuthal angle at exit of station [rad].

Definition at line 123 of file CaToolsMCPoint.h.

References fMomOut.

◆ GetPIn()

double cbm::ca::tools::MCPoint::GetPIn ( ) const
inline

Gets track momentum absolute value at entrance to station [GeV/c].

Definition at line 126 of file CaToolsMCPoint.h.

References fMomIn.

Referenced by GetInvSpeedIn(), GetQpIn(), and GetThetaIn().

◆ GetPOut()

double cbm::ca::tools::MCPoint::GetPOut ( ) const
inline

Gets track momentum absolute value at exit of station [GeV/c].

Definition at line 129 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by GetInvSpeedOut(), GetQpOut(), and GetThetaOut().

◆ GetPt()

double cbm::ca::tools::MCPoint::GetPt ( ) const
inline

Gets track transverse momentum at reference z of station [GeV/c].

Definition at line 135 of file CaToolsMCPoint.h.

References fMom, and sqrt().

◆ GetPtIn()

double cbm::ca::tools::MCPoint::GetPtIn ( ) const
inline

Gets track transverse momentum at entrance to station [GeV/c].

Definition at line 138 of file CaToolsMCPoint.h.

References fMomIn, and sqrt().

◆ GetPtOut()

double cbm::ca::tools::MCPoint::GetPtOut ( ) const
inline

Gets track transverse momentum at exit of station [GeV/c].

Definition at line 145 of file CaToolsMCPoint.h.

References fMomOut, and sqrt().

◆ GetPx()

double cbm::ca::tools::MCPoint::GetPx ( ) const
inline

Gets track momentum x component at reference z of station [GeV/c].

Definition at line 153 of file CaToolsMCPoint.h.

References fMom.

◆ GetPxIn()

double cbm::ca::tools::MCPoint::GetPxIn ( ) const
inline

Gets track momentum x component at entrance to station [GeV/c].

Definition at line 156 of file CaToolsMCPoint.h.

References fMomIn.

◆ GetPxOut()

double cbm::ca::tools::MCPoint::GetPxOut ( ) const
inline

Gets track momentum x component at exit of station [GeV/c].

Definition at line 159 of file CaToolsMCPoint.h.

References fMomOut.

◆ GetPy()

double cbm::ca::tools::MCPoint::GetPy ( ) const
inline

Gets track momentum y component at reference z of station [GeV/c].

Definition at line 162 of file CaToolsMCPoint.h.

References fMom.

◆ GetPyIn()

double cbm::ca::tools::MCPoint::GetPyIn ( ) const
inline

Gets track momentum y component at entrance to station [GeV/c].

Definition at line 165 of file CaToolsMCPoint.h.

References fMomIn.

◆ GetPyOut()

double cbm::ca::tools::MCPoint::GetPyOut ( ) const
inline

Gets track momentum y component at exit of station [GeV/c].

Definition at line 168 of file CaToolsMCPoint.h.

References fMomOut.

◆ GetPz()

double cbm::ca::tools::MCPoint::GetPz ( ) const
inline

Gets track momentum z component at reference z of station [GeV/c].

Definition at line 171 of file CaToolsMCPoint.h.

References fMom.

Referenced by GetTheta().

◆ GetPzIn()

double cbm::ca::tools::MCPoint::GetPzIn ( ) const
inline

Gets track momentum z component at entrance to station [GeV/c].

Definition at line 174 of file CaToolsMCPoint.h.

References fMomIn.

Referenced by GetThetaIn().

◆ GetPzOut()

double cbm::ca::tools::MCPoint::GetPzOut ( ) const
inline

Gets track momentum z component at exit of station [GeV/c].

Definition at line 177 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by GetThetaOut().

◆ GetQp()

double cbm::ca::tools::MCPoint::GetQp ( ) const
inline

Gets track charge over momentum at reference z of station [ec/GeV].

Definition at line 180 of file CaToolsMCPoint.h.

References fCharge, and GetP().

Referenced by cbm::ca::TrackFitQa::Fill(), and CbmL1::FillFitHistos().

◆ GetQpIn()

double cbm::ca::tools::MCPoint::GetQpIn ( ) const
inline

Gets track momentum absolute value at entrance to station [ec/GeV].

Definition at line 183 of file CaToolsMCPoint.h.

References fCharge, and GetPIn().

◆ GetQpOut()

double cbm::ca::tools::MCPoint::GetQpOut ( ) const
inline

Gets track momentum absolute value at exit of station [ec/GeV].

Definition at line 186 of file CaToolsMCPoint.h.

References fCharge, and GetPOut().

◆ GetStationId()

int cbm::ca::tools::MCPoint::GetStationId ( ) const
inline

Gets global ID of the active tracking station.

Definition at line 189 of file CaToolsMCPoint.h.

References fStationId.

◆ GetTheta()

double cbm::ca::tools::MCPoint::GetTheta ( ) const
inline

Gets polar angle at reference z of station [rad].

Definition at line 192 of file CaToolsMCPoint.h.

References GetP(), and GetPz().

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetThetaIn()

double cbm::ca::tools::MCPoint::GetThetaIn ( ) const
inline

Gets polar angle at entrance to station [rad].

Definition at line 195 of file CaToolsMCPoint.h.

References GetPIn(), and GetPzIn().

◆ GetThetaOut()

double cbm::ca::tools::MCPoint::GetThetaOut ( ) const
inline

Gets polar angle at exit of station [rad].

Definition at line 198 of file CaToolsMCPoint.h.

References GetPOut(), and GetPzOut().

◆ GetTime()

double cbm::ca::tools::MCPoint::GetTime ( ) const
inline

Gets time [ns].

Definition at line 201 of file CaToolsMCPoint.h.

References fTime.

Referenced by cbm::ca::TrackFitQa::Fill(), and CbmL1::FillFitHistos().

◆ GetTrackId()

int cbm::ca::tools::MCPoint::GetTrackId ( ) const
inline

Gets ID of track from the internal CA MC track container (within event/TS)

Definition at line 204 of file CaToolsMCPoint.h.

References fTrackId.

◆ GetTx()

double cbm::ca::tools::MCPoint::GetTx ( ) const
inline

Gets slope along x-axis at reference z of station.

Definition at line 207 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetTxIn()

double cbm::ca::tools::MCPoint::GetTxIn ( ) const
inline

Gets slope along x-axis at entrance to station.

Definition at line 210 of file CaToolsMCPoint.h.

References fMomIn.

◆ GetTxOut()

double cbm::ca::tools::MCPoint::GetTxOut ( ) const
inline

Gets slope along x-axis at exit of station.

Definition at line 213 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by CbmL1::FillFitHistos().

◆ GetTy()

double cbm::ca::tools::MCPoint::GetTy ( ) const
inline

Gets slope along x-axis at reference z of station.

Definition at line 216 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetTyIn()

double cbm::ca::tools::MCPoint::GetTyIn ( ) const
inline

Gets slope along x-axis at entrance to station.

Definition at line 219 of file CaToolsMCPoint.h.

References fMomIn.

◆ GetTyOut()

double cbm::ca::tools::MCPoint::GetTyOut ( ) const
inline

Gets slope along x-axis at exit of station.

Definition at line 222 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by CbmL1::FillFitHistos().

◆ GetX()

double cbm::ca::tools::MCPoint::GetX ( ) const
inline

Gets x coordinate at reference z of station [cm].

Definition at line 225 of file CaToolsMCPoint.h.

References fPos.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetXIn()

double cbm::ca::tools::MCPoint::GetXIn ( ) const
inline

Gets x coordinate at entrance to station [cm].

Definition at line 228 of file CaToolsMCPoint.h.

References fPosIn.

◆ GetXOut()

double cbm::ca::tools::MCPoint::GetXOut ( ) const
inline

Gets x coordinate at exit of station [cm].

Definition at line 231 of file CaToolsMCPoint.h.

References fPosOut.

Referenced by CbmL1::FillFitHistos().

◆ GetY()

double cbm::ca::tools::MCPoint::GetY ( ) const
inline

Gets y coordinate at reference z of station [cm].

Definition at line 234 of file CaToolsMCPoint.h.

References fPos.

Referenced by cbm::ca::TrackFitQa::Fill().

◆ GetYIn()

double cbm::ca::tools::MCPoint::GetYIn ( ) const
inline

Gets y coordinate at entrance to station [cm].

Definition at line 237 of file CaToolsMCPoint.h.

References fPosIn.

◆ GetYOut()

double cbm::ca::tools::MCPoint::GetYOut ( ) const
inline

Gets y coordinate at exit of station [cm].

Definition at line 240 of file CaToolsMCPoint.h.

References fPosOut.

Referenced by CbmL1::FillFitHistos().

◆ GetZ()

double cbm::ca::tools::MCPoint::GetZ ( ) const
inline

Gets z coordinate at reference z of station [cm].

Definition at line 243 of file CaToolsMCPoint.h.

References fPos.

Referenced by cbm::ca::TrackFitQa::Fill(), and cbm::ca::TrackTypeQa::FillRecoTrack().

◆ GetZIn()

double cbm::ca::tools::MCPoint::GetZIn ( ) const
inline

Gets z coordinate at entrance to station [cm].

Definition at line 246 of file CaToolsMCPoint.h.

References fPosIn.

◆ GetZOut()

double cbm::ca::tools::MCPoint::GetZOut ( ) const
inline

Gets z coordinate at exit of station [cm].

Definition at line 249 of file CaToolsMCPoint.h.

References fPosOut.

Referenced by CbmL1::FillFitHistos().

◆ operator=() [1/2]

MCPoint & cbm::ca::tools::MCPoint::operator= ( const MCPoint & )
default

Copy assignment operator.

◆ operator=() [2/2]

MCPoint & cbm::ca::tools::MCPoint::operator= ( MCPoint && )
default

Move assignment operator.

◆ SetCharge()

void cbm::ca::tools::MCPoint::SetCharge ( double charge)
inline

Sets particle charge [e].

Definition at line 256 of file CaToolsMCPoint.h.

References fCharge.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetDetectorId()

void cbm::ca::tools::MCPoint::SetDetectorId ( ca::EDetectorID detId)
inline

Sets detector ID.

Definition at line 259 of file CaToolsMCPoint.h.

References fDetectorId.

◆ SetEventId()

void cbm::ca::tools::MCPoint::SetEventId ( int eventId)
inline

Sets index of MC event containing this point.

Definition at line 262 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fEvent, and fLinkKey.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetExternalId()

void cbm::ca::tools::MCPoint::SetExternalId ( int id)
inline

Sets index of this point in external data structures.

Definition at line 265 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fIndex, and fLinkKey.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetFileId()

void cbm::ca::tools::MCPoint::SetFileId ( int fileId)
inline

Sets index of MC file containing this point.

Definition at line 268 of file CaToolsMCPoint.h.

References cbm::ca::tools::LinkKey::fFile, and fLinkKey.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetId()

void cbm::ca::tools::MCPoint::SetId ( int id)
inline

Sets index of this point in the CA internal structure.

Definition at line 271 of file CaToolsMCPoint.h.

References fId.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetMass()

void cbm::ca::tools::MCPoint::SetMass ( double mass)
inline

Sets particle mass [GeV/c2].

Definition at line 274 of file CaToolsMCPoint.h.

References fMass.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetMotherId()

void cbm::ca::tools::MCPoint::SetMotherId ( int motherId)
inline

Sets index of mother track in the internal CA data structures.

Definition at line 277 of file CaToolsMCPoint.h.

References fMotherId.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPdgCode()

void cbm::ca::tools::MCPoint::SetPdgCode ( int pdg)
inline

Sets PDG code.

Definition at line 280 of file CaToolsMCPoint.h.

References fPdgCode.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPx()

void cbm::ca::tools::MCPoint::SetPx ( double px)
inline

Sets track momentum x component at reference z of station [GeV/c].

Definition at line 283 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPxIn()

void cbm::ca::tools::MCPoint::SetPxIn ( double px)
inline

Sets track momentum x component at entrance to station [GeV/c].

Definition at line 286 of file CaToolsMCPoint.h.

References fMomIn.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPxOut()

void cbm::ca::tools::MCPoint::SetPxOut ( double px)
inline

Sets track momentum x component at exit of station [GeV/c].

Definition at line 289 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPy()

void cbm::ca::tools::MCPoint::SetPy ( double py)
inline

Sets track momentum y component at reference z of station [GeV/c].

Definition at line 292 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPyIn()

void cbm::ca::tools::MCPoint::SetPyIn ( double py)
inline

Sets track momentum y component at entrance to station [GeV/c].

Definition at line 295 of file CaToolsMCPoint.h.

References fMomIn.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPyOut()

void cbm::ca::tools::MCPoint::SetPyOut ( double py)
inline

Sets track momentum y component at exit of station [GeV/c].

Definition at line 298 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPz()

void cbm::ca::tools::MCPoint::SetPz ( double pz)
inline

Sets track momentum z component at reference z of station [GeV/c].

Definition at line 301 of file CaToolsMCPoint.h.

References fMom.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPzIn()

void cbm::ca::tools::MCPoint::SetPzIn ( double pz)
inline

Sets track momentum z component at entrance to station [GeV/c].

Definition at line 304 of file CaToolsMCPoint.h.

References fMomIn.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetPzOut()

void cbm::ca::tools::MCPoint::SetPzOut ( double pz)
inline

Sets track momentum z component at exit of station [GeV/c].

Definition at line 307 of file CaToolsMCPoint.h.

References fMomOut.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetStationId()

void cbm::ca::tools::MCPoint::SetStationId ( int stationId)
inline

Sets global index of active station.

Definition at line 311 of file CaToolsMCPoint.h.

References fStationId.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetTime()

void cbm::ca::tools::MCPoint::SetTime ( double time)
inline

Sets time [ns].

Definition at line 314 of file CaToolsMCPoint.h.

References fTime.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetTrackId()

void cbm::ca::tools::MCPoint::SetTrackId ( int trackId)
inline

Sets track ID in the CA internal track container (within event/TS)

Definition at line 317 of file CaToolsMCPoint.h.

References fTrackId.

◆ SetX()

void cbm::ca::tools::MCPoint::SetX ( double x)
inline

Sets x coordinate at reference z of station [cm].

Definition at line 320 of file CaToolsMCPoint.h.

References fPos, and x.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetXIn()

void cbm::ca::tools::MCPoint::SetXIn ( double x)
inline

Sets x coordinate at entrance to station [cm].

Definition at line 323 of file CaToolsMCPoint.h.

References fPosIn, and x.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetXOut()

void cbm::ca::tools::MCPoint::SetXOut ( double x)
inline

Sets x coordinate at exit of station [cm].

Definition at line 326 of file CaToolsMCPoint.h.

References fPosOut, and x.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetY()

void cbm::ca::tools::MCPoint::SetY ( double y)
inline

Sets y coordinate at reference z of station [cm].

Definition at line 329 of file CaToolsMCPoint.h.

References fPos, and y.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetYIn()

void cbm::ca::tools::MCPoint::SetYIn ( double y)
inline

Sets y coordinate at entrance to station [cm].

Definition at line 332 of file CaToolsMCPoint.h.

References fPosIn, and y.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetYOut()

void cbm::ca::tools::MCPoint::SetYOut ( double y)
inline

Sets x coordinate at exit of station [cm].

Definition at line 335 of file CaToolsMCPoint.h.

References fPosOut, and y.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetZ()

void cbm::ca::tools::MCPoint::SetZ ( double z)
inline

Sets z coordinate at reference z of station [cm].

Definition at line 338 of file CaToolsMCPoint.h.

References fPos.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetZIn()

void cbm::ca::tools::MCPoint::SetZIn ( double z)
inline

Sets z coordinate at entrance to station [cm].

Definition at line 341 of file CaToolsMCPoint.h.

References fPosIn.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ SetZOut()

void cbm::ca::tools::MCPoint::SetZOut ( double z)
inline

Sets z coordinate at exit of station [cm].

Definition at line 344 of file CaToolsMCPoint.h.

References fPosOut.

Referenced by cbm::ca::tools::MCTrack::GetVertexPoint().

◆ ToString()

std::string MCPoint::ToString ( int verbose,
bool printHeader = false ) const

Prints content for a given verbosity level.

Parameters
verboseVerbosity level: -#0: Prints nothing -#1: Prints track ID, station ID, time and position -#2: Also prints zIn, zOut, absolute momentum, as well as point, event and file IDs
printHeaderIf true, parameter names will be printed instead of the parameters themselves

Definition at line 20 of file CaToolsMCPoint.cxx.

References fCharge, cbm::ca::tools::LinkKey::fEvent, cbm::ca::tools::LinkKey::fFile, fId, cbm::ca::tools::LinkKey::fIndex, fLinkKey, fMass, fMotherId, fPdgCode, fPos, fPosIn, fPosOut, fStationId, fTime, fTrackId, fvHitIndexes, and GetP().

Member Data Documentation

◆ fCharge

double cbm::ca::tools::MCPoint::fCharge = constants::Undef<double>
private

Particle charge [e].

Definition at line 373 of file CaToolsMCPoint.h.

Referenced by GetCharge(), GetQp(), GetQpIn(), GetQpOut(), SetCharge(), and ToString().

◆ fDetectorId

ca::EDetectorID cbm::ca::tools::MCPoint::fDetectorId
private

Detector ID of MC point.

Definition at line 385 of file CaToolsMCPoint.h.

Referenced by GetDetectorId(), and SetDetectorId().

◆ fId

int cbm::ca::tools::MCPoint::fId = constants::Undef<int>
private

Index of MC point in the external MC point container.

Definition at line 379 of file CaToolsMCPoint.h.

Referenced by GetId(), SetId(), and ToString().

◆ fLinkKey

LinkKey cbm::ca::tools::MCPoint::fLinkKey = {constants::Undef<int>, constants::Undef<int>, constants::Undef<int>}
private

Link key of point.

Definition at line 376 of file CaToolsMCPoint.h.

Referenced by GetEventId(), GetExternalId(), GetFileId(), GetLinkKey(), SetEventId(), SetExternalId(), SetFileId(), and ToString().

◆ fMass

double cbm::ca::tools::MCPoint::fMass = constants::Undef<double>
private

Particle mass [GeV/c2].

Definition at line 372 of file CaToolsMCPoint.h.

Referenced by GetMass(), SetMass(), and ToString().

◆ fMom

std::array<double, 3> cbm::ca::tools::MCPoint::fMom = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Momentum at reference z of station [GeV/c].

Definition at line 366 of file CaToolsMCPoint.h.

Referenced by GetP(), GetPhi(), GetPt(), GetPx(), GetPy(), GetPz(), GetTx(), GetTy(), SetPx(), SetPy(), and SetPz().

◆ fMomIn

std::array<double, 3> cbm::ca::tools::MCPoint::fMomIn = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Momentum at entrance to station [GeV/c].

Definition at line 368 of file CaToolsMCPoint.h.

Referenced by GetPhiIn(), GetPIn(), GetPtIn(), GetPxIn(), GetPyIn(), GetPzIn(), GetTxIn(), GetTyIn(), SetPxIn(), SetPyIn(), and SetPzIn().

◆ fMomOut

std::array<double, 3> cbm::ca::tools::MCPoint::fMomOut = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Momentum at exit of station [cm].

Definition at line 370 of file CaToolsMCPoint.h.

Referenced by GetPhiOut(), GetPOut(), GetPtOut(), GetPxOut(), GetPyOut(), GetPzOut(), GetTxOut(), GetTyOut(), SetPxOut(), SetPyOut(), and SetPzOut().

◆ fMotherId

int cbm::ca::tools::MCPoint::fMotherId = constants::Undef<int>
private

Index of mother track in CA internal data structures (within event/TS)

Definition at line 382 of file CaToolsMCPoint.h.

Referenced by GetMotherId(), SetMotherId(), and ToString().

◆ fPdgCode

int cbm::ca::tools::MCPoint::fPdgCode = constants::Undef<int>
private

Particle PDG code.

Definition at line 378 of file CaToolsMCPoint.h.

Referenced by GetPdgCode(), SetPdgCode(), and ToString().

◆ fPos

std::array<double, 3> cbm::ca::tools::MCPoint::fPos = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Position at reference z of station [cm].

Definition at line 360 of file CaToolsMCPoint.h.

Referenced by GetX(), GetY(), GetZ(), SetX(), SetY(), SetZ(), and ToString().

◆ fPosIn

std::array<double, 3> cbm::ca::tools::MCPoint::fPosIn = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Position at entrance to station [cm].

Definition at line 362 of file CaToolsMCPoint.h.

Referenced by GetXIn(), GetYIn(), GetZIn(), SetXIn(), SetYIn(), SetZIn(), and ToString().

◆ fPosOut

std::array<double, 3> cbm::ca::tools::MCPoint::fPosOut = {constants::Undef<double>, constants::Undef<double>, constants::Undef<double>}
private

Position at exit of station [cm].

Definition at line 364 of file CaToolsMCPoint.h.

Referenced by GetXOut(), GetYOut(), GetZOut(), SetXOut(), SetYOut(), SetZOut(), and ToString().

◆ fStationId

int cbm::ca::tools::MCPoint::fStationId = constants::Undef<int>
private

Global index of active tracking station.

Definition at line 383 of file CaToolsMCPoint.h.

Referenced by GetStationId(), SetStationId(), and ToString().

◆ fTime

double cbm::ca::tools::MCPoint::fTime = constants::Undef<double>
private

Point time [ns].

Definition at line 374 of file CaToolsMCPoint.h.

Referenced by GetTime(), SetTime(), and ToString().

◆ fTrackId

int cbm::ca::tools::MCPoint::fTrackId
private
Initial value:

Index of associated MC track in CA internal track container within TS/event.

Definition at line 380 of file CaToolsMCPoint.h.

Referenced by GetTrackId(), SetTrackId(), and ToString().

◆ fvHitIndexes

ca::Vector<int> cbm::ca::tools::MCPoint::fvHitIndexes {"ca::tools::MCPoint::fvHitIndexes"}
private

Indexes of hits, assigned to this point.

Definition at line 388 of file CaToolsMCPoint.h.

Referenced by AddHitID(), GetHitIndexes(), and ToString().


The documentation for this class was generated from the following files: