CMS 3D CMS Logo

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 18 of file CorrectJet.h.

18 {}

Member Function Documentation

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

Definition at line 22 of file CorrectJet.h.

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

22  {
23  reco::Jet correctedJet(jet.p4(), jet.vertex());
24  if (m_corrector)
25  correctedJet.scaleEnergy(m_corrector->correction(jet));
26  return correctedJet;
27  }
virtual void scaleEnergy(double fScale)
scale energy of the jet
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:30
const Point & vertex() const override
vertex position (overwritten by PF...)
const LorentzVector & p4() const final
four-momentum Lorentz vector
void CorrectJet::setCorrector ( const reco::JetCorrector corrector)
inline

Returns the corrected jet.

Definition at line 21 of file CorrectJet.h.

References mitigatedMETSequence_cff::corrector, and m_corrector.

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

const reco::JetCorrector * m_corrector
Definition: CorrectJet.h:30

Member Data Documentation

const reco::JetCorrector* CorrectJet::m_corrector
private

Definition at line 30 of file CorrectJet.h.

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