BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
22#include <vector>
23
24class KFMCParticle : public TObject
25{
26 public:
29
30 void AddDaughter(int i);
31 int NDaughters() const { return fDaughterIds.size(); };
32 const std::vector<int>& GetDaughterIds() const { return fDaughterIds; };
33 void FindCommonMC() {}
34
35 void SetPDG(int pdg) { fPDG = pdg; }
36 void SetMCTrackID(int id) { fMCTrackID = id; }
37 void SetMotherId(int id) { fMotherId = id; }
38
39 int GetMCTrackID() const { return fMCTrackID; }
40 int GetMotherId() const { return fMotherId; }
41 int GetPDG() const { return fPDG; }
42 bool IsReconstructable() const { return fIsReconstructable; }
44
45 void CalculateIsReconstructable(unsigned int NDaughters = 2) {}
46 void CalculateIsRecRec(unsigned int NDaughters = 2) {}
47
48 private: // data
49 std::vector<int> fDaughterIds;
50 int fMCTrackID; // sim id of MC track, which corresponds to the particle
51 int fMotherId; // index in L1 array of mother particle
52 int fPDG;
53
55
57};
58
59#endif // _KFMCParticle_h_
int i
Definition P4_F32vec4.h:22
#define ClassDef(name, id)
std::vector< int > fDaughterIds
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
bool fIsReconstructable
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)