FairRoot/PandaRoot
KFMCParticle.h
Go to the documentation of this file.
1 /*
2  *=====================================================
3  *
4  * CBM Level 1 Reconstruction
5  *
6  * Authors: M.Zyzak
7  *
8  * e-mail :
9  *
10  *=====================================================
11  *
12  * Finds Particles: Lambdas, K0
13  *
14  */
15 
16 #ifndef _KFMCParticle_h_
17 #define _KFMCParticle_h_
18 
19 #include <vector>
20 using std::vector;
21 
23 {
24  public:
25  KFMCParticle();
26  ~KFMCParticle();
27 
28  void AddDaughter( int i );
29  int NDaughters() const { return fDaughterIds.size(); };
30  const vector<int>& GetDaughterIds() const { return fDaughterIds; };
31  void FindCommonMC();
32 
33  void SetPDG(int pdg) {fPDG = pdg;}
34  void SetMCTrackID(int id) {fMCTrackID = id;}
35  void SetMotherId(int id) {fMotherId = id;}
36 
37  int GetMCTrackID() const {return fMCTrackID;}
38  int GetMotherId() const {return fMotherId;}
39  int GetPDG() const {return fPDG;}
40  bool IsReconstructable() const {return fIsReconstructable;}
42 
43  void CalculateIsReconstructable(unsigned int NDaughters = 2);
44  void CalculateIsRecRec(unsigned int NDaughters = 2);
45 
46  private: //data
47  vector<int> fDaughterIds;
48  int fMCTrackID; // sim id of MC track, which corresponds to the particle
49  int fMotherId; // index in L1 array of mother particle
50  int fPDG;
51 
53 };
54 
55 #endif
56 
void FindCommonMC()
int NDaughters() const
Definition: KFMCParticle.h:29
int GetPDG() const
Definition: KFMCParticle.h:39
Int_t i
Definition: run_full.C:25
void SetPDG(int pdg)
Definition: KFMCParticle.h:33
const vector< int > & GetDaughterIds() const
Definition: KFMCParticle.h:30
void AddDaughter(int i)
void CalculateIsReconstructable(unsigned int NDaughters=2)
vector< int > fDaughterIds
Definition: KFMCParticle.h:47
void CalculateIsRecRec(unsigned int NDaughters=2)
void SetMCTrackID(int id)
Definition: KFMCParticle.h:34
bool IsReconstructable() const
Definition: KFMCParticle.h:40
bool fIsReconstructable
Definition: KFMCParticle.h:52
int GetMotherId() const
Definition: KFMCParticle.h:38
void SetAsReconstructable()
Definition: KFMCParticle.h:41
void SetMotherId(int id)
Definition: KFMCParticle.h:35
int GetMCTrackID() const
Definition: KFMCParticle.h:37