8 const auto categoryCutStrings = conf.
getParameter<std::vector<std::string> >(
"categoryCuts");
12 <<
"wrong number of category cuts in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
26 const std::vector<std::string>& categoryCutStrings,
33 <<
"wrong number of category cuts in " <<
getName() <<
getTag() << std::endl;
35 for (
auto const&
cut : categoryCutStrings)
42 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
48 <<
"wrong number of weightfiles in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
53 std::vector<int> variablesInCategory;
58 std::vector<std::string> variableNamesInCategory;
61 nVariables_.push_back(variableNamesInCategory.size());
66 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
74 <<
"Concerning ElectronMVAEstimatorRun2" <<
getTag() << std::endl
75 <<
"Variable " << variableNamesInCategory[
j] <<
" not found in variable definition file!" << std::endl;
83 const std::vector<float>& auxVariables,
84 int& iCategory)
const {
89 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
90 <<
" but appears to be neither" << std::endl;
98 std::vector<float>
vars;
106 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
107 std::cout <<
" category " << iCategory << std::endl;
112 const float response =
gbrForests_.at(iCategory)->GetResponse(
vars.data());
115 std::cout <<
" ### MVA " << response << std::endl << std::endl;
126 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
127 <<
" but appears to be neither" << std::endl;
139 edm::LogWarning(
"MVA warning") <<
"category not defined for particle with pt " <<
electron.pt() <<
" GeV, eta "
140 <<
electron.superCluster()->eta() <<
" in ElectronMVAEstimatorRun2" <<
getTag();