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

◆ retrieveGBRForests()

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

Definition at line 3 of file EGRegressionModifierHelpers.cc.

3  {
4  std::vector<const GBRForestD*> items;
6 
7  for (auto const& name : names) {
8  evs.get<GBRDWrapperRcd>().get(name, handle);
9  items.push_back(handle.product());
10  }
11 
12  return items;
13 }

References edm::EventSetup::get(), get, patZpeak::handle, mps_monitormerge::items, Skims_PA_cff::name, and names.

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

patZpeak.handle
handle
Definition: patZpeak.py:23
GBRDWrapperRcd
Definition: GBRDWrapperRcd.h:24
mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:122
edm::ESHandle
Definition: DTSurvey.h:22
get
#define get
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17