22 EtaOrIeta_(config.getParameter< bool > (
"isIeta")) {
25 produces < reco::RecoEcalCandidateIsolationMap >();
26 produces < reco::RecoEcalCandidateIsolationMap >(
"sigmaIEtaIEta5x5");
38 desc.
add<
bool >((
"isIeta"),
true);
39 descriptions.
add((
"hltEgammaHLTClusterShapeProducer"), desc);
55 for(
unsigned int iRecoEcalCand = 0; iRecoEcalCand<recoecalcandHandle->size(); iRecoEcalCand++) {
59 std::vector<float> vCov ;
62 vCov = lazyTools.localCovariances( *(recoecalcandref->superCluster()->seed()) );
63 sigmaee =
sqrt(vCov[0]);
65 vCov = lazyTools.covariances( *(recoecalcandref->superCluster()->seed()) );
66 sigmaee =
sqrt(vCov[0]);
67 double EtaSC = recoecalcandref->eta();
68 if (EtaSC > 1.479) sigmaee = sigmaee - 0.02*(EtaSC - 2.3);
71 double sigmaee5x5 =
sqrt(lazyTools5x5.
localCovariances(*(recoecalcandref->superCluster()->seed()) )[0]);
72 clshMap.
insert(recoecalcandref, sigmaee);
73 clsh5x5Map.
insert(recoecalcandref,sigmaee5x5);
78 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clshMap));
79 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(clsh5x5Map),
"sigmaIEtaIEta5x5");
~EgammaHLTClusterShapeProducer()
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
EgammaHLTClusterShapeProducer(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void insert(const key_type &k, const data_type &v)
insert an association
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEEToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEBToken_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_