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 }
edm::ESInputTag
Definition: ESInputTag.h:87
EGRegressionModifierHelpers.h
regressionModifier_cfi.regressionKey
regressionKey
Definition: regressionModifier_cfi.py:189
EGRegressionModifierCondTokens::EGRegressionModifierCondTokens
EGRegressionModifierCondTokens(edm::ParameterSet const &config, std::string const &regressionKey, std::string const &uncertaintyKey, edm::ConsumesCollector &cc)
Definition: EGRegressionModifierHelpers.cc:3
GBRDWrapperRcd
Definition: GBRDWrapperRcd.h:24
mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
retrieveGBRForests
std::vector< const GBRForestD * > retrieveGBRForests(edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)
Definition: EGRegressionModifierHelpers.cc:15
config
Definition: config.py:1
EGRegressionModifierCondTokens::mean
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > mean
Definition: EGRegressionModifierHelpers.h:18
GBRForestD
Definition: GBRForestD.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
regressionModifier_cfi.uncertaintyKey
uncertaintyKey
Definition: regressionModifier_cfi.py:191
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::EventSetup
Definition: EventSetup.h:58
cc
edm::ESGetToken< GBRForestD, GBRDWrapperRcd >
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
EGRegressionModifierCondTokens::sigma
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd > > sigma
Definition: EGRegressionModifierHelpers.h:19
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316