CbmRoot
CbmMCTrack Class Reference

#include <CbmMCTrack.h>

Inheritance diagram for CbmMCTrack:
[legend]
Collaboration diagram for CbmMCTrack:
[legend]

Public Member Functions

 CbmMCTrack ()
 
 CbmMCTrack (Int_t pdgCode, Int_t motherID, Double_t px, Double_t py, Double_t pz, Double_t x, Double_t y, Double_t z, Double_t t, Int_t nPoints)
 
 CbmMCTrack (const CbmMCTrack &track)
 
 CbmMCTrack (TParticle *particle)
 
virtual ~CbmMCTrack ()
 
Int_t AccMVD () const
 
Int_t AccSTS () const
 
Int_t AccPSD () const
 
UInt_t GetGeantProcessId () const
 
Int_t GetPdgCode () const
 
Int_t GetMotherId () const
 
Double_t GetPx () const
 
Double_t GetPy () const
 
Double_t GetPz () const
 
Double_t GetStartX () const
 
Double_t GetStartY () const
 
Double_t GetStartZ () const
 
Double_t GetStartT () const
 
Double_t GetMass () const
 Mass of the associated particle. More...
 
Double_t GetCharge () const
 Charge of the associated particle. More...
 
Double_t GetEnergy () const
 
Double_t GetPt () const
 
Double_t GetP () const
 
Double_t GetRapidity () const
 
void GetMomentum (TVector3 &momentum) const
 
void Get4Momentum (TLorentzVector &momentum) const
 
void GetStartVertex (TVector3 &vertex) const
 
Int_t GetNPoints (ECbmModuleId detId) const
 
void SetMotherId (Int_t id)
 
void SetNPoints (ECbmModuleId iDet, Int_t np)
 
std::string ToString () const
 

Private Attributes

UInt_t fProcessId
 
Int_t fPdgCode
 
Int_t fMotherId
 
Double32_t fPx
 
Double32_t fPy
 
Double32_t fPz
 
Double32_t fE
 
Double32_t fStartX
 
Double32_t fStartY
 
Double32_t fStartZ
 
Double32_t fStartT
 
Int_t fNPoints
 

Detailed Description

Definition at line 34 of file CbmMCTrack.h.

Constructor & Destructor Documentation

◆ CbmMCTrack() [1/4]

CbmMCTrack::CbmMCTrack ( )

Default constructor

Definition at line 23 of file CbmMCTrack.cxx.

◆ CbmMCTrack() [2/4]

CbmMCTrack::CbmMCTrack ( Int_t  pdgCode,
Int_t  motherID,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  x,
Double_t  y,
Double_t  z,
Double_t  t,
Int_t  nPoints = 0 
)

Standard constructor

Definition at line 41 of file CbmMCTrack.cxx.

References fNPoints.

◆ CbmMCTrack() [3/4]

CbmMCTrack::CbmMCTrack ( const CbmMCTrack track)

Copy constructor

Definition at line 71 of file CbmMCTrack.cxx.

◆ CbmMCTrack() [4/4]

CbmMCTrack::CbmMCTrack ( TParticle *  particle)

Constructor from TParticle

Definition at line 91 of file CbmMCTrack.cxx.

◆ ~CbmMCTrack()

CbmMCTrack::~CbmMCTrack ( )
virtual

Destructor

Definition at line 109 of file CbmMCTrack.cxx.

Member Function Documentation

◆ AccMVD()

Int_t CbmMCTrack::AccMVD ( ) const
inline

Definition at line 64 of file CbmMCTrack.h.

References GetNPoints(), and kMvd.

◆ AccPSD()

Int_t CbmMCTrack::AccPSD ( ) const
inline

Definition at line 66 of file CbmMCTrack.h.

References GetNPoints(), and kPsd.

◆ AccSTS()

Int_t CbmMCTrack::AccSTS ( ) const
inline

Definition at line 65 of file CbmMCTrack.h.

References GetNPoints(), and kSts.

◆ Get4Momentum()

◆ GetCharge()

Double_t CbmMCTrack::GetCharge ( ) const

Charge of the associated particle.

Returns
Particle charge [e]

The charge is taken from TDatabasePDG if the particle exists there. For ions, the charge is calculated from the PDG code. The method throws an error for unknown PDG codes.

