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::CorrectJet ( )
inline

Definition at line 18 of file CorrectJet.h.

18 {}

Member Function Documentation

◆ operator()()

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

Definition at line 22 of file CorrectJet.h.

References reco::JetCorrector::correction(), metsig::jet, m_corrector, and reco::Jet::scaleEnergy().

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:46
const reco::JetCorrector * m_corrector
Definition: CorrectJet.h:30

◆ setCorrector()

void CorrectJet::setCorrector ( const reco::JetCorrector corrector)
inline

Returns the corrected jet.

Definition at line 21 of file CorrectJet.h.

References pfClustersFromHGC3DClusters_cfi::corrector, and m_corrector.

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

Member Data Documentation

◆ m_corrector

const reco::JetCorrector* CorrectJet::m_corrector
private

Definition at line 30 of file CorrectJet.h.

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