CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EGRegressionModifierHelpers.cc
Go to the documentation of this file.
2 
4  std::string const& regressionKey,
5  std::string const& uncertaintyKey,
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
bool getData(T &iHolder) const
Definition: EventSetup.h:128
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > sigma
std::vector< const GBRForestD * > retrieveGBRForests(edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)
tuple config
parse the configuration file