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
23
class
KFMCParticle
:
public
TObject
24
{
25
public
:
26
KFMCParticle
();
27
~KFMCParticle
();
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_
i
int i
Definition
P4_F32vec4.h:22
KFMCParticle
Definition
KFMCParticle.h:24
KFMCParticle::IsReconstructable
bool IsReconstructable() const
Definition
KFMCParticle.h:41
KFMCParticle::~KFMCParticle
~KFMCParticle()
KFMCParticle::CalculateIsRecRec
void CalculateIsRecRec(unsigned int NDaughters=2)
Definition
KFMCParticle.h:45
KFMCParticle::GetPDG
int GetPDG() const
Definition
KFMCParticle.h:40
KFMCParticle::SetMCTrackID
void SetMCTrackID(int id)
Definition
KFMCParticle.h:35
KFMCParticle::GetDaughterIds
const std::vector< int > & GetDaughterIds() const
Definition
KFMCParticle.h:31
KFMCParticle::NDaughters
int NDaughters() const
Definition
KFMCParticle.h:30
KFMCParticle::GetMotherId
int GetMotherId() const
Definition
KFMCParticle.h:39
KFMCParticle::SetAsReconstructable
void SetAsReconstructable()
Definition
KFMCParticle.h:42
KFMCParticle::CalculateIsReconstructable
void CalculateIsReconstructable(unsigned int NDaughters=2)
Definition
KFMCParticle.h:44
KFMCParticle::KFMCParticle
KFMCParticle()
KFMCParticle::FindCommonMC
void FindCommonMC()
Definition
KFMCParticle.h:32
KFMCParticle::SetPDG
void SetPDG(int pdg)
Definition
KFMCParticle.h:34
KFMCParticle::SetMotherId
void SetMotherId(int id)
Definition
KFMCParticle.h:36
KFMCParticle::GetMCTrackID
int GetMCTrackID() const
Definition
KFMCParticle.h:38
KFMCParticle::AddDaughter
void AddDaughter(int i)
reconstruction
KF
KFQA
KFMCParticle.h
Generated on Fri May 15 2026 10:40:59 for BmnRoot by
1.9.8