CMS 3D CMS Logo

EGRegressionModifierHelpers.cc
Go to the documentation of this file.
2 
7  for (auto const& name : config.getParameter<std::vector<std::string>>(regressionKey)) {
9  }
10  for (auto const& name : config.getParameter<std::vector<std::string>>(uncertaintyKey)) {
12  }
13 }
14 
15 std::vector<const GBRForestD*> retrieveGBRForests(
17  std::vector<const GBRForestD*> items;
18 
19  items.reserve(tokens.size());
20  for (auto const& token : tokens) {
21  items.push_back(&evs.getData(token));
22  }
23 
24  return items;
25 }
EGRegressionModifierCondTokens(edm::ParameterSet const &config, std::string const &regressionKey, std::string const &uncertaintyKey, edm::ConsumesCollector &cc)
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > mean
Definition: config.py:1
bool getData(T &iHolder) const
Definition: EventSetup.h:122
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > sigma
std::vector< const GBRForestD * > retrieveGBRForests(edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)