CMS 3D CMS Logo

Public Member Functions

FFTUncertaintyAdjuster< MyJet, Adjustable > Struct Template Reference

#include <FFTJetAdjusters.h>

Inheritance diagram for FFTUncertaintyAdjuster< 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 ~FFTUncertaintyAdjuster ()

Detailed Description

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

Definition at line 27 of file FFTJetAdjusters.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file FFTJetAdjusters.h.

{}

Member Function Documentation

template<class MyJet , class Adjustable >
virtual void FFTUncertaintyAdjuster< 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 31 of file FFTJetAdjusters.h.

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

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