CMS 3D CMS Logo

List of all members | Public Member Functions
FFTUncertaintyAdjuster< MyJet, Adjustable > Struct Template Reference

#include <FFTJetAdjusters.h>

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

Public Member Functions

void adjust (const MyJet &, const Adjustable &in, const double *factors, const unsigned lenFactors, Adjustable *out) const override
 
 ~FFTUncertaintyAdjuster () override
 
- Public Member Functions inherited from AbsFFTJetAdjuster< MyJet, Adjustable >
virtual ~AbsFFTJetAdjuster ()
 

Additional Inherited Members

- Public Types inherited from AbsFFTJetAdjuster< MyJet, Adjustable >
typedef Adjustable adjustable_type
 
typedef MyJet jet_type
 

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 >
FFTUncertaintyAdjuster< MyJet, Adjustable >::~FFTUncertaintyAdjuster ( )
inlineoverride

Definition at line 29 of file FFTJetAdjusters.h.

29 {}

Member Function Documentation

template<class MyJet , class Adjustable >
void FFTUncertaintyAdjuster< MyJet, Adjustable >::adjust ( const MyJet &  ,
const Adjustable &  in,
const double *  factors,
const unsigned  lenFactors,
Adjustable *  out 
) const
inlineoverridevirtual

Implements AbsFFTJetAdjuster< MyJet, Adjustable >.

Definition at line 31 of file FFTJetAdjusters.h.

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

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