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 48 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

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

Definition at line 51 of file FFTJetAdjusters.h.

51 {}

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 53 of file FFTJetAdjusters.h.

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

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