FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tracking
ftscatracking
code
Performance
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
if
(
ids
.size() != 0)
return
ids
[0];
12
else
if
(
idsMI
.size() != 0)
return
idsMI
[0];
13
else
return
-1;
14
};
15
int
GetBestMatchWithPdg
()
const
{
16
if
(
ids
.size() != 0)
return
ids
[0];
17
else
return
-1;
18
};
19
vector<int>
ids
;
20
vector<int>
idsMI
;
// matched but pdg is different - miss identification
21
};
22
23
#endif
KFPartMatch::idsMI
vector< int > idsMI
Definition:
KFPartMatch.h:20
KFPartMatch
Definition:
KFPartMatch.h:4
KFPartMatch::KFPartMatch
KFPartMatch()
Definition:
KFPartMatch.h:6
KFPartMatch::GetBestMatchWithPdg
int GetBestMatchWithPdg() const
Definition:
KFPartMatch.h:15
KFPartMatch::IsMatchedWithPdg
bool IsMatchedWithPdg() const
Definition:
KFPartMatch.h:9
KFPartMatch::IsMatched
bool IsMatched() const
Definition:
KFPartMatch.h:8
KFPartMatch::GetBestMatch
int GetBestMatch() const
Definition:
KFPartMatch.h:10
KFPartMatch::ids
vector< int > ids
Definition:
KFPartMatch.h:18
Generated on Wed Apr 3 2019 08:43:52 for FairRoot/PandaRoot by
1.8.5