Skip to content

Commit

Permalink
Merge pull request #37156 from jainshilpi/BHtaggerImplementation_12_3…
Browse files Browse the repository at this point in the history
…_0pre4_codechecks

Fix for the access of haloMVATaggerVal in the Run 1+2 files
  • Loading branch information
cmsbuild authored Mar 8, 2022
2 parents 2105cce + 4939ca6 commit f0a874e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion DataFormats/EgammaCandidates/interface/Photon.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ namespace reco {
struct SaturationInfo;

/// default constructor
Photon() : RecoCandidate() { pixelSeed_ = false; }
Photon() : RecoCandidate() {
pixelSeed_ = false;
haloTaggerMVAVal_ = 99;
}

/// copy constructor
Photon(const Photon&);
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/EgammaCandidates/src/Photon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Photon::Photon(const LorentzVector& p4, const Point& caloPos, const PhotonCoreRe
caloPosition_(caloPos),
photonCore_(core),
pixelSeed_(false),
haloTaggerMVAVal_(-999) {}
haloTaggerMVAVal_(99) {}

Photon::Photon(const Photon& rhs)
: RecoCandidate(rhs),
Expand Down

0 comments on commit f0a874e

Please sign in to comment.