CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

virtual double correction (const LorentzVector &fJet) const
 apply correction using Jet information only More...
 
virtual double correction (const reco::Jet &fJet) const
 apply correction using Jet information only More...
 
 L1FastjetCorrectorImpl (std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector, double rho)
 
virtual bool refRequired () const
 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  :
tuple corrector
Definition: mvaPFMET_cff.py:86
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_

Member Function Documentation

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

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
virtual

apply correction using Jet information only

Implements reco::JetCorrectorImpl.

Definition at line 72 of file L1FastjetCorrectorImpl.cc.

References corrector_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), reco::Jet::jetArea(), reco::LeafCandidate::pt(), rho_, FactorizedJetCorrectorCalculator::VariableValues::setJetA(), FactorizedJetCorrectorCalculator::VariableValues::setJetE(), FactorizedJetCorrectorCalculator::VariableValues::setJetEta(), FactorizedJetCorrectorCalculator::VariableValues::setJetPt(), FactorizedJetCorrectorCalculator::VariableValues::setRho(), and makeHLTPrescaleTable::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 }
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
virtual double energy() const
energy
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
virtual float jetArea() const
get jet area
Definition: Jet.h:105
virtual bool L1FastjetCorrectorImpl::refRequired ( ) const
inlinevirtual

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.

Referenced by correction().

double L1FastjetCorrectorImpl::rho_
private

Definition at line 54 of file L1FastjetCorrectorImpl.h.

Referenced by correction().