PandaRoot
KFPartMatch.h
Go to the documentation of this file.
1
#ifndef KFPartMatch_H
2
#define KFPartMatch_H
3
4
struct
KFPartMatch
// used for Reco to MC match as well as for MC to Reco
5
{
6
KFPartMatch
() :
ids
(),
idsMI
(){};
7
8
bool
IsMatched
()
const
{
return
ids
.size() != 0 ||
idsMI
.size() != 0; };
9
bool
IsMatchedWithPdg
()
const
{
return
ids
.size() != 0; };
10
int
GetBestMatch
()
const
11
{
12
if
(
ids
.size() != 0)
13
return
ids
[0];
14
else
if
(
idsMI
.size() != 0)
15
return
idsMI
[0];
16
else
17
return
-1;
18
};
19
int
GetBestMatchWithPdg
()
const
20
{
21
if
(
ids
.size() != 0)
22
return
ids
[0];
23
else
24
return
-1;
25
};
26
vector<int>
ids
;
27
vector<int>
idsMI
;
// matched but pdg is different - miss identification
28
};
29
30
#endif
KFPartMatch::idsMI
vector< int > idsMI
Definition:
KFPartMatch.h:27
KFPartMatch
Definition:
KFPartMatch.h:4
KFPartMatch::IsMatchedWithPdg
bool IsMatchedWithPdg() const
Definition:
KFPartMatch.h:9
KFPartMatch::KFPartMatch
KFPartMatch()
Definition:
KFPartMatch.h:6
KFPartMatch::GetBestMatch
int GetBestMatch() const
Definition:
KFPartMatch.h:10
KFPartMatch::IsMatched
bool IsMatched() const
Definition:
KFPartMatch.h:8
KFPartMatch::GetBestMatchWithPdg
int GetBestMatchWithPdg() const
Definition:
KFPartMatch.h:19
KFPartMatch::ids
vector< int > ids
Definition:
KFPartMatch.h:25
home
gitlab-runner
builds
LYZoAKaU
0
PandaRootGroup
PandaRoot
tracking
ftscatracking
code
Performance
KFPartMatch.h
Generated on Fri Oct 21 2022 07:03:57 for PandaRoot by
1.8.13