CMS 3D CMS Logo

Public Member Functions

FFTScalingAdjusterWithUncertainty< MyJet, Adjustable > Struct Template Reference

#include <FFTJetAdjusters.h>

Inheritance diagram for FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >:
AbsFFTJetAdjuster< MyJet, Adjustable >

List of all members.

Public Member Functions

virtual void adjust (const MyJet &, const Adjustable &in, const double *factors, const unsigned lenFactors, Adjustable *out) const
virtual ~FFTScalingAdjusterWithUncertainty ()

Detailed Description

template<class MyJet, class Adjustable>
struct FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >

Definition at line 48 of file FFTJetAdjusters.h.


Constructor & Destructor Documentation

template<class MyJet , class Adjustable >
virtual FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >::~FFTScalingAdjusterWithUncertainty ( ) [inline, virtual]

Definition at line 51 of file FFTJetAdjusters.h.

{}

Member Function Documentation

template<class MyJet , class Adjustable >
virtual void FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >::adjust ( const MyJet &  ,
const Adjustable &  in,
const double *  factors,
const unsigned  lenFactors,
Adjustable *  out 
) const [inline, virtual]

Implements AbsFFTJetAdjuster< MyJet, Adjustable >.

Definition at line 53 of file FFTJetAdjusters.h.

References Exception, recoMuon::in, and alignCSCRings::s.

    {
        if (lenFactors != 2U)
            throw cms::Exception("FFTJetBadConfig")
                << "In FFTScalingAdjusterWithUncertainty::adjust: wrong "
                << "number of scales (expected 2, got " << lenFactors << ")\n";
        assert(factors);
        assert(out);
        *out = in;
        *out *= factors[0];
        const double s = factors[1];
        out->setVariance(in.variance() + s*s);
    }