CbmRoot
PairAnalysisMC Class Reference

#include <PairAnalysisMC.h>

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

Public Member Functions

 PairAnalysisMC ()
 
virtual ~PairAnalysisMC ()
 
void SetHasMC (Bool_t hasMC)
 
Bool_t HasMC () const
 
Int_t GetNMCTracks ()
 
Int_t GetMotherPDG (const PairAnalysisTrack *_track)
 
Int_t GetMotherPDG (const CbmMCTrack *_track)
 
Bool_t ConnectMCEvent ()
 
Bool_t IsMotherPdg (const PairAnalysisPair *pair, Int_t pdgMother)
 
Bool_t IsMotherPdg (const PairAnalysisTrack *particle1, const PairAnalysisTrack *particle2, Int_t pdgMother)
 
Bool_t IsMCTruth (const PairAnalysisPair *pair, const PairAnalysisSignalMC *signalMC) const
 
Bool_t IsMCTruth (const PairAnalysisTrack *trk, PairAnalysisSignalMC *signalMC, Int_t branch) const
 
Bool_t IsMCTruth (Int_t label, PairAnalysisSignalMC *signalMC, Int_t branch) const
 
Int_t GetMothersLabel (Int_t daughterLabel) const
 
Int_t GetPdgFromLabel (Int_t label) const
 
Bool_t CheckGEANTProcess (Int_t label, TMCProcess process) const
 
Bool_t HaveSameMother (const PairAnalysisPair *pair) const
 
Int_t GetLabelMotherWithPdg (const PairAnalysisPair *pair, Int_t pdgMother)
 
Int_t GetLabelMotherWithPdg (const PairAnalysisTrack *particle1, const PairAnalysisTrack *particle2, Int_t pdgMother)
 
CbmMCTrackGetMCTrackFromMCEvent (Int_t label) const
 
CbmMCTrackGetMCTrack (const PairAnalysisTrack *_track)
 
CbmMCTrackGetMCTrackMother (const PairAnalysisTrack *_track)
 
CbmMCTrackGetMCTrackMother (const CbmMCTrack *_track)
 
Int_t NumberOfDaughters (const CbmMCTrack *particle)
 
void GetDaughters (const TObject *mother, CbmMCTrack *&d1, CbmMCTrack *&d2)
 
Bool_t CheckParticleSource (Int_t label, PairAnalysisSignalMC::ESource source) const
 

Static Public Member Functions

static PairAnalysisMCInstance ()
 

Private Member Functions

 PairAnalysisMC (const PairAnalysisMC &c)
 singleton pointer More...
 
PairAnalysisMCoperator= (const PairAnalysisMC &c)
 
Bool_t ComparePDG (Int_t particlePDG, Int_t requiredPDG, Bool_t pdgExclusion, Bool_t checkBothCharges) const
 
Bool_t CheckIsDalitz (Int_t label, const PairAnalysisSignalMC *const signalMC) const
 
Bool_t CheckDalitzDecision (Int_t mLabel, const PairAnalysisSignalMC *const signalMC) const
 
Bool_t IsPhysicalPrimary (Int_t label, UInt_t processID) const
 
Bool_t IsSecondaryFromWeakDecay (Int_t label, UInt_t processID) const
 
Bool_t IsSecondaryFromMaterial (Int_t label, UInt_t processID) const
 

Private Attributes

TObject * fMCEvent
 
Bool_t fHasMC
 
TClonesArray * fMCArray
 

Static Private Attributes

static PairAnalysisMCfgInstance
 

Detailed Description

Definition at line 25 of file PairAnalysisMC.h.

Constructor & Destructor Documentation

◆ PairAnalysisMC() [1/2]

PairAnalysisMC::PairAnalysisMC ( )

Definition at line 47 of file PairAnalysisMC.cxx.

◆ ~PairAnalysisMC()

PairAnalysisMC::~PairAnalysisMC ( )
virtual

Definition at line 56 of file PairAnalysisMC.cxx.

◆ PairAnalysisMC() [2/2]

PairAnalysisMC::PairAnalysisMC ( const PairAnalysisMC c)
private

singleton pointer

Member Function Documentation

◆ CheckDalitzDecision()

Bool_t PairAnalysisMC::CheckDalitzDecision ( Int_t  mLabel,
const PairAnalysisSignalMC *const  signalMC 
) const
private

◆ CheckGEANTProcess()

Bool_t PairAnalysisMC::CheckGEANTProcess ( Int_t  label,
TMCProcess  process 
) const

Definition at line 519 of file PairAnalysisMC.cxx.

References fMCArray, and GetMCTrackFromMCEvent().

Referenced by IsMCTruth().

◆ CheckIsDalitz()

Bool_t PairAnalysisMC::CheckIsDalitz ( Int_t  label,
const PairAnalysisSignalMC *const  signalMC 
) const
private

◆ CheckParticleSource()

◆ ComparePDG()

Bool_t PairAnalysisMC::ComparePDG ( Int_t  particlePDG,
Int_t  requiredPDG,
Bool_t  pdgExclusion,
Bool_t  checkBothCharges 
) const
private

Definition at line 264 of file PairAnalysisMC.cxx.

Referenced by IsMCTruth().

◆ ConnectMCEvent()

Bool_t PairAnalysisMC::ConnectMCEvent ( )

Definition at line 101 of file PairAnalysisMC.cxx.

References fHasMC, fMCArray, and fMCEvent.

Referenced by AnalysisTaskMultiPairAnalysis::Init().

◆ GetDaughters()

void PairAnalysisMC::GetDaughters ( const TObject *  mother,
CbmMCTrack *&  d1,
CbmMCTrack *&  d2 
)

