CMS 3D CMS Logo

Functions
EGRegressionModifierHelpers.h File Reference
#include "CondFormats/DataRecord/interface/GBRDWrapperRcd.h"
#include "CondFormats/EgammaObjects/interface/GBRForestD.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include <string>
#include <vector>

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