6 const auto categoryCutStrings = conf.
getParameter<std::vector<std::string> >(
"categoryCuts");
10 <<
"wrong number of category cuts in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
24 const std::vector<std::string>& categoryCutStrings,
30 <<
"wrong number of category cuts in " <<
getName() <<
getTag() << std::endl;
32 for (
auto const&
cut : categoryCutStrings)
39 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
45 <<
"wrong number of weightfiles in ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
50 std::vector<int> variablesInCategory;
55 std::vector<std::string> variableNamesInCategory;
58 nVariables_.push_back(variableNamesInCategory.size());
63 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
71 <<
"Concerning ElectronMVAEstimatorRun2" <<
getTag() << std::endl
72 <<
"Variable " << variableNamesInCategory[
j] <<
" not found in variable definition file!" << std::endl;
80 const std::vector<float>& auxVariables,
81 int& iCategory)
const {
86 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
87 <<
" but appears to be neither" << std::endl;
95 std::vector<float>
vars;
102 std::cout <<
" *** Inside ElectronMVAEstimatorRun2" <<
getTag() << std::endl;
103 std::cout <<
" category " << iCategory << std::endl;
108 const float response =
gbrForests_.at(iCategory)->GetResponse(
vars.data());
111 std::cout <<
" ### MVA " << response << std::endl << std::endl;
122 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
123 <<
" but appears to be neither" << std::endl;
135 edm::LogWarning(
"MVA warning") <<
"category not defined for particle with pt " <<
electron.pt() <<
" GeV, eta "
136 <<
electron.superCluster()->eta() <<
" in ElectronMVAEstimatorRun2" <<
getTag();