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 ()
 
 JetCorrectorImpl (const JetCorrectorImpl &)=delete
 
const JetCorrectorImploperator= (const JetCorrectorImpl &)=delete
 
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 34 of file L1FastjetCorrectorImpl.h.

Member Typedef Documentation

◆ Maker

Definition at line 36 of file L1FastjetCorrectorImpl.h.

Constructor & Destructor Documentation

◆ L1FastjetCorrectorImpl()

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

Definition at line 39 of file L1FastjetCorrectorImpl.h.

Member Function Documentation

◆ correction() [1/2]

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

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 60 of file L1FastjetCorrectorImpl.cc.

References Exception.

60  {
61  throw cms::Exception("EventRequired") << "Wrong interface correction(LorentzVector), event required!";
62  return 1.0;
63 }

◆ correction() [2/2]

double L1FastjetCorrectorImpl::correction ( const reco::Jet fJet) const
overridevirtual

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 66 of file L1FastjetCorrectorImpl.cc.

References corrector_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), reco::Jet::jetArea(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), rho_, and contentValuesCheck::values.

66  {
68  values.setJetEta(fJet.eta());
69  values.setJetPt(fJet.pt());
70  values.setJetE(fJet.energy());
71  values.setJetA(fJet.jetArea());
72  values.setRho(rho_);
73  values.setJetPhi(fJet.phi());
74  return corrector_->getCorrection(values);
75 }
double pt() const final
transverse momentum
virtual float jetArea() const
get jet area
Definition: Jet.h:103
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
double phi() const final
momentum azimuthal angle
double energy() const final
energy
double eta() const final
momentum pseudorapidity

◆ refRequired()

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

◆ corrector_

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

Definition at line 55 of file L1FastjetCorrectorImpl.h.

Referenced by correction().

◆ rho_

double L1FastjetCorrectorImpl::rho_
private

Definition at line 54 of file L1FastjetCorrectorImpl.h.

Referenced by correction().