Skip to content

Commit

Permalink
Update HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Marino Missiroli <m.missiroli@cern.ch>
  • Loading branch information
arsahasransu and missirol authored Jul 11, 2022
1 parent b6db4e8 commit e60a4ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ void HLTScoutingEgammaProducer::produce(edm::StreamID sid, edm::Event& iEvent, e
if (HoE > egammaHoverECut)
continue;

auto const sinin = candidate.superCluster()->energy() != 0. ? (*SigmaIEtaIEtaMap)[candidateRef] : 999.;
if (not absEtaBinUpperEdges.empty()) {

auto bIt = std::lower_bound(absEtaBinUpperEdges.begin(), absEtaBinUpperEdges.end(), std::abs(candidate.eta()));
auto etabinpos = std::distance(absEtaBinUpperEdges.begin(), bIt);
auto const sinin = candidate.superCluster()->energy() != 0. ? (*SigmaIEtaIEtaMap)[candidateRef] : 999.;
auto etaBinIdx = std::distance(absEtaBinUpperEdges.begin(), std::lower_bound(absEtaBinUpperEdges.begin(), absEtaBinUpperEdges.end(), std::abs(candidate.eta())));

if (etabinpos >= 0)
if (sinin > egammaSigmaIEtaIEtaCut[etabinpos])
if (sinin > egammaSigmaIEtaIEtaCut[etaBinIdx])
continue;
}

float d0 = 0.0;
float dz = 0.0;
Expand Down

0 comments on commit e60a4ad

Please sign in to comment.