77 #ifndef IClassifierReader__def
78 #define IClassifierReader__def
89 virtual double GetMvaValue(
const std::vector<double>& inputValues )
const = 0;
113 const char* inputVars[] = {
"track_deta",
"track_dlayer",
"track_layer",
"track_pT",
"vtx_radius",
"vtxTrack_dist",
"cluster_prob" };
116 if (theInputVars.size() <= 0) {
117 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": empty input vector" << std::endl;
121 if (theInputVars.size() !=
fNvars) {
122 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in number of input values: "
123 << theInputVars.size() <<
" != " <<
fNvars << std::endl;
128 for (
size_t ivar = 0; ivar < theInputVars.size(); ivar++) {
129 if (theInputVars[ivar] != inputVars[ivar]) {
130 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in input variable names" << std::endl
131 <<
" for variable [" << ivar <<
"]: " << theInputVars[ivar].c_str() <<
" != " << inputVars[ivar] << std::endl;
174 double GetMvaValue(
const std::vector<double>& inputValues )
const;
195 return 2*(x -
xmin)/(xmax - xmin) - 1.0;
203 double GetMvaValue__(
const std::vector<double>& inputValues )
const;
215 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": cannot return classifier response"
216 <<
" because status is dirty" << std::endl;
222 std::vector<double> iV;
223 iV.reserve(inputValues.size());
225 for (std::vector<double>::const_iterator varIt = inputValues.begin();
226 varIt != inputValues.end(); varIt++, ivar++) {