Skip to content

Commit

Permalink
Adding accessors for setting either pt or e in correctors
Browse files Browse the repository at this point in the history
  • Loading branch information
rappoccio committed Feb 7, 2014
1 parent 7d19af0 commit a89d1a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ double L1FastjetCorrector::correction(const reco::Jet& fJet,
double result(1.0);
mCorrector->setJetEta(fJet.eta());
mCorrector->setJetPt(fJet.pt());
mCorrector->setJetE(fJet.energy());
mCorrector->setJetA(fJet.jetArea());
mCorrector->setRho(*rho);
result = mCorrector->getCorrection();
Expand Down
1 change: 1 addition & 0 deletions JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ double L1OffsetCorrector::correction(const reco::Jet& fJet,
if (NPV > 0) {
mCorrector->setJetEta(fJet.eta());
mCorrector->setJetPt(fJet.pt());
mCorrector->setJetE(fJet.energy());
mCorrector->setNPV(NPV);
result = mCorrector->getCorrection();
}
Expand Down

0 comments on commit a89d1a1

Please sign in to comment.