Definition at line 146 of file CbmMCTrack.cxx.

References fPdgCode.

Referenced by CbmAnaDimuonAnalysis::Exec(), PairAnalysis::FillMCHistograms(), CbmAnaDielectronTask::FillNofChargedParticlesPerEvent(), CbmRichRecoQa::FillRingTrackDistance(), PairAnalysisVarManager::FillVarMCParticle(), and PairAnalysisVarManager::FillVarMCTrack().

◆ GetEnergy()

◆ GetGeantProcessId()

◆ GetMass()

Double_t CbmMCTrack::GetMass ( ) const

◆ GetMomentum()

◆ GetMotherId()

Int_t CbmMCTrack::GetMotherId ( ) const
inline

Definition at line 71 of file CbmMCTrack.h.

References fMotherId.

Referenced by CbmLitMCTrackCreator::AddPoints(), CbmLitMCTrackCreator::AddRingParameters(), CbmLitAcceptanceFunction::AllReferenceRingAcceptanceFunction(), CbmAnaConversion::AnalyseElectrons(), CbmAnaConversionPhotons::AnalyseElectronsFromGammaMC(), CbmAnaConversionPhotons::AnalyseElectronsFromGammaReco(), CbmAnaConversionPhotons::AnalysePhotons(), CbmAnaConversion::AnalysePi0_MC(), CbmAnaConversion::AnalysePi0_Reco(), CbmAnaConversion::AnalysePi0_Reco_calc(), CbmAnaConversion::AnalysePi0_Reco_noRichInd(), CbmAnaConversion::AnalysePi0_Reco_noRichInd_calc(), CbmAnaConversionRich::AnalyseRICHdata(), CbmAnaDielectronTask::AssignMcToCandidates(), CbmAnaJpsiTask::AssignMcToCandidates(), CbmAnaDielectronTask::AssignMcToTopologyCandidates(), CbmAnaDielectronTask::CalculateNofTopologyPairs(), CbmKresEtaMCAnalysis::CalculateOpeningAngleBetweenGammas_MC(), CbmKresConversionReconstruction::CalculateOpeningAngleBetweenGammas_MC(), CbmAnaConversionReco::CalculateOpeningAngleBetweenGammasMC(), CbmAnaDielectronTask::CheckClosestMvdHit(), PairAnalysisMC::CheckIsDalitz(), CbmAnaConversionRich::CheckMC(), CbmAnaConversionPhotons::CheckMC(), CbmAnaConversionPhotons::CombineElectrons(), CbmAnaConversionTest::CombinePhotons(), CbmAnaConversionRecoFull::CombinePhotons(), CbmRichTrainAnnElectrons::DiffElandPi(), CbmTofDigitize::DigitizeDirectClusterSize(), CbmTofDigitize::DigitizeFlatDisc(), CbmTofDigitize::DigitizeGaussCharge(), CbmMuchHitFinderQa::DigitizerQa(), CbmMuchDigitizerQa::DigitizerQa(), CbmMuchTrackFinderIdeal::DoFind(), CbmAnaConversionPhotons2::EstimateFullRecoResults(), CbmKresEtaMCAnalysis::EtaChargedPionsGammaAnalysis(), CbmKresEtaMCAnalysis::EtaChargedPionsGammaAnalysis_plusBG(), CbmKresEtaMCAnalysis::EtaDoubleGammaAnalysis(), CbmKresEtaMCAnalysis::EtaDoubleGammaAnalysis_plusBG(), CbmKresEtaMCAnalysis::EtaPosNegNeutralPionsAnalysis(), LxCalcStats::Exec(), CbmKresConversionBG::Exec(), CbmKresSelectGoodEvents::Exec(), CbmKresTemperature::Exec(), CbmKresConversionReconstruction::Exec(), CbmKresEtaMCAnalysis::Exec(), CbmKresConversionGeneral::Exec(), CbmRichMCbmQa::Exec(), CbmTrdQa::Exec(), LxFinderTriplet::Exec(), CbmKFParticleFinderQA::Exec(), CbmAnaConversionTomography::Exec(), CbmL1MuchFinderQa::Exec(), CbmAnaConversionTest::Exec(), CbmRichMirrorSortingAlignment::Exec(), CbmRichMirrorSortingCorrection::Exec(), CbmKFParticleFinder::Exec(), CbmAnaConversionPhotons::Exec(), CbmStsFitPerformanceTask::Exec(), CbmRichMatchRings::Exec(), CbmKFTrackQA::Exec(), CbmMuchTransportQa::Exec(), LxTrackAna::Exec(), LxTrackAnaTriplet::Exec(), CbmAnaConversion::Exec(), LxFinder::Exec(), CbmBinnedDebug::Exec(), CbmL1RichRingQa::Exec(), CbmHadronAnalysis::ExecEvent(), CbmL1::Fill_vMCTracks(), CbmTrdElectronsTrainAnn::FillElossVectorSim(), CbmTofTests::FillHistos(), CbmTofGeometryQa::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofSimpClusterizer::FillHistos(), CbmRichCorrection::FillHistProjection(), CbmRichCorrectionVector::FillHistProjection(), CbmRichGeoOpt::FillMcHist(), CbmAnaConversionPhotons::FillMCTracklist(), CbmAnaConversionPhotons::FillMCTracklist_allElectrons(), CbmAnaConversionPhotons::FillMCTracklist_allGammas(), CbmAnaConversion::FillMCTracklists(), CbmAnaDielectronTask::FillNofChargedParticlesPerEvent(), CbmAnaConversion::FillRecoTracklist(), CbmAnaConversionPhotons::FillRecoTracklist_allElectrons(), CbmAnaConversion::FillRecoTracklistEPEM(), CbmAnaDielectronTask::FillRichRingNofHits(), CbmAnaJpsiTask::FillRichRingNofHits(), PairAnalysisVarManager::FillVarMCParticle(), PairAnalysisVarManager::FillVarMCTrack(), CbmKresEta::FindEta(), CbmKresConversionKF::FindGammas(), CbmKresConversionManualmbias1::FindGammasOutside(), CbmKresConversionManualmbias2::FindGammasOutside(), CbmKresConversionManualmbias4::FindGammasOutside(), CbmKresConversionManualmbias3::FindGammasOutside(), CbmKresEta::FindGammasOutside(), CbmKresConversionManual::FindGammasOutside(), CbmKresConversionPhotons::FindGammasOutside(), CbmKresConversionCorrectedPhotons::FindGammasOutside(), CbmKresConversionManualmbias1::FindGammasTarget(), CbmKresConversionManualmbias2::FindGammasTarget(), CbmKresConversionManualmbias3::FindGammasTarget(), CbmKresConversionManualmbias4::FindGammasTarget(), CbmKresEta::FindGammasTarget(), CbmKresConversionManual::FindGammasTarget(), CbmKresConversionPhotons::FindGammasTarget(), CbmKresConversionCorrectedPhotons::FindGammasTarget(), CbmKresConversionKF::FindPi0(), CbmKresConversionManualmbias1::FindPi0(), CbmKresConversionManualmbias2::FindPi0(), CbmKresConversionManualmbias3::FindPi0(), CbmKresConversionManualmbias4::FindPi0(), CbmKresConversionManual::FindPi0(), CbmPVFinderIdeal::FindPrimaryVertex(), PairAnalysisMC::GetLabelMotherWithPdg(), PairAnalysisMC::GetMCTrackMother(), CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), CbmRichMirrorSortingCorrection::GetPmtNormal(), CbmRichMirrorSortingAlignment::GetPmtNormal(), CbmRichProjectionProducer2::GetPmtNormal(), CbmRichCorrection::GetPmtNormal(), CbmRichCorrectionVector::GetPmtNormal(), CbmRichPMTMapping::GetPmtNormal(), PairAnalysisMC::HaveSameMother(), CbmRichGeoOpt::HitsAndPoints(), CbmRichGeoOpt::HitsAndPointsWithRef(), CbmBinnedTrackerQANew::Init(), CbmBinnedTrackerQA::Init(), LxTBTrdFinder::Init(), LxTBFinder::Init(), LxTBMLFinder::Init(), CbmGlobalTrackingQA::Init(), CbmAnaConversionReco::InvariantMassMC_all(), CbmAnaConversionTest2::InvariantMassTest_2RICH(), CbmAnaConversionTest2::InvariantMassTest_3RICH(), CbmAnaConversionReco::InvariantMassTest_4epem(), CbmAnaConversion::InvariantMassTestReco(), CbmRichRecoTbQa::IsCherenkovPhotonFromPion(), CbmRichRecoTbQa::IsCherenkovPhotonFromPrimaryElectron(), CbmRichRecoTbQa::IsCherenkovPhotonFromSecondaryElectron(), CbmLmvmUtils::IsMcEtaElectron(), CbmAnaJpsiUtils::IsMcGammaElectron(), CbmLmvmUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmLmvmUtils::IsMcPi0Electron(), PairAnalysisMC::IsPhysicalPrimary(), CbmMuchHitFinderQa::IsSignalPoint(), CbmKresConversionReconstruction::MakeRecoAnalysis(), CbmRichPMTMapping::MatchFinder(), CbmRichCorrectionVector::MatchFinder(), CbmAnaDielectronTask::MCPairs(), CbmAnaConversionRecoFull::MixedEventTest4(), CbmRichUrqmdTest::NofHitsAndPoints(), CbmRichUrqmdTest::NofRings(), CbmAnaDielectronTask::PairMcAndAcceptance(), CbmRichUrqmdTest::PmtXYSource(), CbmLitAcceptanceFunction::PrimaryTrackAcceptanceFunction(), CbmRichGeoTest::ProcessMc(), PairAnalysis::ProcessMC(), CbmLitFitQa::ProcessTrackMomentumAtVertex(), CbmLitFitQa::ProcessTrackParamsAtVertex(), CbmRichCorrection::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer(), CbmRichCorrectionVector::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer2(), CbmBinnedMCTrackReader::Read(), CbmL1::ReadMCPoint(), DataTreeCbmInterface::ReadPsdPrimaryParticles(), CbmHadronAnalysis::ReconstructSecondaries(), CbmLitAcceptanceFunction::ReferenceTrackAcceptanceFunction(), CbmAnaDielectronTask::RichPmtXY(), CbmAnaJpsiTask::RichPmtXY(), CbmRichGeoTest::RingParameters(), CbmRichGeoOpt::RingParameters(), CbmLitAcceptanceFunction::SecondaryTrackAcceptanceFunction(), CbmRichTrainAnnSelect::SetRecFlag(), CbmAnaDielectronTask::SingleParticleAcceptance(), CbmAnaConversionKF::test(), CbmAnaConversionTomography::TomographyReco(), NicaCbmMCTrack::Update(), and CbmStack::UpdateTrackIndex().

