CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
EGRegressionModifierHelpers.cc File Reference
#include "RecoEgamma/EgammaTools/plugins/EGRegressionModifierHelpers.h"

Go to the source code of this file.

Functions

std::vector< const GBRForestD * > retrieveGBRForests (edm::EventSetup const &evs, std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &tokens)
 

Function Documentation

std::vector<const GBRForestD*> retrieveGBRForests ( edm::EventSetup const &  evs,
std::vector< edm::ESGetToken< GBRForestD, GBRDWrapperRcd >> const &  tokens 
)

Definition at line 15 of file EGRegressionModifierHelpers.cc.

References edm::EventSetup::getData(), mps_monitormerge::items, and unpackBuffers-CaloStage2::token.

Referenced by EGRegressionModifierV2::setEventContent(), and EGRegressionModifierV1::setEventContent().

16  {
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 }