RecoEgamma
EgammaTools
plugins
EGRegressionModifierHelpers.cc
Go to the documentation of this file.
1
#include "
RecoEgamma/EgammaTools/plugins/EGRegressionModifierHelpers.h
"
2
3
std::vector<const GBRForestD*>
retrieveGBRForests
(
edm::EventSetup
const
& evs, std::vector<std::string>
const
&
names
) {
4
std::vector<const GBRForestD*>
items
;
5
edm::ESHandle<GBRForestD>
handle
;
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
}
retrieveGBRForests
std::vector< const GBRForestD * > retrieveGBRForests(edm::EventSetup const &evs, std::vector< std::string > const &names)
Definition:
EGRegressionModifierHelpers.cc:3
EGRegressionModifierHelpers.h
patZpeak.handle
handle
Definition:
patZpeak.py:23
GBRDWrapperRcd
Definition:
GBRDWrapperRcd.h:24
mps_monitormerge.items
list items
Definition:
mps_monitormerge.py:29
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
names
const std::string names[nVars_]
Definition:
PhotonIDValueMapProducer.cc:122
edm::ESHandle
Definition:
DTSurvey.h:22
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.16