CMS 3D CMS Logo

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

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

Definition at line 46 of file FFTJetAdjusters.h.

Constructor & Destructor Documentation

◆ ~FFTScalingAdjusterWithUncertainty()

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

Definition at line 47 of file FFTJetAdjusters.h.

47 {}

Member Function Documentation

◆ adjust()

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

53  {
54  if (lenFactors != 2U)
55  throw cms::Exception("FFTJetBadConfig") << "In FFTScalingAdjusterWithUncertainty::adjust: wrong "
56  << "number of scales (expected 2, got " << lenFactors << ")\n";
57  assert(factors);
58  assert(out);
59  *out = in;
60  *out *= factors[0];
61  const double s = factors[1];
62  out->setVariance(in.variance() + s * s);
63  }

References cms::cuda::assert(), Exception, recoMuon::in, MillePedeFileConverter_cfg::out, alignCSCRings::s, and mitigatedMETSequence_cff::U.

cms::cuda::assert
assert(be >=bs)
alignCSCRings.s
s
Definition: alignCSCRings.py:92
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
recoMuon::in
Definition: RecoMuonEnumerators.h:6
Exception
Definition: hltDiff.cc:245
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31