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