CMS 3D CMS Logo

Public Member Functions | Private Attributes

CorrectJet Class Reference

#include <CorrectJet.h>

List of all members.

Public Member Functions

 CorrectJet ()
 CorrectJet (const std::string &corrector)
reco::Jet operator() (const reco::Jet &jet) const
 Returns the corrected jet.
void setEventSetup (const edm::EventSetup &es)

Private Attributes

const JetCorrectorm_corrector
std::string m_correctorName

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.

{}
CorrectJet::CorrectJet ( const std::string &  corrector) [inline]

Definition at line 20 of file CorrectJet.h.

                                         :
                        m_corrector(0), m_correctorName(corrector) {}

Member Function Documentation

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

Returns the corrected jet.

Definition at line 32 of file CorrectJet.h.

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

  {
    reco::Jet correctedJet(jet.p4(), jet.vertex());
    if (m_corrector)
      correctedJet.scaleEnergy(m_corrector->correction(jet));
    return correctedJet;
  }
void CorrectJet::setEventSetup ( const edm::EventSetup es) [inline]

Member Data Documentation

Definition at line 41 of file CorrectJet.h.

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

std::string CorrectJet::m_correctorName [private]

Definition at line 42 of file CorrectJet.h.

Referenced by setEventSetup().