CMS 3D CMS Logo

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

#include <FFTJetAdjusters.h>

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

Definition at line 7 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file FFTJetAdjusters.h.

9 {}

Member Function Documentation

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

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

14  {
15  if (lenFactors != 1U)
16  throw cms::Exception("FFTJetBadConfig")
17  << "In FFTSimpleScalingAdjuster::adjust: wrong number of "
18  << "scales (expected 1, got " << lenFactors << ")\n";
19  assert(factors);
20  assert(out);
21  *out = in;
22  *out *= factors[0];
23  }