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
KFMCParticle::FindCommonMC
void FindCommonMC()
KFMCParticle::IsReconstructable
bool IsReconstructable() const
Definition:
KFMCParticle.h:39
KFMCParticle::GetDaughterIds
const vector< int > & GetDaughterIds() const
Definition:
KFMCParticle.h:29
KFMCParticle::SetPDG
void SetPDG(int pdg)
Definition:
KFMCParticle.h:32
KFMCParticle::NDaughters
int NDaughters() const
Definition:
KFMCParticle.h:28
i
unsigned int i
Definition:
P4_F32vec4.h:21
KFMCParticle::AddDaughter
void AddDaughter(int i)
KFMCParticle::~KFMCParticle
~KFMCParticle()
KFMCParticle::GetMotherId
int GetMotherId() const
Definition:
KFMCParticle.h:37
KFMCParticle::CalculateIsReconstructable
void CalculateIsReconstructable(unsigned int NDaughters=2)
KFMCParticle::GetPDG
int GetPDG() const
Definition:
KFMCParticle.h:38
KFMCParticle::KFMCParticle
KFMCParticle()
KFMCParticle::CalculateIsRecRec
void CalculateIsRecRec(unsigned int NDaughters=2)
KFMCParticle::SetMCTrackID
void SetMCTrackID(int id)
Definition:
KFMCParticle.h:33
KFMCParticle::SetAsReconstructable
void SetAsReconstructable()
Definition:
KFMCParticle.h:40
KFMCParticle::GetMCTrackID
int GetMCTrackID() const
Definition:
KFMCParticle.h:36
KFMCParticle::SetMotherId
void SetMotherId(int id)
Definition:
KFMCParticle.h:34
KFMCParticle
Definition:
KFMCParticle.h:22
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
tracking
ftscatracking
code
Performance
KFMCParticle.h
Generated on Fri Oct 6 2023 07:04:53 for PandaRoot by
1.8.13