Definition at line 214 of file PairAnalysisMC.cxx.

References fMCArray.

◆ GetLabelMotherWithPdg() [1/2]

Int_t PairAnalysisMC::GetLabelMotherWithPdg ( const PairAnalysisPair pair,
Int_t  pdgMother 
)
inline

◆ GetLabelMotherWithPdg() [2/2]

Int_t PairAnalysisMC::GetLabelMotherWithPdg ( const PairAnalysisTrack particle1,
const PairAnalysisTrack particle2,
Int_t  pdgMother 
)

◆ GetMCTrack()

CbmMCTrack * PairAnalysisMC::GetMCTrack ( const PairAnalysisTrack _track)

Definition at line 124 of file PairAnalysisMC.cxx.

References PairAnalysisTrack::GetMCTrack().

Referenced by GetMCTrackMother().

◆ GetMCTrackFromMCEvent()

◆ GetMCTrackMother() [1/2]

CbmMCTrack * PairAnalysisMC::GetMCTrackMother ( const CbmMCTrack _track)

Definition at line 142 of file PairAnalysisMC.cxx.

References fMCArray, and CbmMCTrack::GetMotherId().

◆ GetMCTrackMother() [2/2]

CbmMCTrack * PairAnalysisMC::GetMCTrackMother ( const PairAnalysisTrack _track)

◆ GetMotherPDG() [1/2]

Int_t PairAnalysisMC::GetMotherPDG ( const CbmMCTrack _track)

Definition at line 164 of file PairAnalysisMC.cxx.

References GetMCTrackMother(), and CbmMCTrack::GetPdgCode().

◆ GetMotherPDG() [2/2]

Int_t PairAnalysisMC::GetMotherPDG ( const PairAnalysisTrack _track)

Definition at line 154 of file PairAnalysisMC.cxx.

References GetMCTrackMother(), and CbmMCTrack::GetPdgCode().

◆ GetMothersLabel()

◆ GetNMCTracks()

Int_t PairAnalysisMC::GetNMCTracks ( )

Definition at line 63 of file PairAnalysisMC.cxx.

References fMCArray.

Referenced by PairAnalysis::ProcessMC().

◆ GetPdgFromLabel()

Int_t PairAnalysisMC::GetPdgFromLabel ( Int_t  label) const

Definition at line 251 of file PairAnalysisMC.cxx.

References fMCArray, and GetMCTrackFromMCEvent().

Referenced by IsMCTruth(), IsPhysicalPrimary(), and IsSecondaryFromWeakDecay().

◆ HasMC()

Bool_t PairAnalysisMC::HasMC ( ) const
inline

◆ HaveSameMother()

Bool_t PairAnalysisMC::HaveSameMother ( const PairAnalysisPair pair) const

◆ Instance()

◆ IsMCTruth() [1/3]

Bool_t PairAnalysisMC::IsMCTruth ( const PairAnalysisPair pair,
const PairAnalysisSignalMC signalMC 
) const

◆ IsMCTruth() [2/3]

Bool_t PairAnalysisMC::IsMCTruth ( const PairAnalysisTrack trk,
PairAnalysisSignalMC signalMC,
Int_t  branch 
) const

Definition at line 743 of file PairAnalysisMC.cxx.

References PairAnalysisTrack::GetLabel(), and IsMCTruth().

◆ IsMCTruth() [3/3]

◆ IsMotherPdg() [1/2]

Bool_t PairAnalysisMC::IsMotherPdg ( const PairAnalysisPair pair,
Int_t  pdgMother 
)
inline

◆ IsMotherPdg() [2/2]

Bool_t PairAnalysisMC::IsMotherPdg ( const PairAnalysisTrack particle1,
const PairAnalysisTrack particle2,
Int_t  pdgMother 
)
inline

Definition at line 127 of file PairAnalysisMC.h.

References GetLabelMotherWithPdg().

◆ IsPhysicalPrimary()

Bool_t PairAnalysisMC::IsPhysicalPrimary ( Int_t  label,
UInt_t  processID 
) const
private

◆ IsSecondaryFromMaterial()

Bool_t PairAnalysisMC::IsSecondaryFromMaterial ( Int_t  label,
UInt_t  processID 
) const
private

◆ IsSecondaryFromWeakDecay()

Bool_t PairAnalysisMC::IsSecondaryFromWeakDecay ( Int_t  label,
UInt_t  processID 
) const
private

◆ NumberOfDaughters()

Int_t PairAnalysisMC::NumberOfDaughters ( const CbmMCTrack particle)

Definition at line 175 of file PairAnalysisMC.cxx.

References GetMCTrackMother().

◆ operator=()

PairAnalysisMC& PairAnalysisMC::operator= ( const PairAnalysisMC c)
private

◆ SetHasMC()

void PairAnalysisMC::SetHasMC ( Bool_t  hasMC)
inline

Definition at line 31 of file PairAnalysisMC.h.

References fHasMC.

Member Data Documentation

◆ fgInstance

PairAnalysisMC* PairAnalysisMC::fgInstance
staticprivate

Definition at line 97 of file PairAnalysisMC.h.

◆ fHasMC

Bool_t PairAnalysisMC::fHasMC
private

Definition at line 94 of file PairAnalysisMC.h.

Referenced by ConnectMCEvent(), HasMC(), and SetHasMC().

◆ fMCArray

◆ fMCEvent

TObject* PairAnalysisMC::fMCEvent
private

Definition at line 93 of file PairAnalysisMC.h.

Referenced by ConnectMCEvent().


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