CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1FastjetCorrectorImpl Class Reference

#include <L1FastjetCorrectorImpl.h>

Inheritance diagram for L1FastjetCorrectorImpl:
reco::JetCorrectorImpl

Public Types

typedef L1FastjetCorrectorImplMaker Maker
 
- Public Types inherited from reco::JetCorrectorImpl
typedef reco::Particle::LorentzVector LorentzVector
 

Public Member Functions

double correction (const LorentzVector &fJet) const override
 apply correction using Jet information only More...
 
double correction (const reco::Jet &fJet) const override
 apply correction using Jet information only More...
 
 L1FastjetCorrectorImpl (std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector, double rho)
 
bool refRequired () const override
 if correction needs the jet reference More...
 
- Public Member Functions inherited from reco::JetCorrectorImpl
virtual double correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef) const
 apply correction using Ref More...
 
virtual double correction (const reco::Jet &fJet, const edm::RefToBase< reco::Jet > &fJetRef, LorentzVector &corrected) const
 Apply vectorial correction. More...
 
 JetCorrectorImpl ()
 
virtual bool vectorialCorrection () const
 if vectorial correction is provided More...
 
virtual ~JetCorrectorImpl ()
 

Private Attributes

std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
 
double rho_
 

Detailed Description

Definition at line 33 of file L1FastjetCorrectorImpl.h.

Member Typedef Documentation

Definition at line 36 of file L1FastjetCorrectorImpl.h.

Constructor & Destructor Documentation

L1FastjetCorrectorImpl::L1FastjetCorrectorImpl ( std::shared_ptr< FactorizedJetCorrectorCalculator const >  corrector,
double  rho 
)
inline

Definition at line 39 of file L1FastjetCorrectorImpl.h.

39  :
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_

Member Function Documentation

double L1FastjetCorrectorImpl::correction ( const LorentzVector fJet) const
overridevirtual

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 63 of file L1FastjetCorrectorImpl.cc.

References Exception.

64 {
65  throw cms::Exception("EventRequired")
66  <<"Wrong interface correction(LorentzVector), event required!";
67  return 1.0;
68 }
double L1FastjetCorrectorImpl::correction ( const reco::Jet fJet) const
overridevirtual

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 72 of file L1FastjetCorrectorImpl.cc.

References JetCorrectorImplMakerBase::corrector_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), reco::Jet::jetArea(), reco::LeafCandidate::pt(), FactorizedJetCorrectorCalculator::VariableValues::setJetA(), FactorizedJetCorrectorCalculator::VariableValues::setJetE(), FactorizedJetCorrectorCalculator::VariableValues::setJetEta(), FactorizedJetCorrectorCalculator::VariableValues::setJetPt(), FactorizedJetCorrectorCalculator::VariableValues::setRho(), and MuonErrorMatrixValues_cff::values.

73 {
75  values.setJetEta(fJet.eta());
76  values.setJetPt(fJet.pt());
77  values.setJetE(fJet.energy());
78  values.setJetA(fJet.jetArea());
79  values.setRho(rho_);
80  return corrector_->getCorrection(values);
81 }
double eta() const final
momentum pseudorapidity
double pt() const final
transverse momentum
double energy() const final
energy
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
virtual float jetArea() const
get jet area
Definition: Jet.h:105
bool L1FastjetCorrectorImpl::refRequired ( ) const
inlineoverridevirtual

if correction needs the jet reference

Implements reco::JetCorrectorImpl.

Definition at line 50 of file L1FastjetCorrectorImpl.h.

50 { return false; }

Member Data Documentation

std::shared_ptr<FactorizedJetCorrectorCalculator const> L1FastjetCorrectorImpl::corrector_
private

Definition at line 55 of file L1FastjetCorrectorImpl.h.

double L1FastjetCorrectorImpl::rho_
private

Definition at line 54 of file L1FastjetCorrectorImpl.h.