Skip to content

Commit

Permalink
split neutral isolation: ph and neutralHadron
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Aug 4, 2023
1 parent 60e75b5 commit e1e303a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions NanoAOD/plugins/MesonProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1835,10 +1835,11 @@ MesonProducer::computeCandIsolation(const pat::PackedCandidate& pfCand1, const p
if (particleType==0) {
if (pfCandIso.charge() == 0 ) continue; // for chargedIsolation
if (!pfCandIso.hasTrackDetails()) continue;
} else if (particleType==22) {
if (pfCandIso.charge() != 0 ) continue; // for neutralIsolation MARIA
} else if (particleType==22 and pfCandIso.pdgId()==22) {
if (pfCandIso.charge() != 0 ) continue; // only photons for neutralIsolation
} else {
if (pfCandIso.charge() != 0 ) continue; // for neutralIsolation MARIA
if (pfCandIso.pdgId() == 22) continue; // only neutral hadrons
if (pfCandIso.charge() != 0 ) continue; // for neutralIsolation
}
if (pfCandIso.pt()<minPt) continue;
if (pfCandIso.vertexRef().key()!=primaryVertexIndex) continue;
Expand Down

0 comments on commit e1e303a

Please sign in to comment.