CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FFTEtaLogPtConeRadiusMapper< MyJet, Adjustable > Class Template Reference

#include <FFTJetScaleCalculators.h>

Inheritance diagram for FFTEtaLogPtConeRadiusMapper< MyJet, Adjustable >:
AbsFFTJetScaleCalculator< MyJet, Adjustable >

List of all members.

Public Member Functions

 FFTEtaLogPtConeRadiusMapper (CPP11_shared_ptr< npstat::AbsMultivariateFunctor > f)

Private Member Functions

void map (const MyJet &jet, const Adjustable &current, double *buf, const unsigned dim) const

Detailed Description

template<class MyJet, class Adjustable>
class FFTEtaLogPtConeRadiusMapper< MyJet, Adjustable >

Definition at line 12 of file FFTJetScaleCalculators.h.


Constructor & Destructor Documentation

template<class MyJet , class Adjustable >
FFTEtaLogPtConeRadiusMapper< MyJet, Adjustable >::FFTEtaLogPtConeRadiusMapper ( CPP11_shared_ptr< npstat::AbsMultivariateFunctor f) [inline, explicit]

Member Function Documentation

template<class MyJet , class Adjustable >
void FFTEtaLogPtConeRadiusMapper< MyJet, Adjustable >::map ( const MyJet &  jet,
const Adjustable &  current,
double *  buf,
const unsigned  dim 
) const [inline, private, virtual]

Implements AbsFFTJetScaleCalculator< MyJet, Adjustable >.

Definition at line 21 of file FFTJetScaleCalculators.h.

References Exception, and funct::log().

    {
        assert(buf);
        if (dim != 3)
            throw cms::Exception("FFTJetBadConfig")
                << "In FFTEtaLogPtConeRadiusMapper::map: "
                << "invalid table dimensionality: "
                << dim << std::endl;
        buf[0] = current.vec().eta();
        buf[1] = log(current.vec().pt());
        buf[2] = jet.getFFTSpecific().f_recoScale();
    }