CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CorrectJet.h
Go to the documentation of this file.
1 #ifndef CorrectJet_H
2 #define CorrectJet_H
3 
4 #include <string>
5 
9 
16 class CorrectJet {
17 
18  public:
20 
24  {
25  reco::Jet correctedJet(jet.p4(), jet.vertex());
26  if (m_corrector)
27  correctedJet.scaleEnergy(m_corrector->correction(jet));
28  return correctedJet;
29  }
30 
31  private:
33 };
34 
35 #endif
virtual void scaleEnergy(double fScale)
scale energy of the jet
virtual const Point & vertex() const
vertex position (overwritten by PF...)
Base class for all types of Jets.
Definition: Jet.h:20
double correction(const LorentzVector &fJet) const
get correction using Jet information only
Definition: JetCorrector.h:47
const reco::JetCorrector * m_corrector
Definition: CorrectJet.h:32
tuple corrector
Definition: mvaPFMET_cff.py:86
reco::Jet operator()(const reco::Jet &jet) const
Definition: CorrectJet.h:23
void setCorrector(const reco::JetCorrector *corrector)
Returns the corrected jet.
Definition: CorrectJet.h:22
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99