test
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
L2RecoScaleCalculator Class Reference

#include <L2RecoScaleCalculator.h>

Inheritance diagram for L2RecoScaleCalculator:
AbsFFTSpecificScaleCalculator

Public Member Functions

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

Private Attributes

double m_radiusFactor
 

Detailed Description

Definition at line 10 of file L2RecoScaleCalculator.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file L2RecoScaleCalculator.h.

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

Definition at line 16 of file L2RecoScaleCalculator.h.

16 {}

Member Function Documentation

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

Implements AbsFFTSpecificScaleCalculator.

Definition at line 18 of file L2RecoScaleCalculator.h.

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

22  {
23  if (dim != 1)
24  throw cms::Exception("FFTJetBadConfig")
25  << "In L2RecoScaleCalculator::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  }
assert(m_qm.get())
Real f_recoScale() const
Definition: FFTJet.h:73

Member Data Documentation

double L2RecoScaleCalculator::m_radiusFactor
private

Definition at line 34 of file L2RecoScaleCalculator.h.

Referenced by mapFFTJet().