55 produces<edm::ValueMap<double>>();
86 auto isoMap = std::make_unique<edm::ValueMap<double>>();
88 std::vector<double> retV(emObjectHandle->size(), 0);
96 *ecalBarrelRecHitHandle,
108 *ecalEndcapRecHitHandle,
114 for (
size_t i = 0;
i < emObjectHandle->size(); ++
i) {
119 double isoValue = 0.;
126 ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i))) + ecalEndcapIsol.
getEtSum(&(emObjectHandle->at(
i)));
128 isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i))) +
130 }
else if (fabs(superClus->eta()) < 1.479) {
132 isoValue = ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i)));
134 isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i)));
137 isoValue = ecalEndcapIsol.
getEtSum(&(emObjectHandle->at(
i)));
139 isoValue = ecalEndcapIsol.
getEnergySum(&(emObjectHandle->at(
i)));
143 double subtractVal = 0;
146 subtractVal = superClus.
get()->rawEnergy() *
sin(2 * atan(
exp(-superClus.
get()->eta())));
148 subtractVal = superClus.
get()->rawEnergy();
151 isoValue -= subtractVal;
158 filler.insert(emObjectHandle, retV.begin(), retV.end());