CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

fftjetcms::PeakEtaMagSsqDependent Class Reference

#include <ScaleCalculators.h>

List of all members.

Public Member Functions

double operator() (const fftjet::Peak &r) const
 PeakEtaMagSsqDependent (const fftjet::LinearInterpolator2d *f1, const bool takeOwnership, const fftjet::JetMagnitudeMapper2d< fftjet::Peak > *jmmp, const bool ownjmp, const double fc)
 ~PeakEtaMagSsqDependent ()

Private Member Functions

 PeakEtaMagSsqDependent ()

Private Attributes

const
fftjet::LinearInterpolator2d * 
f1_
const double factor_
const
fftjet::JetMagnitudeMapper2d
< fftjet::Peak > * 
jmmp_
const bool ownsjmmpPointer_
const bool ownsPointer_

Detailed Description

Definition at line 151 of file ScaleCalculators.h.


Constructor & Destructor Documentation

fftjetcms::PeakEtaMagSsqDependent::PeakEtaMagSsqDependent ( const fftjet::LinearInterpolator2d *  f1,
const bool  takeOwnership,
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > *  jmmp,
const bool  ownjmp,
const double  fc 
) [inline]

Definition at line 154 of file ScaleCalculators.h.

            : f1_(f1), ownsPointer_(takeOwnership), jmmp_(jmmp),
              ownsjmmpPointer_(ownjmp), factor_(fc) {}
fftjetcms::PeakEtaMagSsqDependent::~PeakEtaMagSsqDependent ( ) [inline]

Definition at line 162 of file ScaleCalculators.h.

References f1_, jmmp_, ownsjmmpPointer_, and ownsPointer_.

        {
            if (ownsPointer_) delete f1_;
            if (ownsjmmpPointer_) delete jmmp_;
        }
fftjetcms::PeakEtaMagSsqDependent::PeakEtaMagSsqDependent ( ) [private]

Member Function Documentation

double fftjetcms::PeakEtaMagSsqDependent::operator() ( const fftjet::Peak &  r) const [inline]

Definition at line 168 of file ScaleCalculators.h.

References abs, f1_, factor_, alignCSCRings::r, and pileupReCalc_HLTpaths::scale.

        {
            const double scale = r.scale();
            const double magnitude = r.magnitude();
            const double pt = scale*scale*factor_*magnitude;
            const double partonpt = (*jmmp_)(pt,r);
            return (*f1_)(std::abs(r.eta()),partonpt)  ;
        }

Member Data Documentation

const fftjet::LinearInterpolator2d* fftjetcms::PeakEtaMagSsqDependent::f1_ [private]

Definition at line 179 of file ScaleCalculators.h.

Referenced by operator()(), and ~PeakEtaMagSsqDependent().

Definition at line 183 of file ScaleCalculators.h.

Referenced by operator()().

const fftjet::JetMagnitudeMapper2d<fftjet::Peak>* fftjetcms::PeakEtaMagSsqDependent::jmmp_ [private]

Definition at line 181 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().

Definition at line 182 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().

Definition at line 180 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().