Skip to content

Commit 344d809

Browse files
committed
Add optional inner cone/strip veto to some EcalPFClusterIsolation methods
1 parent eb45085 commit 344d809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RecoEgamma/EgammaIsolationAlgos/src/EcalPFClusterIsolation.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ EcalPFClusterIsolation<T1>::~EcalPFClusterIsolation() {}
3737
template <typename T1>
3838
bool EcalPFClusterIsolation<T1>::computedRVeto(T1Ref candRef, reco::PFClusterRef pfclu) {
3939
float dR2 = deltaR2(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
40-
if (dR2 > (drMax_ * drMax_))
40+
if (dR2 > (drMax_ * drMax_) || dR2 < drVeto2_)
4141
return false;
4242

4343
if (candRef->superCluster().isNonnull()) {
@@ -108,7 +108,7 @@ double EcalPFClusterIsolation<T1>::getSum(T1Ref ref, edm::Handle<std::vector<rec
108108
template <typename T1>
109109
bool EcalPFClusterIsolation<T1>::computedRVeto(T1 cand, reco::PFClusterRef pfclu) {
110110
float dR2 = deltaR2(cand.eta(), cand.phi(), pfclu->eta(), pfclu->phi());
111-
if (dR2 > (drMax_ * drMax_))
111+
if (dR2 > (drMax_ * drMax_) || dR2 < drVeto2_)
112112
return false;
113113

114114
if (cand.superCluster().isNonnull()) {

0 commit comments

Comments
 (0)