18 template <
typename T1>
24 drMax_(
config.getParameter<double>(
"drMax")),
25 drVetoBarrel_(
config.getParameter<double>(
"drVetoBarrel")),
26 drVetoEndcap_(
config.getParameter<double>(
"drVetoEndcap")),
27 etaStripBarrel_(
config.getParameter<double>(
"etaStripBarrel")),
28 etaStripEndcap_(
config.getParameter<double>(
"etaStripEndcap")),
29 energyBarrel_(
config.getParameter<double>(
"energyBarrel")),
30 energyEndcap_(
config.getParameter<double>(
"energyEndcap")) {
31 produces<edm::ValueMap<float>>();
34 template <
typename T1>
37 template <
typename T1>
42 desc.
add<
double>(
"drMax", 0.3);
43 desc.
add<
double>(
"drVetoBarrel", 0.0);
44 desc.
add<
double>(
"drVetoEndcap", 0.0);
45 desc.
add<
double>(
"etaStripBarrel", 0.0);
46 desc.
add<
double>(
"etaStripEndcap", 0.0);
47 desc.
add<
double>(
"energyBarrel", 0.0);
48 desc.
add<
double>(
"energyEndcap", 0.0);
52 template <
typename T1>
55 iEvent.getByToken(emObjectProducer_, emObjectHandle);
57 auto isoMap = std::make_unique<edm::ValueMap<float>>();
59 std::vector<float> retV(emObjectHandle->size(), 0);
62 iEvent.getByToken(pfClusterProducer_, clusterHandle);
65 drMax_, drVetoBarrel_, drVetoEndcap_, etaStripBarrel_, etaStripEndcap_, energyBarrel_, energyEndcap_);
67 for (
unsigned int iReco = 0; iReco < emObjectHandle->size(); iReco++) {
68 T1Ref candRef(emObjectHandle, iReco);
69 retV[iReco] = isoAlgo.
getSum(candRef, clusterHandle);
72 filler.insert(emObjectHandle, retV.begin(), retV.end());