46 : recoEcalCandidateProducer_(
50 EtaOrIeta_(
config.getParameter<
bool>(
"isIeta")) {
52 produces<reco::RecoEcalCandidateIsolationMap>();
53 produces<reco::RecoEcalCandidateIsolationMap>(
"sigmaIEtaIEta5x5");
63 desc.
add<
bool>((
"isIeta"),
true);
64 descriptions.
add((
"hltEgammaHLTClusterShapeProducer"), desc);
80 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) {
82 if (recoecalcandref->superCluster()->seed()->seed().det() !=
DetId::Ecal) {
83 clshMap.
insert(recoecalcandref, 0);
84 clsh5x5Map.
insert(recoecalcandref, 0);
88 std::vector<float> vCov;
91 vCov = lazyTools.localCovariances(*(recoecalcandref->superCluster()->seed()));
92 sigmaee =
sqrt(vCov[0]);
94 vCov = lazyTools.covariances(*(recoecalcandref->superCluster()->seed()));
95 sigmaee =
sqrt(vCov[0]);
96 double EtaSC = recoecalcandref->eta();
98 sigmaee = sigmaee - 0.02 * (EtaSC - 2.3);
101 double sigmaee5x5 =
sqrt(lazyTools5x5.
localCovariances(*(recoecalcandref->superCluster()->seed()))[0]);
102 clshMap.
insert(recoecalcandref, sigmaee);
103 clsh5x5Map.
insert(recoecalcandref, sigmaee5x5);
106 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clshMap));
107 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clsh5x5Map),
"sigmaIEtaIEta5x5");