CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 26 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file FFTJetAdjusters.h.

27 {}

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

References cms::cuda::assert(), Exception, recoMuon::in, and alignCSCRings::s.

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