9 const auto categoryCutStrings = conf.
getParameter<std::vector<std::string> >(
"categoryCuts");
13 <<
"wrong number of category cuts in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
27 const std::vector<std::string>& categoryCutStrings,
34 <<
"wrong number of category cuts in " <<
getName() <<
getTag() << std::endl;
36 for (
auto const&
cut : categoryCutStrings)
43 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
49 <<
"wrong number of weightfiles in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
54 std::vector<int> variablesInCategory;
59 std::vector<std::string> variableNamesInCategory;
62 nVariables_.push_back(variableNamesInCategory.size());
67 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
75 <<
"Concerning ElectronMVAEstimatorRun2" <<
getTag() << std::endl
76 <<
"Variable " << variableNamesInCategory[
j] <<
" not found in variable definition file!" << std::endl;
84 const std::vector<float>& auxVariables,
85 int& iCategory)
const {
90 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
91 <<
" but appears to be neither" << std::endl;
99 std::vector<float>
vars;
107 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
108 std::cout <<
" category " << iCategory << std::endl;
113 const float response =
gbrForests_.at(iCategory)->GetResponse(
vars.data());
116 std::cout <<
" ### MVA " << response << std::endl << std::endl;
127 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
128 <<
" but appears to be neither" << std::endl;
140 edm::LogWarning(
"MVA warning") <<
"category not defined for particle with pt " <<
electron.pt() <<
" GeV, eta "
141 <<
electron.superCluster()->eta() <<
" in ElectronMVAEstimatorRun2" <<
getTag();