Skip to content

Commit

Permalink
Merge pull request #8494 from gzevi/pat_photon_isolation_conflict_wit…
Browse files Browse the repository at this point in the history
…h_reco5

prevent PAT photon iso variables from overwriting Reco ones
  • Loading branch information
cmsbuild committed Mar 31, 2015
2 parents 5806bc6 + 7939cda commit be2f3fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataFormats/PatCandidates/interface/Photon.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ namespace pat {
float particleIso() const { return userIsolation(pat::PfAllParticleIso); }
/// Returns the isolation calculated with only the charged hadron
/// PFCandidates
float chargedHadronIso() const { return userIsolation(pat::PfChargedHadronIso); }
float chargedHadronIso() const { return reco::Photon::chargedHadronIso(); }
/// Returns the isolation calculated with only the neutral hadron
/// PFCandidates
float neutralHadronIso() const { return userIsolation(pat::PfNeutralHadronIso); }
float neutralHadronIso() const { return reco::Photon::neutralHadronIso(); }
/// Returns the isolation calculated with only the gamma
/// PFCandidates
float photonIso() const { return userIsolation(pat::PfGammaIso); }
float photonIso() const { return reco::Photon::photonIso(); }
/// Returns the isolation calculated with only the pile-up charged hadron
/// PFCandidates
float puChargedHadronIso() const { return userIsolation(pat::PfPUChargedHadronIso); }
Expand Down

0 comments on commit be2f3fa

Please sign in to comment.