#include <RecoJets/JetAlgorithms/interface/ToyJetCorrection.h>
Public Member Functions | |
reco::CaloJet | applyCorrection (const reco::CaloJet &fJet) |
ToyJetCorrection (double fScale=1.) | |
Constructor. | |
~ToyJetCorrection () | |
Private Attributes | |
double | mScale |
Definition at line 13 of file ToyJetCorrection.h.
ToyJetCorrection::ToyJetCorrection | ( | double | fScale = 1. |
) | [inline] |
Constructor.
fScale | Scale factor for jet correction |
Definition at line 18 of file ToyJetCorrection.h.
00018 : mScale (fScale) {}
ToyJetCorrection::~ToyJetCorrection | ( | ) | [inline] |
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 }
double ToyJetCorrection::mScale [private] |