CbmRoot
Loading...
Searching...
No Matches
CbmL1MCTrack Class Reference

#include <CbmL1MCTrack.h>

Collaboration diagram for CbmL1MCTrack:
[legend]

Public Member Functions

 CbmL1MCTrack ()=default
 
 CbmL1MCTrack (int _ID)
 
 CbmL1MCTrack (double mass, double q, TVector3 vr, TLorentzVector vp, int ID, int mother_ID, int pdg, unsigned int procID)
 
bool IsPrimary () const
 
bool IsReconstructable () const
 
bool IsAdditional () const
 
int NStations () const
 
int NHitContStations () const
 
int NMCStations () const
 
int NMCContStations () const
 
void Init ()
 
void AddRecoTrack (CbmL1Track *rTr)
 
void AddRecoTrackIndex (int iT)
 
cacore::Vector< CbmL1Track * > & GetRecoTracks ()
 
int GetNClones () const
 
bool IsReconstructed () const
 
void AddTouchTrack (CbmL1Track *tTr)
 
void AddTouchTrackIndex (int iT)
 
bool IsDisturbed () const
 
void SetIsReconstructable (bool v)
 
const auto & GetRecoTrackIndexes () const
 
const auto & GetTouchTrackIndexes () const
 
double pt ()
 
std::string ToString (int verbose=10, bool header=false) const
 String representation of the contents.
 

Public Attributes

double mass = 0.
 
double q = 0.
 
double p = 0.
 
double x = 0.
 
double y = 0.
 
double z = 0.
 
double px = 0.
 
double py = 0.
 
double pz = 0.
 
double time = 0.
 
int ID = -1
 
int iFile = -1
 
int iEvent = -1
 
int mother_ID = -1
 
int chainID = -1
 
int pdg = -1
 
unsigned int process_ID = (unsigned int) -1
 
bool isSignal {0}
 
cacore::Vector< int > Points {"CbmL1MCTrack::Points"}
 
cacore::Vector< int > Hits {"CbmL1MCTrack::Hits"}
 

Private Member Functions

void CalculateMCCont ()
 
void CountHitStations ()
 
void CalculateMaxNStaMC ()
 
void CalculateIsReconstructable ()
 

Private Attributes

int nMCContStations = 0
 
int nHitContStations = 0
 
int maxNStaMC = 0
 
int maxNSensorMC = 0
 
int maxNStaHits = 0
 
int nStations = 0
 
int nMCStations = 0
 
bool isReconstructable = false
 
bool isAdditional = false
 
cacore::Vector< CbmL1Track * > rTracks {"CbmL1MCTrack::rTracks"}
 
cacore::Vector< CbmL1Track * > tTracks {"CbmL1MCTrack::tTracks"}
 
cacore::Vector< int > rTrackIndexes = {"CbmL1MCTrack::rTrackIndexes"}
 
cacore::Vector< int > tTrackIndexes = {"CbmL1MCTrack::tTrackIndexes"}
 

Friends

class CbmL1
 

Detailed Description

Definition at line 39 of file CbmL1MCTrack.h.

Constructor & Destructor Documentation

◆ CbmL1MCTrack() [1/3]

CbmL1MCTrack::CbmL1MCTrack ( )
default

◆ CbmL1MCTrack() [2/3]

CbmL1MCTrack::CbmL1MCTrack ( int _ID)
inline

Definition at line 43 of file CbmL1MCTrack.h.

◆ CbmL1MCTrack() [3/3]

CbmL1MCTrack::CbmL1MCTrack ( double mass,
double q,
TVector3 vr,
TLorentzVector vp,
int ID,
int mother_ID,
int pdg,
unsigned int procID )

Definition at line 36 of file CbmL1MCTrack.cxx.

Member Function Documentation

◆ AddRecoTrack()

void CbmL1MCTrack::AddRecoTrack ( CbmL1Track * rTr)
inline

Definition at line 59 of file CbmL1MCTrack.h.

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

◆ AddRecoTrackIndex()

void CbmL1MCTrack::AddRecoTrackIndex ( int iT)
inline

◆ AddTouchTrack()

void CbmL1MCTrack::AddTouchTrack ( CbmL1Track * tTr)
inline

Definition at line 65 of file CbmL1MCTrack.h.

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

◆ AddTouchTrackIndex()

void CbmL1MCTrack::AddTouchTrackIndex ( int iT)
inline

◆ CalculateIsReconstructable()

◆ CalculateMaxNStaMC()

void CbmL1MCTrack::CalculateMaxNStaMC ( )
private

