CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

virtual void adjust (const MyJet &, const Adjustable &in, const double *factors, const unsigned lenFactors, Adjustable *out) const
 
virtual ~FFTScalingAdjusterWithUncertainty ()
 
- 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 >
virtual FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >::~FFTScalingAdjusterWithUncertainty ( )
inlinevirtual

Definition at line 51 of file FFTJetAdjusters.h.

51 {}

Member Function Documentation

template<class MyJet , class Adjustable >
virtual void FFTScalingAdjusterWithUncertainty< MyJet, Adjustable >::adjust ( const MyJet &  ,
const Adjustable &  in,
const double *  factors,
const unsigned  lenFactors,
Adjustable *  out 
) const
inlinevirtual

Implements AbsFFTJetAdjuster< MyJet, Adjustable >.

Definition at line 53 of file FFTJetAdjusters.h.

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

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  }
assert(m_qm.get())