BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
24
class
KFMCParticle
:
public
TObject
25
{
26
public
:
27
KFMCParticle
();
28
~KFMCParticle
();
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
; }
43
void
SetAsReconstructable
() {
fIsReconstructable
= 1; }
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
54
bool
fIsReconstructable
;
55
56
ClassDef
(
KFMCParticle
, 1);
57
};
58
59
#endif
// _KFMCParticle_h_
i
int i
Definition
P4_F32vec4.h:22
ClassDef
#define ClassDef(name, id)
TObject.h
KFMCParticle::fDaughterIds
std::vector< int > fDaughterIds
Definition
KFMCParticle.h:49
KFMCParticle::IsReconstructable
bool IsReconstructable() const
Definition
KFMCParticle.h:42
KFMCParticle::~KFMCParticle
~KFMCParticle()
Definition
KFMCParticle.cxx:27
KFMCParticle::CalculateIsRecRec
void CalculateIsRecRec(unsigned int NDaughters=2)
Definition
KFMCParticle.h:46
KFMCParticle::GetPDG
int GetPDG() const
Definition
KFMCParticle.h:41
KFMCParticle::SetMCTrackID
void SetMCTrackID(int id)
Definition
KFMCParticle.h:36
KFMCParticle::GetDaughterIds
const std::vector< int > & GetDaughterIds() const
Definition
KFMCParticle.h:32
KFMCParticle::NDaughters
int NDaughters() const
Definition
KFMCParticle.h:31
KFMCParticle::GetMotherId
int GetMotherId() const
Definition
KFMCParticle.h:40
KFMCParticle::fIsReconstructable
bool fIsReconstructable
Definition
KFMCParticle.h:54
KFMCParticle::fMCTrackID
int fMCTrackID
Definition
KFMCParticle.h:50
KFMCParticle::SetAsReconstructable
void SetAsReconstructable()
Definition
KFMCParticle.h:43
KFMCParticle::CalculateIsReconstructable
void CalculateIsReconstructable(unsigned int NDaughters=2)
Definition
KFMCParticle.h:45
KFMCParticle::fMotherId
int fMotherId
Definition
KFMCParticle.h:51
KFMCParticle::KFMCParticle
KFMCParticle()
Definition
KFMCParticle.cxx:19
KFMCParticle::FindCommonMC
void FindCommonMC()
Definition
KFMCParticle.h:33
KFMCParticle::SetPDG
void SetPDG(int pdg)
Definition
KFMCParticle.h:35
KFMCParticle::SetMotherId
void SetMotherId(int id)
Definition
KFMCParticle.h:37
KFMCParticle::fPDG
int fPDG
Definition
KFMCParticle.h:52
KFMCParticle::GetMCTrackID
int GetMCTrackID() const
Definition
KFMCParticle.h:39
KFMCParticle::AddDaughter
void AddDaughter(int i)
Definition
KFMCParticle.cxx:29
TObject::TObject
TObject()
install
include
KFMCParticle.h
Generated on
for BmnRoot by
1.17.0