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)) {
8  mean.push_back(cc.esConsumes<GBRForestD, GBRDWrapperRcd>(edm::ESInputTag("", name)));
9  }
10  for (auto const& name : config.getParameter<std::vector<std::string>>(uncertaintyKey)) {
11  sigma.push_back(cc.esConsumes<GBRForestD, GBRDWrapperRcd>(edm::ESInputTag("", name)));
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)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > mean
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
Definition: config.py:1
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > sigma
std::vector< const GBRForestD * > retrieveGBRForests(edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)