◆ CalculateMCCont()

void CbmL1MCTrack::CalculateMCCont ( )
private

◆ CountHitStations()

void CbmL1MCTrack::CountHitStations ( )
private

◆ GetNClones()

int CbmL1MCTrack::GetNClones ( ) const
inline

Definition at line 62 of file CbmL1MCTrack.h.

References rTracks.

◆ GetRecoTrackIndexes()

const auto & CbmL1MCTrack::GetRecoTrackIndexes ( ) const
inline

Definition at line 70 of file CbmL1MCTrack.h.

References rTrackIndexes.

◆ GetRecoTracks()

cacore::Vector< CbmL1Track * > & CbmL1MCTrack::GetRecoTracks ( )
inline

Definition at line 61 of file CbmL1MCTrack.h.

References rTracks.

◆ GetTouchTrackIndexes()

const auto & CbmL1MCTrack::GetTouchTrackIndexes ( ) const
inline

Definition at line 71 of file CbmL1MCTrack.h.

References tTrackIndexes.

◆ Init()

◆ IsAdditional()

bool CbmL1MCTrack::IsAdditional ( ) const
inline

Definition at line 51 of file CbmL1MCTrack.h.

References isAdditional.

◆ IsDisturbed()

bool CbmL1MCTrack::IsDisturbed ( ) const
inline

Definition at line 67 of file CbmL1MCTrack.h.

References tTracks.

◆ IsPrimary()

bool CbmL1MCTrack::IsPrimary ( ) const
inline

Definition at line 49 of file CbmL1MCTrack.h.

References mother_ID.

◆ IsReconstructable()

bool CbmL1MCTrack::IsReconstructable ( ) const
inline

Definition at line 50 of file CbmL1MCTrack.h.

References isReconstructable.

Referenced by ToString().

◆ IsReconstructed()

bool CbmL1MCTrack::IsReconstructed ( ) const
inline

Definition at line 63 of file CbmL1MCTrack.h.

References rTracks.

Referenced by ToString().

◆ NHitContStations()

int CbmL1MCTrack::NHitContStations ( ) const
inline

Definition at line 53 of file CbmL1MCTrack.h.

References nHitContStations.

◆ NMCContStations()

int CbmL1MCTrack::NMCContStations ( ) const
inline

Definition at line 55 of file CbmL1MCTrack.h.

References nMCContStations.

◆ NMCStations()

int CbmL1MCTrack::NMCStations ( ) const
inline

Definition at line 54 of file CbmL1MCTrack.h.

References nMCStations.

◆ NStations()

int CbmL1MCTrack::NStations ( ) const
inline

Definition at line 52 of file CbmL1MCTrack.h.

References nStations.

◆ pt()

double CbmL1MCTrack::pt ( )
inline

Definition at line 75 of file CbmL1MCTrack.h.

References px, py, and sqrt().

◆ SetIsReconstructable()

void CbmL1MCTrack::SetIsReconstructable ( bool v)
inline

Definition at line 69 of file CbmL1MCTrack.h.

References isReconstructable, and v.

◆ ToString()

std::string CbmL1MCTrack::ToString ( int verbose = 10,
bool header = false ) const

String representation of the contents.

Definition at line 209 of file CbmL1MCTrack.cxx.

References Hits, ID, IsReconstructable(), IsReconstructed(), mother_ID, p, pdg, Points, rTracks, time, tTracks, and z.

Friends And Related Symbol Documentation

◆ CbmL1

friend class CbmL1
friend

Definition at line 73 of file CbmL1MCTrack.h.

Member Data Documentation

◆ chainID

int CbmL1MCTrack::chainID = -1

Definition at line 101 of file CbmL1MCTrack.h.

◆ Hits

cacore::Vector<int> CbmL1MCTrack::Hits {"CbmL1MCTrack::Hits"}

Definition at line 106 of file CbmL1MCTrack.h.

Referenced by CountHitStations(), Init(), and ToString().

◆ ID

int CbmL1MCTrack::ID = -1

Definition at line 97 of file CbmL1MCTrack.h.

Referenced by ToString().

◆ iEvent

int CbmL1MCTrack::iEvent = -1

Definition at line 99 of file CbmL1MCTrack.h.

◆ iFile

int CbmL1MCTrack::iFile = -1

Definition at line 98 of file CbmL1MCTrack.h.

◆ isAdditional

bool CbmL1MCTrack::isAdditional = false
private

Definition at line 119 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), and IsAdditional().

◆ isReconstructable

