BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
KFParticleMatch.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 _KFParticleMatch_h_
18
#define _KFParticleMatch_h_
19
20
#include "
TObject.h
"
21
22
#include <vector>
23
24
class
KFParticleMatch
:
public
TObject
25
{
26
public
:
27
KFParticleMatch
();
28
~KFParticleMatch
();
29
30
Int_t
GetMatch
()
const
{
return
fMatch
; }
31
void
SetMatch
(
Int_t
i
) {
fMatch
=
i
; }
32
33
void
SetMatchType
(
Short_t
i
) {
fMatchType
=
i
; }
34
35
Bool_t
IsCombinatorialBG
()
const
{
return
(
fMatchType
== 0); }
36
Bool_t
IsPhysicsBG
()
const
{
return
(
fMatchType
== 1); }
37
Bool_t
IsRecoParticle
()
const
{
return
(
fMatchType
== 2); }
38
39
private
:
40
Int_t
fMatch
;
41
Short_t
fMatchType
;
// 0 - combinatorial BG, 1 - physics BG, 2 - reconstructed particle
42
43
ClassDef
(
KFParticleMatch
, 1);
44
};
45
46
struct
KFMatchParticles
// used for Reco to MC match as well as for MC to Reco
47
{
48
KFMatchParticles
()
49
:
ids
()
50
,
idsMI
() {};
51
52
bool
IsMatched
()
const
{
return
ids
.size() != 0 ||
idsMI
.size() != 0; };
53
bool
IsMatchedWithPdg
()
const
{
return
ids
.size() != 0; };
54
int
GetBestMatch
()
const
55
{
56
if
(
ids
.size() != 0)
57
return
ids
[0];
58
else
if
(
idsMI
.size() != 0)
59
return
idsMI
[0];
60
else
61
return
-1;
62
};
63
int
GetBestMatchWithPdg
()
const
64
{
65
if
(
ids
.size() != 0)
66
return
ids
[0];
67
else
68
return
-1;
69
};
70
std::vector<int>
ids
;
71
std::vector<int>
idsMI
;
// matched but pdg is different - miss identification
72
};
73
74
#endif
// _KFParticleMatch_h_
i
int i
Definition
P4_F32vec4.h:22
Bool_t
bool Bool_t
Int_t
int Int_t
Short_t
short Short_t
ClassDef
#define ClassDef(name, id)
TObject.h
KFParticleMatch
Definition
KFParticleMatch.h:25
KFParticleMatch::KFParticleMatch
KFParticleMatch()
KFParticleMatch::~KFParticleMatch
~KFParticleMatch()
KFParticleMatch::SetMatchType
void SetMatchType(Short_t i)
Definition
KFParticleMatch.h:33
KFParticleMatch::IsRecoParticle
Bool_t IsRecoParticle() const
Definition
KFParticleMatch.h:37
KFParticleMatch::IsCombinatorialBG
Bool_t IsCombinatorialBG() const
Definition
KFParticleMatch.h:35
KFParticleMatch::fMatchType
Short_t fMatchType
Definition
KFParticleMatch.h:41
KFParticleMatch::GetMatch
Int_t GetMatch() const
Definition
KFParticleMatch.h:30
KFParticleMatch::fMatch
Int_t fMatch
Definition
KFParticleMatch.h:40
KFParticleMatch::IsPhysicsBG
Bool_t IsPhysicsBG() const
Definition
KFParticleMatch.h:36
KFParticleMatch::SetMatch
void SetMatch(Int_t i)
Definition
KFParticleMatch.h:31
TObject
KFMatchParticles
Definition
KFParticleMatch.h:47
KFMatchParticles::IsMatched
bool IsMatched() const
Definition
KFParticleMatch.h:52
KFMatchParticles::KFMatchParticles
KFMatchParticles()
Definition
KFParticleMatch.h:48
KFMatchParticles::IsMatchedWithPdg
bool IsMatchedWithPdg() const
Definition
KFParticleMatch.h:53
KFMatchParticles::GetBestMatchWithPdg
int GetBestMatchWithPdg() const
Definition
KFParticleMatch.h:63
KFMatchParticles::GetBestMatch
int GetBestMatch() const
Definition
KFParticleMatch.h:54
KFMatchParticles::ids
std::vector< int > ids
Definition
KFParticleMatch.h:70
KFMatchParticles::idsMI
std::vector< int > idsMI
Definition
KFParticleMatch.h:71
reconstruction
KF
KFQA
KFParticleMatch.h
Generated on
for BmnRoot by
1.17.0