64 #ifndef IClassifierReader__def
65 #define IClassifierReader__def
76 virtual double GetMvaValue(
const std::vector<double>& inputValues )
const = 0;
93 ReadCuts( std::vector<std::string>& theInputVars )
100 const char* inputVars[] = {
"track_layer",
"track_pT",
"track_dca",
"cluster_prob" };
103 if (theInputVars.size() <= 0) {
104 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": empty input vector" << std::endl;
108 if (theInputVars.size() !=
fNvars) {
109 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in number of input values: "
110 << theInputVars.size() <<
" != " <<
fNvars << std::endl;
115 for (
size_t ivar = 0; ivar < theInputVars.size(); ivar++) {
116 if (theInputVars[ivar] != inputVars[ivar]) {
117 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in input variable names" << std::endl
118 <<
" for variable [" << ivar <<
"]: " << theInputVars[ivar].c_str() <<
" != " << inputVars[ivar] << std::endl;
152 double GetMvaValue(
const std::vector<double>& inputValues )
const;
173 return 2*(x -
xmin)/(xmax - xmin) - 1.0;
181 double GetMvaValue__(
const std::vector<double>& inputValues )
const;
193 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": cannot return classifier response"
194 <<
" because status is dirty" << std::endl;
200 std::vector<double> iV;
201 iV.reserve(inputValues.size());
203 for (std::vector<double>::const_iterator varIt = inputValues.begin();
204 varIt != inputValues.end(); varIt++, ivar++) {