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 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 58 of file L1FastjetCorrectorImpl.cc.

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

References Exception.

◆ correction() [2/2]

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

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 64 of file L1FastjetCorrectorImpl.cc.

64  {
66  values.setJetEta(fJet.eta());
67  values.setJetPt(fJet.pt());
68  values.setJetE(fJet.energy());
69  values.setJetA(fJet.jetArea());
70  values.setRho(rho_);
71  return corrector_->getCorrection(values);
72 }

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

◆ 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().

reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
pfClustersFromHGC3DClusters_cfi.corrector
corrector
Definition: pfClustersFromHGC3DClusters_cfi.py:4
FactorizedJetCorrectorCalculator::VariableValues
Definition: FactorizedJetCorrectorCalculator.h:18
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
DDAxes::rho
reco::Jet::jetArea
virtual float jetArea() const
get jet area
Definition: Jet.h:103
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
L1FastjetCorrectorImpl::rho_
double rho_
Definition: L1FastjetCorrectorImpl.h:54
Exception
Definition: hltDiff.cc:246
L1FastjetCorrectorImpl::corrector_
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
Definition: L1FastjetCorrectorImpl.h:55
reco::LeafCandidate::energy
double energy() const final
energy
Definition: LeafCandidate.h:125