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 22 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 29 of file KFMCParticle.h.

References FindCommonMC().

29 { return fDaughterIds; };

◆ GetMCTrackID()

int KFMCParticle::GetMCTrackID ( ) const
inline

Definition at line 36 of file KFMCParticle.h.

36 { return fMCTrackID; }

◆ GetMotherId()

int KFMCParticle::GetMotherId ( ) const
inline

Definition at line 37 of file KFMCParticle.h.

37 { return fMotherId; }

◆ GetPDG()

int KFMCParticle::GetPDG ( ) const
inline

Definition at line 38 of file KFMCParticle.h.

38 { return fPDG; }

◆ IsReconstructable()

bool KFMCParticle::IsReconstructable ( ) const
inline

Definition at line 39 of file KFMCParticle.h.

39 { return fIsReconstructable; }

◆ NDaughters()

int KFMCParticle::NDaughters ( ) const
inline

Definition at line 28 of file KFMCParticle.h.

Referenced by SetAsReconstructable().

28 { return fDaughterIds.size(); };

◆ SetAsReconstructable()

void KFMCParticle::SetAsReconstructable ( )
inline

Definition at line 40 of file KFMCParticle.h.

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

40 { fIsReconstructable = 1; }

◆ SetMCTrackID()

void KFMCParticle::SetMCTrackID ( int  id)
inline

Definition at line 33 of file KFMCParticle.h.

33 { fMCTrackID = id; }

◆ SetMotherId()

void KFMCParticle::SetMotherId ( int  id)
inline

Definition at line 34 of file KFMCParticle.h.

34 { fMotherId = id; }

◆ SetPDG()

void KFMCParticle::SetPDG ( int  pdg)
inline

Definition at line 32 of file KFMCParticle.h.

32 { fPDG = pdg; }

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