◆ GetNPoints()

◆ GetP()

Double_t CbmMCTrack::GetP ( ) const
inline

Definition at line 100 of file CbmMCTrack.h.

References fPx, fPy, and fPz.

Referenced by CbmAnaConversionPhotons::AnalyseElectronsFromGammaReco(), CbmAnaConversionRich::AnalyseRICHdata(), CbmEventBuilderQA::CalculateIsReconstructable(), CbmRichTrainAnnElectrons::DiffElandPi(), CbmKresConversionBG::Exec(), CbmMvdClusterAna::Exec(), CbmKresConversionGeneral::Exec(), CbmKresConversionManual::Exec(), CbmKresConversionPhotons::Exec(), CbmKFParticleFinderQA::Exec(), CbmTrdQa::Exec(), LxFinderTriplet::Exec(), CbmKresConversionCorrectedPhotons::Exec(), CbmL1MuchFinderQa::Exec(), CbmStsFitPerformanceTask::Exec(), CbmKFTrackQA::Exec(), LxTrackAna::Exec(), LxTrackAnaTriplet::Exec(), CbmTrdDigitizer::Exec(), LxFinder::Exec(), CbmL1RichRingQa::Exec(), CbmMvdQa::ExecTrackQa(), CbmAnaDielectronTask::FillElPiMomHist(), CbmTofGeometryQa::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmRichGeoOpt::FillMcHist(), CbmRichRecoQa::FillRingTrackDistance(), PairAnalysisVarManager::FillVarMCTrack(), CbmBinnedTrackerQA::Finish(), LxTBFinder::Init(), CbmKFTrErrMCPoints::IsReconstructable(), CbmAnaDielectronTask::MCPairs(), CbmRichUrqmdTest::NofRings(), CbmLitTrackingQa::ProcessGlobalTracks(), CbmRichGeoTest::ProcessMc(), CbmLitTrackingQa::ProcessMcTracks(), CbmLitFitQa::ProcessTrackMomentumAtVertex(), CbmHadronAnalysis::ReconstructSecondaries(), CbmLitAcceptanceFunction::ReferenceTrackAcceptanceFunction(), CbmRichGeoTest::RingParameters(), CbmRichGeoOpt::RingParameters(), CbmRichRecoTbQa::RingRecoEfficiency(), CbmRichRecoQa::RingTrackMismatchSource(), CbmMuchTrackFinderIdeal::SetTrackParam(), CbmAnaJpsiTask::SingleParticleAcceptance(), CbmAnaConversionTomography::TomographyMC(), and CbmAnaJpsiTask::TrackSource().

