FairRoot/PandaRoot
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ClassifierOutPuts Struct Reference

#include <PndMvaTools.h>

Public Member Functions

 ClassifierOutPuts ()
 
 ClassifierOutPuts (std::string const &Rlabel, std::string const &Glabel, float sgVal, float bgVal, float p)
 
virtual ~ClassifierOutPuts ()
 
 ClassifierOutPuts (ClassifierOutPuts const &ot)
 
ClassifierOutPutsoperator= (ClassifierOutPuts const &ot)
 
bool operator> (ClassifierOutPuts const &ot) const
 
bool operator< (ClassifierOutPuts const &ot) const
 

Public Attributes

std::string realLabel
 
std::string givenLabel
 
float sgValue
 
float bgValue
 
float mom
 

Private Member Functions

bool operator== (ClassifierOutPuts const &ot) const
 

Detailed Description

Structure used to hold the classifier output (label and distance or prob.) for each example in the test set together with the original class name. Used for ROC curves.

Definition at line 30 of file PndMvaTools.h.

Constructor & Destructor Documentation

ClassifierOutPuts::ClassifierOutPuts ( )
inlineexplicit

Definition at line 34 of file PndMvaTools.h.

35  : realLabel ("ALABEL"),
36  givenLabel("NOLABEL"),
37  sgValue(0.00),
38  bgValue(0.00),
39  mom(0.00)
40  {};
std::string givenLabel
Definition: PndMvaTools.h:99
std::string realLabel
Definition: PndMvaTools.h:95
ClassifierOutPuts::ClassifierOutPuts ( std::string const &  Rlabel,
std::string const &  Glabel,
float  sgVal,
float  bgVal,
float  p 
)
inlineexplicit
Parameters
RlabelTrue label.
GlabelGiven label.
sgValClassifier output for each signal.
bgValClassifier output for each background.

Definition at line 48 of file PndMvaTools.h.

51  : realLabel(Rlabel),
52  givenLabel(Glabel),
53  sgValue(sgVal),
54  bgValue(bgVal),
55  mom(p)
56  {};
Double_t p
Definition: anasim.C:58
std::string givenLabel
Definition: PndMvaTools.h:99
std::string realLabel
Definition: PndMvaTools.h:95
virtual ClassifierOutPuts::~ClassifierOutPuts ( )
inlinevirtual

Definition at line 59 of file PndMvaTools.h.

60  {};
ClassifierOutPuts::ClassifierOutPuts ( ClassifierOutPuts const &  ot)
inline

Definition at line 63 of file PndMvaTools.h.

64  : realLabel(ot.realLabel),
65  givenLabel(ot.givenLabel),
66  sgValue(ot.sgValue),
67  bgValue(ot.bgValue),
68  mom(ot.mom)
69  {};
std::string givenLabel
Definition: PndMvaTools.h:99
std::string realLabel
Definition: PndMvaTools.h:95

Member Function Documentation

bool ClassifierOutPuts::operator< ( ClassifierOutPuts const &  ot) const
inline

Definition at line 92 of file PndMvaTools.h.

References sgValue.

93  {
94  return (this->sgValue < ot.sgValue);
95  };
ClassifierOutPuts& ClassifierOutPuts::operator= ( ClassifierOutPuts const &  ot)
inline

Definition at line 72 of file PndMvaTools.h.

References bgValue, givenLabel, mom, realLabel, and sgValue.

73  {
74  // check for self-assignment
75  if( this != &ot )
76  {
77  // Copy (deep)
78  this->realLabel = ot.realLabel;
79  this->givenLabel = ot.givenLabel;
80  this->sgValue = ot.sgValue;
81  this->bgValue = ot.bgValue;
82  this->mom = ot.mom;
83  }
84  return (*this);
85  };
std::string givenLabel
Definition: PndMvaTools.h:99
std::string realLabel
Definition: PndMvaTools.h:95
bool ClassifierOutPuts::operator== ( ClassifierOutPuts const &  ot) const
inlineprivate
bool ClassifierOutPuts::operator> ( ClassifierOutPuts const &  ot) const
inline

Definition at line 87 of file PndMvaTools.h.

References sgValue.

88  {
89  return (this->sgValue > ot.sgValue);
90  };

Member Data Documentation

float ClassifierOutPuts::bgValue

Definition at line 101 of file PndMvaTools.h.

Referenced by operator=().

std::string ClassifierOutPuts::givenLabel

Definition at line 99 of file PndMvaTools.h.

Referenced by operator=().

float ClassifierOutPuts::mom

Definition at line 102 of file PndMvaTools.h.

Referenced by operator=().

std::string ClassifierOutPuts::realLabel

Definition at line 95 of file PndMvaTools.h.

Referenced by operator=().

float ClassifierOutPuts::sgValue

Definition at line 100 of file PndMvaTools.h.

Referenced by operator<(), operator=(), and operator>().


The documentation for this struct was generated from the following file: