CMS 3D CMS Logo

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

#include <FFTJetAdjusters.h>

Inheritance diagram for FFTScalingAdjusterWithUncertainty< 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
 
 ~FFTScalingAdjusterWithUncertainty () 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 FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >

Definition at line 46 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

template<class MyJet , class Adjustable >
FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >::~FFTScalingAdjusterWithUncertainty ( )
inlineoverride

Definition at line 47 of file FFTJetAdjusters.h.

47 {}

Member Function Documentation

template<class MyJet , class Adjustable >
void FFTScalingAdjusterWithUncertainty< 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 49 of file FFTJetAdjusters.h.

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

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