14 namespace lowptgsfeleseed {
19 for (
auto&
name : conf.
getParameter<std::vector<std::string> >(
"ModelNames")) {
30 <<
"'ModelNames' size (" <<
names_.size() <<
") != 'ModelWeights' size (" <<
models_.size() <<
").\n";
34 <<
"'ModelWeights' size (" <<
models_.size() <<
") != 'ModelThresholds' size (" <<
thresholds_.size()
48 if (iter !=
names_.end()) {
50 std::vector<float>
inputs =
features(ecal, hcal, rho, spot, ecalTools);
53 ecal.
setMVA(pass, output, index);
57 <<
"'Name given: '" << name <<
"'. Check against configuration file.\n";
std::vector< std::string > names_
std::vector< double > thresholds_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void setMVA(bool accepted, float mva, unsigned n=0)
std::vector< float > features(const reco::PreId &ecal, const reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools)
HeavyObjectCache(const edm::ParameterSet &)
bool eval(const std::string &name, reco::PreId &ecal, reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools) const
T getParameter(std::string const &) const
std::vector< std::unique_ptr< const GBRForest > > models_