CMS 3D CMS Logo

ToyJetCorrection Class Reference

Template algorithm to correct jet. More...

#include <RecoJets/JetAlgorithms/interface/ToyJetCorrection.h>

List of all members.

Public Member Functions

reco::CaloJet applyCorrection (const reco::CaloJet &fJet)
 ToyJetCorrection (double fScale=1.)
 Constructor.
 ~ToyJetCorrection ()

Private Attributes

double mScale


Detailed Description

Template algorithm to correct jet.

Author:
F.Ratnikov (UMd) Mar 2, 2006
Id
ToyJetCorrection.h,v 1.6 2007/08/20 17:53:32 fedor Exp

Definition at line 13 of file ToyJetCorrection.h.


Constructor & Destructor Documentation

ToyJetCorrection::ToyJetCorrection ( double  fScale = 1.  )  [inline]

Constructor.

Parameters:
fScale Scale factor for jet correction

Definition at line 18 of file ToyJetCorrection.h.

00018 : mScale (fScale) {}

ToyJetCorrection::~ToyJetCorrection (  )  [inline]

Definition at line 19 of file ToyJetCorrection.h.

00019 {}


Member Function Documentation

CaloJet ToyJetCorrection::applyCorrection ( const reco::CaloJet fJet  ) 

Definition at line 13 of file ToyJetCorrection.cc.

References reco::Particle::energy(), reco::Jet::getJetConstituents(), reco::CaloJet::getSpecific(), mScale, reco::Particle::px(), reco::Particle::py(), reco::Particle::pz(), and HLT_VtxMuL3::result.

00013                                                               {
00014   Jet::LorentzVector newP4 (fJet.px()*mScale, fJet.py()*mScale, 
00015                             fJet.pz()*mScale, fJet.energy()*mScale);
00016   CaloJet result (newP4, fJet.getSpecific (), fJet.getJetConstituents());
00017   return result;
00018 }


Member Data Documentation

double ToyJetCorrection::mScale [private]

Definition at line 22 of file ToyJetCorrection.h.

Referenced by applyCorrection().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:52 2009 for CMSSW by  doxygen 1.5.4