bool CbmL1MCTrack::isReconstructable = false
private

◆ isSignal

bool CbmL1MCTrack::isSignal {0}

Definition at line 104 of file CbmL1MCTrack.h.

◆ mass

double CbmL1MCTrack::mass = 0.

Definition at line 87 of file CbmL1MCTrack.h.

◆ maxNSensorMC

int CbmL1MCTrack::maxNSensorMC = 0
private

Definition at line 112 of file CbmL1MCTrack.h.

Referenced by CalculateMaxNStaMC().

◆ maxNStaHits

int CbmL1MCTrack::maxNStaHits = 0
private

Definition at line 113 of file CbmL1MCTrack.h.

Referenced by CountHitStations().

◆ maxNStaMC

int CbmL1MCTrack::maxNStaMC = 0
private

Definition at line 111 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), and CalculateMaxNStaMC().

◆ mother_ID

int CbmL1MCTrack::mother_ID = -1

Definition at line 100 of file CbmL1MCTrack.h.

Referenced by IsPrimary(), and ToString().

◆ nHitContStations

int CbmL1MCTrack::nHitContStations = 0
private

Definition at line 110 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), CountHitStations(), and NHitContStations().

◆ nMCContStations

int CbmL1MCTrack::nMCContStations = 0
private

Definition at line 109 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), CalculateMCCont(), and NMCContStations().

◆ nMCStations

int CbmL1MCTrack::nMCStations = 0
private

Definition at line 116 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), CalculateMaxNStaMC(), and NMCStations().

◆ nStations

int CbmL1MCTrack::nStations = 0
private

Definition at line 115 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), CountHitStations(), and NStations().

◆ p

double CbmL1MCTrack::p = 0.

Definition at line 89 of file CbmL1MCTrack.h.

Referenced by CalculateIsReconstructable(), and ToString().

◆ pdg

int CbmL1MCTrack::pdg = -1

Definition at line 102 of file CbmL1MCTrack.h.

Referenced by ToString().

◆ Points

cacore::Vector<int> CbmL1MCTrack::Points {"CbmL1MCTrack::Points"}

◆ process_ID

unsigned int CbmL1MCTrack::process_ID = (unsigned int) -1

Definition at line 103 of file CbmL1MCTrack.h.

◆ px

double CbmL1MCTrack::px = 0.

Definition at line 93 of file CbmL1MCTrack.h.

Referenced by pt().

◆ py

double CbmL1MCTrack::py = 0.

Definition at line 94 of file CbmL1MCTrack.h.

Referenced by pt().

◆ pz

double CbmL1MCTrack::pz = 0.

Definition at line 95 of file CbmL1MCTrack.h.

◆ q

double CbmL1MCTrack::q = 0.

Definition at line 88 of file CbmL1MCTrack.h.

◆ rTrackIndexes

cacore::Vector<int> CbmL1MCTrack::rTrackIndexes = {"CbmL1MCTrack::rTrackIndexes"}
private

Definition at line 128 of file CbmL1MCTrack.h.

Referenced by AddRecoTrackIndex(), and GetRecoTrackIndexes().

◆ rTracks

cacore::Vector<CbmL1Track*> CbmL1MCTrack::rTracks {"CbmL1MCTrack::rTracks"}
private

Definition at line 122 of file CbmL1MCTrack.h.

Referenced by AddRecoTrack(), GetNClones(), GetRecoTracks(), IsReconstructed(), and ToString().

◆ time

double CbmL1MCTrack::time = 0.

Definition at line 96 of file CbmL1MCTrack.h.

Referenced by ToString().

◆ tTrackIndexes

cacore::Vector<int> CbmL1MCTrack::tTrackIndexes = {"CbmL1MCTrack::tTrackIndexes"}
private

Definition at line 129 of file CbmL1MCTrack.h.

Referenced by AddTouchTrackIndex(), and GetTouchTrackIndexes().

◆ tTracks

cacore::Vector<CbmL1Track*> CbmL1MCTrack::tTracks {"CbmL1MCTrack::tTracks"}
private

Definition at line 123 of file CbmL1MCTrack.h.

Referenced by AddTouchTrack(), IsDisturbed(), and ToString().

◆ x

double CbmL1MCTrack::x = 0.

Definition at line 90 of file CbmL1MCTrack.h.

◆ y

double CbmL1MCTrack::y = 0.

Definition at line 91 of file CbmL1MCTrack.h.

◆ z

double CbmL1MCTrack::z = 0.

Definition at line 92 of file CbmL1MCTrack.h.

Referenced by ToString().


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