CMS 3D CMS Logo

Public Member Functions | Private Attributes

L2AbsScaleCalculator Class Reference

#include <L2AbsScaleCalculator.h>

Inheritance diagram for L2AbsScaleCalculator:
AbsFFTSpecificScaleCalculator

List of all members.

Public Member Functions

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

Private Attributes

double m_radiusFactor
bool m_takePtLog
double m_zeroPtLog

Detailed Description

Definition at line 11 of file L2AbsScaleCalculator.h.


Constructor & Destructor Documentation

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

Definition at line 14 of file L2AbsScaleCalculator.h.

        : m_radiusFactor(ps.getParameter<double>("radiusFactor")),
          m_zeroPtLog(ps.getParameter<double>("zeroPtLog")),
          m_takePtLog(ps.getParameter<bool>("takePtLog")) {}
virtual L2AbsScaleCalculator::~L2AbsScaleCalculator ( ) [inline, virtual]

Definition at line 19 of file L2AbsScaleCalculator.h.

{}

Member Function Documentation

virtual void L2AbsScaleCalculator::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 21 of file L2AbsScaleCalculator.h.

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

    {
        if (dim != 2)
            throw cms::Exception("FFTJetBadConfig")
                << "In L2AbsScaleCalculator::mapFFTJet: "
                << "invalid table dimensionality: "
                << dim << std::endl;
        assert(buf);
        const double radius = fftJet.f_recoScale();
        const double pt = current.pt();
        buf[0] = radius*m_radiusFactor;
        if (m_takePtLog)
        {
            if (pt > 0.0)
                buf[1] = log(pt);
            else
                buf[1] = m_zeroPtLog;
        }
        else
            buf[1] = pt;
    }

Member Data Documentation

Definition at line 47 of file L2AbsScaleCalculator.h.

Referenced by mapFFTJet().

Definition at line 49 of file L2AbsScaleCalculator.h.

Referenced by mapFFTJet().

Definition at line 48 of file L2AbsScaleCalculator.h.

Referenced by mapFFTJet().