CMS 3D CMS Logo

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< std::string > const &names)
 

Function Documentation

std::vector<const GBRForestD*> retrieveGBRForests ( edm::EventSetup const &  evs,
std::vector< std::string > const &  names 
)

Definition at line 3 of file EGRegressionModifierHelpers.cc.

References edm::EventSetup::get(), cmsBatch::handle, mps_monitormerge::items, dataset::name, and edm::ESHandle< T >::product().

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

4 {
5  std::vector<const GBRForestD*> items;
7 
8  for(auto const& name : names) {
9  evs.get<GBRDWrapperRcd>().get(name, handle);
10  items.push_back(handle.product());
11  }
12 
13  return items;
14 }
const std::string names[nVars_]
T const * product() const
Definition: ESHandle.h:86