◆ GetPdgCode()

Int_t CbmMCTrack::GetPdgCode ( ) const
inline

Definition at line 70 of file CbmMCTrack.h.

References fPdgCode.

Referenced by CbmAnaConversion::AnalyseElectrons(), CbmAnaConversionPhotons::AnalyseElectronsFromGammaMC(), CbmAnaConversionPhotons::AnalyseElectronsFromGammaReco(), CbmAnaConversionPhotons::AnalysePhotons(), CbmAnaConversion::AnalysePi0_MC(), CbmAnaConversion::AnalysePi0_Reco(), CbmAnaConversion::AnalysePi0_Reco_noRichInd(), CbmAnaConversionRich::AnalyseRICHdata(), CbmLitAcceptanceFunction::AntiProtonTrackAcceptanceFunction(), CbmAnaDielectronTask::AssignMcToCandidates(), CbmAnaJpsiTask::AssignMcToCandidates(), CbmAnaDielectronTask::AssignMcToTopologyCandidates(), CbmAnaConversionTest::CalcInvMass(), CbmAnaConversion::CalculateInvMass_MC_2particles(), CbmAnaDielectronTask::CheckClosestMvdHit(), PairAnalysisMC::CheckIsDalitz(), CbmAnaConversionRich::CheckMC(), CbmAnaConversionPhotons::CheckMC(), CbmAnaConversionPhotons::CombineElectrons(), CbmAnaConversionTest::CombinePhotons(), CbmAnaConversionRecoFull::CombinePhotons(), CbmRichTrainAnnElectrons::DiffElandPi(), CbmMuchHitFinderQa::DigitizerQa(), CbmMuchDigitizerQa::DigitizerQa(), CbmMuchTrackFinderIdeal::DoFind(), CbmLitAcceptanceFunction::ElectronTrackAcceptanceFunction(), CbmKresEtaMCAnalysis::EtaChargedPionsGammaAnalysis(), CbmKresEtaMCAnalysis::EtaChargedPionsGammaAnalysis_plusBG(), CbmKresEtaMCAnalysis::EtaDoubleGammaAnalysis(), CbmKresEtaMCAnalysis::EtaDoubleGammaAnalysis_plusBG(), CbmKresEtaMCAnalysis::EtaPosNegNeutralPionsAnalysis(), LxCalcStats::Exec(), CbmKresConversionBG::Exec(), CbmKresSelectGoodEvents::Exec(), CbmKresTemperature::Exec(), CbmKresConversionReconstruction::Exec(), CbmKresEtaMCAnalysis::Exec(), CbmKresConversionGeneral::Exec(), CbmKresConversionManual::Exec(), CbmAnaConversionPhotons2::Exec(), CbmKresConversionPhotons::Exec(), CbmKresConversionCorrectedPhotons::Exec(), CbmRichMCbmQa::Exec(), CbmTrdQa::Exec(), LxFinderTriplet::Exec(), CbmL1MuchFinder::Exec(), CbmKFParticleFinderQA::Exec(), CbmAnaConversionTomography::Exec(), CbmL1MuchFinderQa::Exec(), CbmAnaConversionTest2::Exec(), CbmAnaDimuonAnalysis::Exec(), CbmAnaConversionTest::Exec(), CbmRichMirrorSortingAlignment::Exec(), CbmRichMirrorSortingCorrection::Exec(), CbmAnaConversionPhotons::Exec(), CbmStsFitPerformanceTask::Exec(), CbmKFTrackQA::Exec(), CbmMuchTransportQa::Exec(), CbmThermalModelNoFlow::Exec(), LxTrackAna::Exec(), LxTrackAnaTriplet::Exec(), CbmTrdDigitizer::Exec(), CbmAnaConversion::Exec(), LxFinder::Exec(), CbmL1RichRingQa::Exec(), CbmHadronAnalysis::ExecEvent(), CbmLitMCTrackCreator::FairMCPointToLitMCPoint(), CbmL1::Fill_vMCTracks(), CbmAnaDielectronTask::FillCandidates(), CbmTrdElectronsTrainAnn::FillElossVectorSim(), CbmAnaDielectronTask::FillElPiMomHist(), CbmKFTrackFitQA::FillHistoAtFirstPoint(), CbmKFTrackFitQA::FillHistoAtParticleVertex(), CbmTofGeometryQa::FillHistos(), CbmTofHitFinderQa::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmRichGeoOpt::FillMcHist(), CbmAnaConversionPhotons::FillMCTracklist(), CbmAnaConversionPhotons::FillMCTracklist_allElectrons(), CbmAnaConversionPhotons::FillMCTracklist_allGammas(), CbmAnaConversion::FillMCTracklists(), CbmAnaConversion::FillRecoTracklist(), CbmAnaConversionPhotons::FillRecoTracklist_allElectrons(), CbmAnaConversion::FillRecoTracklistEPEM(), PairAnalysisVarManager::FillVarMCTrack(), CbmKresEta::FindEta(), CbmKresConversionKF::FindGammas(), CbmKresConversionManualmbias1::FindGammasOutside(), CbmKresConversionManualmbias2::FindGammasOutside(), CbmKresConversionManualmbias3::FindGammasOutside(), CbmKresConversionManualmbias4::FindGammasOutside(), CbmKresEta::FindGammasOutside(), CbmKresConversionManual::FindGammasOutside(), CbmKresConversionPhotons::FindGammasOutside(), CbmKresConversionCorrectedPhotons::FindGammasOutside(), CbmKresConversionManualmbias4::FindGammasTarget(), CbmKresConversionManualmbias1::FindGammasTarget(), CbmKresConversionManualmbias2::FindGammasTarget(), CbmKresConversionManualmbias3::FindGammasTarget(), CbmKresEta::FindGammasTarget(), CbmKresConversionManual::FindGammasTarget(), CbmKresConversionPhotons::FindGammasTarget(), CbmKresConversionCorrectedPhotons::FindGammasTarget(), CbmKresEta::FindInRich(), CbmKresConversionManualmbias4::FindInRich(), CbmKresConversionManualmbias1::FindInRich(), CbmKresConversionManualmbias2::FindInRich(), CbmKresConversionManualmbias3::FindInRich(), CbmKresConversionManual::FindInRich(), CbmKresConversionPhotons::FindInRich(), CbmKresConversionCorrectedPhotons::FindInRich(), CbmKresConversionKF::FindPi0(), CbmKresConversionManualmbias1::FindPi0(), CbmKresConversionManualmbias2::FindPi0(), CbmKresConversionManualmbias3::FindPi0(), CbmKresConversionManualmbias4::FindPi0(), CbmKresConversionManual::FindPi0(), CbmStsFitPerformanceTask::GetCharge(), PairAnalysisMC::GetLabelMotherWithPdg(), CbmStsTracksConverter::GetMcPid(), CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), PairAnalysisMC::GetMotherPDG(), CbmMuchDigitizeGem::GetNPrimaryElectronsPerCm(), CbmRichGeoOpt::HitsAndPoints(), CbmRichGeoOpt::HitsAndPointsWithRef(), CbmBinnedTrackerQANew::Init(), CbmBinnedTrackerQA::Init(), LxTBTrdFinder::Init(), LxTBFinder::Init(), LxTBMLFinder::Init(), CbmAnaConversionReco::InvariantMassMC_all(), CbmAnaConversionTest2::InvariantMassTest_2RICH(), CbmAnaConversionTest2::InvariantMassTest_3RICH(), CbmAnaConversionReco::InvariantMassTest_4epem(), CbmAnaConversion::InvariantMassTestReco(), CbmRichRecoTbQa::IsCherenkovPhoton(), CbmRichRecoTbQa::IsCherenkovPhotonFromPion(), CbmRichRecoTbQa::IsCherenkovPhotonFromPrimaryElectron(), CbmRichRecoTbQa::IsCherenkovPhotonFromSecondaryElectron(), CbmAnaDielectronTask::IsElectron(), CbmLmvmUtils::IsMcEtaElectron(), CbmAnaJpsiUtils::IsMcGammaElectron(), CbmLmvmUtils::IsMcGammaElectron(), CbmAnaJpsiUtils::IsMcPi0Electron(), CbmLmvmUtils::IsMcPi0Electron(), CbmRichRecoQa::IsMcPion(), CbmRichRecoTbQa::IsMcPion(), CbmRichRecoQa::IsMcPrimaryElectron(), CbmRichMirrorSortingCorrection::IsMcPrimaryElectron(), CbmRichRecoTbQa::IsMcPrimaryElectron(), CbmAnaJpsiUtils::IsMcSignalElectron(), CbmLmvmUtils::IsMcSignalElectron(), PairAnalysisMC::IsMCTruth(), PairAnalysisMC::IsPhysicalPrimary(), CbmMuchHitFinderQa::IsSignalPoint(), CbmLitAcceptanceFunction::KaonMinusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::KaonPlusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::KaonTrackAcceptanceFunction(), CbmKresConversionReconstruction::MakeRecoAnalysis(), CbmRichPMTMapping::MatchFinder(), CbmRichCorrectionVector::MatchFinder(), CbmAnaDielectronTask::MCPairs(), CbmLitAcceptanceFunction::MuonTrackAcceptanceFunction(), CbmLitAcceptanceFunction::NegativeTrackAcceptanceFunction(), CbmRichUrqmdTest::NofHitsAndPoints(), CbmRichUrqmdTest::NofRings(), PairAnalysisTrack::PairAnalysisTrack(), CbmAnaDielectronTask::PairMcAndAcceptance(), CbmAnaJpsiTask::PairMcAndAcceptance(), CbmLitAcceptanceFunction::PionMinusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PionPlusTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PionReferenceRingAcceptanceFunction(), CbmLitAcceptanceFunction::PionRingAcceptanceFunction(), CbmLitTrackingQa::PionSuppression(), CbmLitAcceptanceFunction::PionTrackAcceptanceFunction(), CbmRichUrqmdTest::PmtXYSource(), CbmLitAcceptanceFunction::PositiveTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PrimaryElectronReferenceRingAcceptanceFunction(), CbmLitAcceptanceFunction::PrimaryElectronRingAcceptanceFunction(), CbmLitAcceptanceFunction::PrimaryElectronTrackAcceptanceFunction(), CbmLitAcceptanceFunction::PrimaryMuonTrackAcceptanceFunction(), CbmRichGeoTest::ProcessMc(), CbmRichDigitizer::ProcessPoint(), CbmLitAcceptanceFunction::ProtonTrackAcceptanceFunction(), CbmBinnedMCTrackReader::Read(), CbmL1::ReadMCPoint(), DataTreeCbmInterface::ReadPsdPrimaryParticles(), CbmHadronAnalysis::ReconstructSecondaries(), CbmRichGeoTest::RingParameters(), CbmRichGeoOpt::RingParameters(), CbmKFParticleFinderPID::SetMCPID(), PairAnalysisPairKF::SetMCTracks(), CbmRichTrainAnnSelect::SetRecFlag(), CbmMuchTrackFinderIdeal::SetTrackParam(), CbmAnaDielectronTask::SignalAndBgReco(), CbmAnaJpsiTask::SignalAndBgReco(), CbmAnaDielectronTask::SingleParticleAcceptance(), CbmAnaConversionKF::test(), CbmAnaConversionTomography::TomographyReco(), NicaCbmMCEvent::Update(), and NicaCbmMCTrack::Update().

