Public Member Functions | Private Attributes | List of all members
ctp::CTPResult Class Reference

Class containing some utility functions for all things CVN. More...

#include <CTPResult.h>

Public Member Functions

 CTPResult ()
 
 CTPResult (const std::vector< float > &vals)
 
 ~CTPResult ()
 
std::vector< float > GetResults () const
 
bool IsValid () const
 
float GetMuonScore () const
 
float GetPionScore () const
 
float GetProtonScore () const
 
void Print () const
 

Private Attributes

float fMuonScore
 
float fPionScore
 
float fProtonScore
 

Detailed Description

Class containing some utility functions for all things CVN.

Definition at line 16 of file CTPResult.h.

Constructor & Destructor Documentation

ctp::CTPResult::CTPResult ( )

Definition at line 15 of file CTPResult.cxx.

15  {
16  fMuonScore = -1.;
17  fPionScore = -1.;
18  fProtonScore = -1.;
19  }
float fPionScore
Definition: CTPResult.h:38
float fProtonScore
Definition: CTPResult.h:39
float fMuonScore
Definition: CTPResult.h:37
ctp::CTPResult::CTPResult ( const std::vector< float > &  vals)

Definition at line 21 of file CTPResult.cxx.

21  {
22  fMuonScore = -1.;
23  fPionScore = -1.;
24  fProtonScore = -1.;
25  if(vals.size() != 3){
26  std::cout << "CTPResult Error: there should be three input values" << std::endl;
27  }
28  else{
29  fMuonScore = vals.at(0);
30  fPionScore = vals.at(1);
31  fProtonScore = vals.at(2);
32  }
33  }
float fPionScore
Definition: CTPResult.h:38
QTextStream & endl(QTextStream &s)
float fProtonScore
Definition: CTPResult.h:39
float fMuonScore
Definition: CTPResult.h:37
ctp::CTPResult::~CTPResult ( )

Definition at line 35 of file CTPResult.cxx.

35  {
36 
37  }

Member Function Documentation

float ctp::CTPResult::GetMuonScore ( ) const
inline

Definition at line 29 of file CTPResult.h.

29 {return fMuonScore;};
float fMuonScore
Definition: CTPResult.h:37
float ctp::CTPResult::GetPionScore ( ) const
inline

Definition at line 30 of file CTPResult.h.

30 {return fPionScore;};
float fPionScore
Definition: CTPResult.h:38
float ctp::CTPResult::GetProtonScore ( ) const
inline

Definition at line 31 of file CTPResult.h.

31 {return fProtonScore;};
float fProtonScore
Definition: CTPResult.h:39
std::vector<float> ctp::CTPResult::GetResults ( ) const
bool ctp::CTPResult::IsValid ( ) const

Definition at line 39 of file CTPResult.cxx.

39  {
40  return (fMuonScore > 0.) && (fPionScore > 0.) && (fProtonScore > 0.);
41  }
float fPionScore
Definition: CTPResult.h:38
float fProtonScore
Definition: CTPResult.h:39
float fMuonScore
Definition: CTPResult.h:37
void ctp::CTPResult::Print ( ) const

Definition at line 43 of file CTPResult.cxx.

43  {
44  std::cout << "==CTPResult: " << fMuonScore << ", " << fPionScore << ", " << fProtonScore << std::endl;
45  }
float fPionScore
Definition: CTPResult.h:38
QTextStream & endl(QTextStream &s)
float fProtonScore
Definition: CTPResult.h:39
float fMuonScore
Definition: CTPResult.h:37

Member Data Documentation

float ctp::CTPResult::fMuonScore
private

Definition at line 37 of file CTPResult.h.

float ctp::CTPResult::fPionScore
private

Definition at line 38 of file CTPResult.h.

float ctp::CTPResult::fProtonScore
private

Definition at line 39 of file CTPResult.h.


The documentation for this class was generated from the following files: