CTPResult.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file CTPResult.h
3 /// \brief Class storing the result from the convolutional track PID
4 /// \author Leigh Whitehead - leigh.howard.whitehead@cern.ch
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef CTPRESULT_H
8 #define CTPRESULT_H
9 
10 #include <vector>
11 
12 namespace ctp
13 {
14 
15  /// Class containing some utility functions for all things CVN
16  class CTPResult
17  {
18  public:
19  CTPResult();
20  CTPResult(const std::vector<float> &vals);
21  ~CTPResult();
22 
23  // Function to calculate the PID for a given track
24  std::vector<float> GetResults() const;
25 
26  bool IsValid() const;
27 
28  // Individual scores
29  float GetMuonScore() const {return fMuonScore;};
30  float GetPionScore() const {return fPionScore;};
31  float GetProtonScore() const {return fProtonScore;};
32 
33  void Print() const;
34 
35  private:
36 
37  float fMuonScore;
38  float fPionScore;
39  float fProtonScore;
40 
41  };
42 
43 }
44 
45 #endif // CTPRESULT_H
Class containing some utility functions for all things CVN.
Definition: CTPResult.h:16
std::vector< float > GetResults() const
float GetPionScore() const
Definition: CTPResult.h:30
float GetProtonScore() const
Definition: CTPResult.h:31
float GetMuonScore() const
Definition: CTPResult.h:29
float fPionScore
Definition: CTPResult.h:38
void Print() const
Definition: CTPResult.cxx:43
float fProtonScore
Definition: CTPResult.h:39
bool IsValid() const
Definition: CTPResult.cxx:39
float fMuonScore
Definition: CTPResult.h:37