From 2c4a08dcb94ef43891ce5a900cd049ab67060da9 Mon Sep 17 00:00:00 2001 From: swagata87 Date: Fri, 8 Mar 2024 14:06:24 +0100 Subject: [PATCH 1/2] make R9 producer run in phase2 --- .../EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc b/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc index a2781c65796cf..f989e596fdd92 100644 --- a/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc +++ b/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc @@ -82,7 +82,11 @@ void EgammaHLTR9IDProducer::produce(edm::StreamID sid, edm::Event& iEvent, const reco::RecoEcalCandidateIsolationMap r95x5Map(recoecalcandHandle); for (unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) { reco::RecoEcalCandidateRef recoecalcandref(recoecalcandHandle, iRecoEcalCand); //-recoecalcandHandle->begin()); - + if (recoecalcandref->superCluster()->seed()->seed().det() != DetId::Ecal) { //HGCAL, skip for now + r9Map.insert(recoecalcandref, 0); + r95x5Map.insert(recoecalcandref, 0); + continue; + } float r9 = -1; float r95x5 = -1; From 4673abac94b56bc3a761d145bcf7c8e5e3d14b0c Mon Sep 17 00:00:00 2001 From: swagata87 Date: Sat, 9 Mar 2024 10:52:24 +0100 Subject: [PATCH 2/2] ensure that ECAL R9 filter always pass in HGCAL --- .../EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc b/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc index f989e596fdd92..ec051ab079c49 100644 --- a/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc +++ b/RecoEgamma/EgammaHLTProducers/plugins/EgammaHLTR9IDProducer.cc @@ -83,8 +83,8 @@ void EgammaHLTR9IDProducer::produce(edm::StreamID sid, edm::Event& iEvent, const for (unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) { reco::RecoEcalCandidateRef recoecalcandref(recoecalcandHandle, iRecoEcalCand); //-recoecalcandHandle->begin()); if (recoecalcandref->superCluster()->seed()->seed().det() != DetId::Ecal) { //HGCAL, skip for now - r9Map.insert(recoecalcandref, 0); - r95x5Map.insert(recoecalcandref, 0); + r9Map.insert(recoecalcandref, 1.0); + r95x5Map.insert(recoecalcandref, 1.0); continue; } float r9 = -1;