57 produces<edm::ValueMap<double>>();
90 auto isoMap = std::make_unique<edm::ValueMap<double>>();
92 std::vector<double> retV(emObjectHandle->size(), 0);
100 *ecalBarrelRecHitHandle,
112 *ecalEndcapRecHitHandle,
118 for (
size_t i = 0;
i < emObjectHandle->size(); ++
i) {
123 double isoValue = 0.;
130 ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i))) + ecalEndcapIsol.
getEtSum(&(emObjectHandle->at(
i)));
132 isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i))) +
134 }
else if (fabs(superClus->eta()) < 1.479) {
136 isoValue = ecalBarrelIsol.getEtSum(&(emObjectHandle->at(
i)));
138 isoValue = ecalBarrelIsol.getEnergySum(&(emObjectHandle->at(
i)));
141 isoValue = ecalEndcapIsol.
getEtSum(&(emObjectHandle->at(
i)));
143 isoValue = ecalEndcapIsol.
getEnergySum(&(emObjectHandle->at(
i)));
147 double subtractVal = 0;
150 subtractVal = superClus.
get()->rawEnergy() *
sin(2 * atan(
exp(-superClus.
get()->eta())));
152 subtractVal = superClus.
get()->rawEnergy();
155 isoValue -= subtractVal;
162 filler.insert(emObjectHandle, retV.begin(), retV.end());