CMS 3D CMS Logo

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

virtual void adjust (const MyJet &, const Adjustable &in, const double *factors, const unsigned lenFactors, Adjustable *out) const
 
virtual ~FFTUncertaintyAdjuster ()
 
- 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 27 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file FFTJetAdjusters.h.

29 {}

Member Function Documentation

template<class MyJet , class Adjustable >
virtual void FFTUncertaintyAdjuster< 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 31 of file FFTJetAdjusters.h.

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

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