PandaRoot
KFMCParticle Class Reference

#include <KFMCParticle.h>

Public Member Functions

 KFMCParticle ()
 
 ~KFMCParticle ()
 
void AddDaughter (int i)
 
int NDaughters () const
 
const vector< int > & GetDaughterIds () const
 
void FindCommonMC ()
 
void SetPDG (int pdg)
 
void SetMCTrackID (int id)
 
void SetMotherId (int id)
 
int GetMCTrackID () const
 
int GetMotherId () const
 
int GetPDG () const
 
bool IsReconstructable () const
 
void SetAsReconstructable ()
 
void CalculateIsReconstructable (unsigned int NDaughters=2)
 
void CalculateIsRecRec (unsigned int NDaughters=2)
 

Detailed Description

Definition at line 34 of file KFMCParticle.h.

Constructor & Destructor Documentation

◆ KFMCParticle()

KFMCParticle::KFMCParticle ( )

◆ ~KFMCParticle()

KFMCParticle::~KFMCParticle ( )

Member Function Documentation

◆ AddDaughter()

void KFMCParticle::AddDaughter ( int  i)

◆ CalculateIsReconstructable()

void KFMCParticle::CalculateIsReconstructable ( unsigned int  NDaughters = 2)

Referenced by SetAsReconstructable().

◆ CalculateIsRecRec()

void KFMCParticle::CalculateIsRecRec ( unsigned int  NDaughters = 2)

Referenced by SetAsReconstructable().

◆ FindCommonMC()

void KFMCParticle::FindCommonMC ( )

Referenced by GetDaughterIds().

◆ GetDaughterIds()

const vector<int>& KFMCParticle::GetDaughterIds ( ) const
inline

Definition at line 41 of file KFMCParticle.h.

References FindCommonMC().

41 { return fDaughterIds; };

◆ GetMCTrackID()

int KFMCParticle::GetMCTrackID ( ) const
inline

Definition at line 48 of file KFMCParticle.h.

48 { return fMCTrackID; }

◆ GetMotherId()

int KFMCParticle::GetMotherId ( ) const
inline

Definition at line 49 of file KFMCParticle.h.

49 { return fMotherId; }

◆ GetPDG()

int KFMCParticle::GetPDG ( ) const
inline

Definition at line 50 of file KFMCParticle.h.

50 { return fPDG; }

◆ IsReconstructable()

bool KFMCParticle::IsReconstructable ( ) const
inline

Definition at line 51 of file KFMCParticle.h.

51 { return fIsReconstructable; }

◆ NDaughters()

int KFMCParticle::NDaughters ( ) const
inline

Definition at line 40 of file KFMCParticle.h.

Referenced by SetAsReconstructable().

40 { return fDaughterIds.size(); };

◆ SetAsReconstructable()

void KFMCParticle::SetAsReconstructable ( )
inline

Definition at line 52 of file KFMCParticle.h.

References CalculateIsReconstructable(), CalculateIsRecRec(), and NDaughters().

52 { fIsReconstructable = 1; }

◆ SetMCTrackID()

void KFMCParticle::SetMCTrackID ( int  id)
inline

Definition at line 45 of file KFMCParticle.h.

45 { fMCTrackID = id; }

◆ SetMotherId()

void KFMCParticle::SetMotherId ( int  id)
inline

Definition at line 46 of file KFMCParticle.h.

46 { fMotherId = id; }

◆ SetPDG()

void KFMCParticle::SetPDG ( int  pdg)
inline

Definition at line 44 of file KFMCParticle.h.

44 { fPDG = pdg; }

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