Skip to content

Commit

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

prevent PAT photon iso variables from overwriting Reco ones
  • Loading branch information
cmsbuild committed Apr 10, 2015
2 parents dbacedc + a9bd1a1 commit 8f511c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DataFormats/PatCandidates/interface/Photon.h
Expand Up @@ -135,16 +135,16 @@ namespace pat {
float patParticleIso() const { return userIsolation(pat::PfAllParticleIso); }
/// Returns the isolation calculated with only the charged hadron
/// PFCandidates
float patChargedHadronIso() const { return userIsolation(pat::PfChargedHadronIso); }
float chargedHadronIso() const { return reco::Photon::chargedHadronIso(); }
/// Returns the isolation calculated with only the neutral hadron
/// PFCandidates
float patNeutralHadronIso() const { return userIsolation(pat::PfNeutralHadronIso); }
float neutralHadronIso() const { return reco::Photon::neutralHadronIso(); }
/// Returns the isolation calculated with only the gamma
/// PFCandidates
float patPhotonIso() 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 patPuChargedHadronIso() const { return userIsolation(pat::PfPUChargedHadronIso); }
float puChargedHadronIso() const { return userIsolation(pat::PfPUChargedHadronIso); }

/// Returns a user defined isolation value
float userIso(uint8_t index=0) const { return userIsolation(IsolationKeys(UserBaseIso + index)); }
Expand Down

0 comments on commit 8f511c4

Please sign in to comment.