All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MVAPID.h
Go to the documentation of this file.
1 // Class for holding the result of an MVA PID
2 
3 #ifndef sbncode_MVAPID_H
4 #define sbncode_MVAPID_H
5 
6 #include <map>
7 
8 namespace sbn {
9 class MVAPID {
10  public:
11  MVAPID() {}
12 
13  std::map<int, float> mvaScoreMap; // MVA Scores: Key is PDG of hypothesis and value is the MVA score
14 
15  void AddScore(int pdg, float score); // Add a new score to the map
16 
17  std::pair<int, float> BestIter() const; // Returns the map iterator with the highest score
18  inline int BestPDG() const { return this->BestIter().first; }; // Returns the hypothesis with the highest score
19  inline float BestScore() const { return this->BestIter().second; }; // Returns the highest score from any hypothesis
20 };
21 }
22 
23 #endif
var pdg
Definition: selectors.fcl:14
float BestScore() const
Definition: MVAPID.h:19
BEGIN_PROLOG or score(default)}sbnd_crttrackmatchingalg_crID
void AddScore(int pdg, float score)
Definition: MVAPID.cc:8
MVAPID()
Definition: MVAPID.h:11
std::pair< int, float > BestIter() const
Definition: MVAPID.cc:14
std::map< int, float > mvaScoreMap
Definition: MVAPID.h:13
int BestPDG() const
Definition: MVAPID.h:18