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

8 {}

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

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

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