◆ GetPt()

◆ GetPx()

◆ GetPy()

◆ GetPz()

◆ GetRapidity()

◆ GetStartT()

Double_t CbmMCTrack::GetStartT ( ) const
inline

◆ GetStartVertex()

◆ GetStartX()

◆ GetStartY()

◆ GetStartZ()

◆ SetMotherId()

void CbmMCTrack::SetMotherId ( Int_t  id)
inline

Modifiers

Definition at line 114 of file CbmMCTrack.h.

References fMotherId.

Referenced by CbmStack::UpdateTrackIndex().

◆ SetNPoints()

void CbmMCTrack::SetNPoints ( ECbmModuleId  iDet,
Int_t  np 
)

Definition at line 214 of file CbmMCTrack.cxx.

References fNPoints, kEcal, kMuch, kMvd, kPsd, kRef, kRich, kSts, kTof, and kTrd.

Referenced by CbmStack::FillTrackArray().

◆ ToString()

std::string CbmMCTrack::ToString ( ) const

String output

Definition at line 295 of file CbmMCTrack.cxx.

References fMotherId, fPdgCode, fProcessId, fPx, fPy, fPz, GetNPoints(), kEcal, kMuch, kMvd, kPsd, kRef, kRich, kSts, kTof, and kTrd.

