CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CorrectJet Class Reference

#include <CorrectJet.h>

Public Member Functions

 CorrectJet ()
 
reco::Jet operator() (const reco::Jet &jet) const
 
void setCorrector (const reco::JetCorrector *corrector)
 Returns the corrected jet. More...
 

Private Attributes

const reco::JetCorrectorm_corrector
 

Detailed Description

Correct jets

Definition at line 16 of file CorrectJet.h.

Constructor & Destructor Documentation

CorrectJet::CorrectJet ( )
inline

Definition at line 19 of file CorrectJet.h.

19 {}

Member Function Documentation

reco::Jet CorrectJet::operator() ( const reco::Jet jet) const
inline

Definition at line 23 of file CorrectJet.h.

References reco::JetCorrector::correction(), m_corrector, reco::LeafCandidate::p4(), reco::Jet::scaleEnergy(), and reco::LeafCandidate::vertex().

24  {
25  reco::Jet correctedJet(jet.p4(), jet.vertex());
26  if (m_corrector)
27  correctedJet.scaleEnergy(m_corrector->correction(jet));
28  return correctedJet;
29  }
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
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
void CorrectJet::setCorrector ( const reco::JetCorrector corrector)
inline

Returns the corrected jet.

Definition at line 22 of file CorrectJet.h.

References mvaPFMET_cff::corrector, and m_corrector.

Referenced by BTagPerformanceAnalyzerMC::getJetWithFlavour(), and MatchJet::matchCollections().

const reco::JetCorrector * m_corrector
Definition: CorrectJet.h:32
tuple corrector
Definition: mvaPFMET_cff.py:88

Member Data Documentation

const reco::JetCorrector* CorrectJet::m_corrector
private

Definition at line 32 of file CorrectJet.h.

Referenced by operator()(), and setCorrector().