18 std::vector<float>
output = {
109 for (
auto&
name : conf.
getParameter< std::vector<std::string> >(
"ModelNames") )
111 names_.push_back(
name);
119 thresholds_.push_back(
thresh);
121 if ( names_.size() != models_.size() ) {
123 <<
"'ModelNames' size (" << names_.size()
124 <<
") != 'ModelWeights' size (" << models_.size()
127 if ( models_.size() != thresholds_.size() ) {
129 <<
"'ModelWeights' size (" << models_.size()
130 <<
") != 'ModelThresholds' size (" << thresholds_.size()
142 std::vector<std::string>::const_iterator iter =
std::find( names_.begin(),
145 if ( iter != names_.end() ) {
148 features.
set(ele,rho);
149 std::vector<float>
inputs = features.get();
150 return models_.at(index)->GetResponse( inputs.data() );
153 <<
"'Name given: '" << name
154 <<
"'. Check against configuration file.\n";
T getParameter(std::string const &) const
float shape_full5x5_circularity_
bool isNonnull() const
Checks for non-null.
float shape_full5x5_sigmaIphiIphi_
std::vector< float > get()
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double eval(const std::string &name, const reco::GsfElectronRef &, double rho) const
float shape_full5x5_sigmaIetaIeta_
HeavyObjectCache(const edm::ParameterSet &)
float shape_full5x5_HoverE_
void set(const reco::GsfElectronRef &ele, double rho)