73 #ifndef IClassifierReader__def
74 #define IClassifierReader__def
85 virtual double GetMvaValue(
const std::vector<double>& inputValues )
const = 0;
108 const char* inputVars[] = {
"track_deta",
"track_pT",
"approach_dist",
"vtx_radius",
"vtx_chi2",
"cluster_prob" };
111 if (theInputVars.size() <= 0) {
112 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": empty input vector" << std::endl;
116 if (theInputVars.size() !=
fNvars) {
117 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in number of input values: "
118 << theInputVars.size() <<
" != " <<
fNvars << std::endl;
123 for (
size_t ivar = 0; ivar < theInputVars.size(); ivar++) {
124 if (theInputVars[ivar] != inputVars[ivar]) {
125 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in input variable names" << std::endl
126 <<
" for variable [" << ivar <<
"]: " << theInputVars[ivar].c_str() <<
" != " << inputVars[ivar] << std::endl;
166 double GetMvaValue(
const std::vector<double>& inputValues )
const override;
185 return 2*(x -
xmin)/(xmax - xmin) - 1.0;
193 double GetMvaValue__(
const std::vector<double>& inputValues )
const;
205 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": cannot return classifier response"
206 <<
" because status is dirty" << std::endl;