Member Data Documentation

◆ fE

Double32_t CbmMCTrack::fE
private

energy at start vertex [GeV]

Definition at line 136 of file CbmMCTrack.h.

Referenced by GetEnergy().

◆ fMotherId

Int_t CbmMCTrack::fMotherId
private

Index of mother track. -1 for primary particles.

Definition at line 130 of file CbmMCTrack.h.

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

◆ fNPoints

Int_t CbmMCTrack::fNPoints
private

Bitvector representing the number of MCPoints for this track in each subdetector. The detectors are represented by REF: Bit 0 (1 bit, max. value 1) MVD: Bit 1 - 3 (3 bits, max. value 7) STS: Bit 4 - 8 (5 bits, max. value 31) RICH: Bit 9 (1 bit, max. value 1) MUCH: Bit 10 - 14 (5 bits, max. value 31) TRD: Bit 15 - 19 (5 bits, max. value 31) TOF: Bit 20 - 23 (4 bits, max. value 15) ECAL: Bit 24 (1 bit, max. value 1) ZDC: Bit 25 (1 bit, max. value 1) The respective point numbers can be accessed and modified with the inline functions. Bits 26-31 are spare for potential additional detectors.

Definition at line 156 of file CbmMCTrack.h.

Referenced by CbmMCTrack(), GetNPoints(), and SetNPoints().

