PandaRoot
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
 

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() [1/3]

ClassifierOutPuts::ClassifierOutPuts ( )
inlineexplicit

Definition at line 33 of file PndMvaTools.h.

33 : realLabel("ALABEL"), givenLabel("NOLABEL"), sgValue(0.00), bgValue(0.00), mom(0.00){};
std::string givenLabel
Definition: PndMvaTools.h:71
std::string realLabel
Definition: PndMvaTools.h:67

◆ ClassifierOutPuts() [2/3]

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 41 of file PndMvaTools.h.

42  : realLabel(Rlabel), givenLabel(Glabel), sgValue(sgVal), bgValue(bgVal), mom(p){};
std::string givenLabel
Definition: PndMvaTools.h:71
std::string realLabel
Definition: PndMvaTools.h:67

◆ ~ClassifierOutPuts()

virtual ClassifierOutPuts::~ClassifierOutPuts ( )
inlinevirtual

Definition at line 45 of file PndMvaTools.h.

45 {};

◆ ClassifierOutPuts() [3/3]

ClassifierOutPuts::ClassifierOutPuts ( ClassifierOutPuts const &  ot)
inline

Definition at line 48 of file PndMvaTools.h.

48 : realLabel(ot.realLabel), givenLabel(ot.givenLabel), sgValue(ot.sgValue), bgValue(ot.bgValue), mom(ot.mom){};
std::string givenLabel
Definition: PndMvaTools.h:71
std::string realLabel
Definition: PndMvaTools.h:67

Member Function Documentation

◆ operator<()

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

Definition at line 67 of file PndMvaTools.h.

67 { return (this->sgValue < ot.sgValue); };

◆ operator=()

ClassifierOutPuts& ClassifierOutPuts::operator= ( ClassifierOutPuts const &  ot)
inline

Definition at line 51 of file PndMvaTools.h.

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

52  {
53  // check for self-assignment
54  if (this != &ot) {
55  // Copy (deep)
56  this->realLabel = ot.realLabel;
57  this->givenLabel = ot.givenLabel;
58  this->sgValue = ot.sgValue;
59  this->bgValue = ot.bgValue;
60  this->mom = ot.mom;
61  }
62  return (*this);
63  };
std::string givenLabel
Definition: PndMvaTools.h:71
std::string realLabel
Definition: PndMvaTools.h:67

◆ operator>()

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

Definition at line 65 of file PndMvaTools.h.

References sgValue.

65 { return (this->sgValue > ot.sgValue); };

Member Data Documentation

◆ bgValue

float ClassifierOutPuts::bgValue

Definition at line 73 of file PndMvaTools.h.

Referenced by operator=().

◆ givenLabel

std::string ClassifierOutPuts::givenLabel

Definition at line 71 of file PndMvaTools.h.

Referenced by operator=().

◆ mom

float ClassifierOutPuts::mom

Definition at line 74 of file PndMvaTools.h.

Referenced by operator=().

◆ realLabel

std::string ClassifierOutPuts::realLabel

Definition at line 67 of file PndMvaTools.h.

Referenced by operator=().

◆ sgValue

float ClassifierOutPuts::sgValue

Definition at line 72 of file PndMvaTools.h.

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


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