47 : recoEcalCandidateProducer_(
51 EtaOrIeta_(
config.getParameter<
bool>(
"isIeta")) {
53 produces<reco::RecoEcalCandidateIsolationMap>();
54 produces<reco::RecoEcalCandidateIsolationMap>(
"sigmaIEtaIEta5x5");
64 desc.
add<
bool>((
"isIeta"),
true);
65 descriptions.
add((
"hltEgammaHLTClusterShapeProducer"), desc);
81 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) {
84 std::vector<float> vCov;
87 vCov = lazyTools.localCovariances(*(recoecalcandref->superCluster()->seed()));
88 sigmaee =
sqrt(vCov[0]);
90 vCov = lazyTools.covariances(*(recoecalcandref->superCluster()->seed()));
91 sigmaee =
sqrt(vCov[0]);
92 double EtaSC = recoecalcandref->eta();
94 sigmaee = sigmaee - 0.02 * (EtaSC - 2.3);
97 double sigmaee5x5 =
sqrt(lazyTools5x5.
localCovariances(*(recoecalcandref->superCluster()->seed()))[0]);
98 clshMap.
insert(recoecalcandref, sigmaee);
99 clsh5x5Map.
insert(recoecalcandref, sigmaee5x5);
102 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clshMap));
103 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clsh5x5Map),
"sigmaIEtaIEta5x5");