◆ fPdgCode

Int_t CbmMCTrack::fPdgCode
private

PDG particle code

Definition at line 127 of file CbmMCTrack.h.

Referenced by GetCharge(), GetMass(), GetPdgCode(), and ToString().

◆ fProcessId

UInt_t CbmMCTrack::fProcessId
private

TMCProcess code

Definition at line 124 of file CbmMCTrack.h.

Referenced by GetGeantProcessId(), and ToString().

◆ fPx

Double32_t CbmMCTrack::fPx
private

Momentum components at start vertex [GeV]

Definition at line 133 of file CbmMCTrack.h.

Referenced by Get4Momentum(), GetEnergy(), GetMomentum(), GetP(), GetPt(), GetPx(), and ToString().

◆ fPy

Double32_t CbmMCTrack::fPy
private

Definition at line 133 of file CbmMCTrack.h.

Referenced by Get4Momentum(), GetEnergy(), GetMomentum(), GetP(), GetPt(), GetPy(), and ToString().

◆ fPz

Double32_t CbmMCTrack::fPz
private

Definition at line 133 of file CbmMCTrack.h.

Referenced by Get4Momentum(), GetEnergy(), GetMomentum(), GetP(), GetPz(), GetRapidity(), and ToString().

◆ fStartT

Double32_t CbmMCTrack::fStartT
private

Definition at line 139 of file CbmMCTrack.h.

Referenced by GetStartT().

◆ fStartX

Double32_t CbmMCTrack::fStartX
private

Coordinates of start vertex [cm, ns]

Definition at line 139 of file CbmMCTrack.h.

Referenced by GetStartVertex(), and GetStartX().

◆ fStartY

Double32_t CbmMCTrack::fStartY
private

Definition at line 139 of file CbmMCTrack.h.

Referenced by GetStartVertex(), and GetStartY().

◆ fStartZ

Double32_t CbmMCTrack::fStartZ
private

Definition at line 139 of file CbmMCTrack.h.

Referenced by GetStartVertex(), and GetStartZ().


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