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 
22 class KFMCParticle {
23  public:
24  KFMCParticle();
25  ~KFMCParticle();
26 
27  void AddDaughter(int i);
28  int NDaughters() const { return fDaughterIds.size(); };
29  const vector<int> &GetDaughterIds() const { return fDaughterIds; };
30  void FindCommonMC();
31 
32  void SetPDG(int pdg) { fPDG = pdg; }
33  void SetMCTrackID(int id) { fMCTrackID = id; }
34  void SetMotherId(int id) { fMotherId = id; }
35 
36  int GetMCTrackID() const { return fMCTrackID; }
37  int GetMotherId() const { return fMotherId; }
38  int GetPDG() const { return fPDG; }
39  bool IsReconstructable() const { return fIsReconstructable; }
40  void SetAsReconstructable() { fIsReconstructable = 1; }
41 
42  void CalculateIsReconstructable(unsigned int NDaughters = 2);
43  void CalculateIsRecRec(unsigned int NDaughters = 2);
44 
45  private: // data
46  vector<int> fDaughterIds;
47  int fMCTrackID; // sim id of MC track, which corresponds to the particle
48  int fMotherId; // index in L1 array of mother particle
49  int fPDG;
50 
51  bool fIsReconstructable;
52 };
53 
54 #endif
void FindCommonMC()
bool IsReconstructable() const
Definition: KFMCParticle.h:39
const vector< int > & GetDaughterIds() const
Definition: KFMCParticle.h:29
void SetPDG(int pdg)
Definition: KFMCParticle.h:32
int NDaughters() const
Definition: KFMCParticle.h:28
unsigned int i
Definition: P4_F32vec4.h:21
void AddDaughter(int i)
int GetMotherId() const
Definition: KFMCParticle.h:37
void CalculateIsReconstructable(unsigned int NDaughters=2)
int GetPDG() const
Definition: KFMCParticle.h:38
void CalculateIsRecRec(unsigned int NDaughters=2)
void SetMCTrackID(int id)
Definition: KFMCParticle.h:33
void SetAsReconstructable()
Definition: KFMCParticle.h:40
int GetMCTrackID() const
Definition: KFMCParticle.h:36
void SetMotherId(int id)
Definition: KFMCParticle.h:34