58 #ifndef IClassifierReader__def
59 #define IClassifierReader__def
70 virtual double GetMvaValue(
const std::vector<double>& inputValues )
const = 0;
94 const char* inputVars[] = {
"track_deta",
"track_dlayer",
"track_layer",
"track_pT",
"approach_dist",
"vtx_radius",
"vtxTrack_dist",
"photon_m",
"photon_pT",
"cluster_prob" };
97 if (theInputVars.size() <= 0) {
98 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": empty input vector" << std::endl;
102 if (theInputVars.size() !=
fNvars) {
103 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in number of input values: "
104 << theInputVars.size() <<
" != " <<
fNvars << std::endl;
109 for (
size_t ivar = 0; ivar < theInputVars.size(); ivar++) {
110 if (theInputVars[ivar] != inputVars[ivar]) {
111 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": mismatch in input variable names" << std::endl
112 <<
" for variable [" << ivar <<
"]: " << theInputVars[ivar].c_str() <<
" != " << inputVars[ivar] << std::endl;
164 double GetMvaValue(
const std::vector<double>& inputValues )
const;
185 return 2*(x -
xmin)/(xmax - xmin) - 1.0;
193 double GetMvaValue__(
const std::vector<double>& inputValues )
const;
216 std::cout <<
"Problem in class \"" <<
fClassName <<
"\"::Initialize: mismatch in number of input values"
225 for (
size_t ivar = 0; ivar <
fNvars; ivar++) {
245 std::cout <<
"Problem in class \"" <<
fClassName <<
"\": cannot return classifier response"
246 <<
" because status is dirty" << std::endl;
252 std::vector<double> iV;
253 iV.reserve(inputValues.size());
255 for (std::vector<double>::const_iterator varIt = inputValues.begin();
256 varIt != inputValues.end(); varIt++, ivar++) {