Skip to content

Commit

Permalink
Merge pull request #12942 from lgray/fix_pfeg_boolbyref
Browse files Browse the repository at this point in the history
Make lockTracks passed by reference
  • Loading branch information
cmsbuild committed Jan 16, 2016
2 parents 52d8e30 + a7e5d8a commit 54e9411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RecoParticleFlow/PFProducer/interface/PFEGammaFilters.h
Expand Up @@ -45,7 +45,7 @@ class PFEGammaFilters {
bool isElectronSafeForJetMET(const reco::GsfElectron &,
const reco::PFCandidate &,
const reco::Vertex &,
bool lockTracks);
bool& lockTracks);

bool isPhotonSafeForJetMET(const reco::Photon &,
const reco::PFCandidate &);
Expand Down
2 changes: 1 addition & 1 deletion RecoParticleFlow/PFProducer/src/PFEGammaFilters.cc
Expand Up @@ -130,7 +130,7 @@ bool PFEGammaFilters::isElectron(const reco::GsfElectron & electron) {
bool PFEGammaFilters::isElectronSafeForJetMET(const reco::GsfElectron & electron,
const reco::PFCandidate & pfcand,
const reco::Vertex & primaryVertex,
bool lockTracks) {
bool& lockTracks) {

bool debugSafeForJetMET = false;
bool isSafeForJetMET = true;
Expand Down

0 comments on commit 54e9411

Please sign in to comment.