CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L2ResScaleCalculator Class Reference

#include <L2ResScaleCalculator.h>

Inheritance diagram for L2ResScaleCalculator:
AbsFFTSpecificScaleCalculator

Public Member Functions

 L2ResScaleCalculator (const edm::ParameterSet &ps)
 
virtual void mapFFTJet (const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &current, double *buf, const unsigned dim) const
 
virtual ~L2ResScaleCalculator ()
 
- Public Member Functions inherited from AbsFFTSpecificScaleCalculator
virtual ~AbsFFTSpecificScaleCalculator ()
 

Private Attributes

double m_radiusFactor
 

Detailed Description

Definition at line 10 of file L2ResScaleCalculator.h.

Constructor & Destructor Documentation

L2ResScaleCalculator::L2ResScaleCalculator ( const edm::ParameterSet ps)
inlineexplicit

Definition at line 13 of file L2ResScaleCalculator.h.

14  : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}
T getParameter(std::string const &) const
virtual L2ResScaleCalculator::~L2ResScaleCalculator ( )
inlinevirtual

Definition at line 16 of file L2ResScaleCalculator.h.

16 {}

Member Function Documentation

virtual void L2ResScaleCalculator::mapFFTJet ( const reco::Jet ,
const reco::FFTJet< float > &  fftJet,
const math::XYZTLorentzVector current,
double *  buf,
const unsigned  dim 
) const
inlinevirtual

Implements AbsFFTSpecificScaleCalculator.

Definition at line 18 of file L2ResScaleCalculator.h.

References assert(), Exception, reco::FFTJet< Real >::f_recoScale(), m_radiusFactor, and CosmicsPD_Skims::radius.

22  {
23  if (dim != 2)
24  throw cms::Exception("FFTJetBadConfig")
25  << "In L2ResScaleCalculator::mapFFTJet: "
26  << "invalid table dimensionality: "
27  << dim << std::endl;
28  assert(buf);
29  const double radius = fftJet.f_recoScale();
30  buf[0] = radius*m_radiusFactor;
31  buf[1] = current.eta();
32  }
assert(m_qm.get())
Real f_recoScale() const
Definition: FFTJet.h:73

Member Data Documentation

double L2ResScaleCalculator::m_radiusFactor
private

Definition at line 35 of file L2ResScaleCalculator.h.

Referenced by mapFFTJet().