CMS 3D CMS Logo

Public Member Functions | Private Attributes

L2ResScaleCalculator Class Reference

#include <L2ResScaleCalculator.h>

Inheritance diagram for L2ResScaleCalculator:
AbsFFTSpecificScaleCalculator

List of all members.

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

Private Attributes

double m_radiusFactor

Detailed Description

Definition at line 10 of file L2ResScaleCalculator.h.


Constructor & Destructor Documentation

L2ResScaleCalculator::L2ResScaleCalculator ( const edm::ParameterSet ps) [inline, explicit]

Definition at line 13 of file L2ResScaleCalculator.h.

        : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}
virtual L2ResScaleCalculator::~L2ResScaleCalculator ( ) [inline, virtual]

Definition at line 16 of file L2ResScaleCalculator.h.

{}

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 [inline, virtual]

Implements AbsFFTSpecificScaleCalculator.

Definition at line 18 of file L2ResScaleCalculator.h.

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

    {
        if (dim != 2)
            throw cms::Exception("FFTJetBadConfig")
                << "In L2ResScaleCalculator::mapFFTJet: "
                << "invalid table dimensionality: "
                << dim << std::endl;
        assert(buf);
        const double radius = fftJet.f_recoScale();
        buf[0] = radius*m_radiusFactor;
        buf[1] = current.eta();
    }

Member Data Documentation

Definition at line 35 of file L2ResScaleCalculator.h.

Referenced by mapFFTJet().