CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
AbsFFTJetScaleCalculator< Jet, Adjustable > Class Template Referenceabstract

#include <AbsFFTJetScaleCalculator.h>

Public Types

typedef Adjustable adjustable_type
 
typedef Jet jet_type
 

Public Member Functions

 AbsFFTJetScaleCalculator (std::shared_ptr< npstat::AbsMultivariateFunctor > f)
 
double scale (const Jet &jet, const Adjustable &current) const
 
virtual ~AbsFFTJetScaleCalculator ()
 

Private Member Functions

 AbsFFTJetScaleCalculator ()=delete
 
virtual void map (const Jet &jet, const Adjustable &current, double *buf, unsigned dim) const =0
 

Private Attributes

std::vector< double > buffer_
 
std::shared_ptr< npstat::AbsMultivariateFunctorfunctor
 

Detailed Description

template<class Jet, class Adjustable>
class AbsFFTJetScaleCalculator< Jet, Adjustable >

Definition at line 9 of file AbsFFTJetScaleCalculator.h.

Member Typedef Documentation

template<class Jet, class Adjustable>
typedef Adjustable AbsFFTJetScaleCalculator< Jet, Adjustable >::adjustable_type

Definition at line 13 of file AbsFFTJetScaleCalculator.h.

template<class Jet, class Adjustable>
typedef Jet AbsFFTJetScaleCalculator< Jet, Adjustable >::jet_type

Definition at line 12 of file AbsFFTJetScaleCalculator.h.

Constructor & Destructor Documentation

template<class Jet, class Adjustable>
AbsFFTJetScaleCalculator< Jet, Adjustable >::AbsFFTJetScaleCalculator ( std::shared_ptr< npstat::AbsMultivariateFunctor f)
inlineexplicit

Definition at line 15 of file AbsFFTJetScaleCalculator.h.

17  : functor(f), buffer_(f->minDim()) {}
std::shared_ptr< npstat::AbsMultivariateFunctor > functor
double f[11][100]
template<class Jet, class Adjustable>
virtual AbsFFTJetScaleCalculator< Jet, Adjustable >::~AbsFFTJetScaleCalculator ( )
inlinevirtual

Definition at line 19 of file AbsFFTJetScaleCalculator.h.

19 {}
template<class Jet, class Adjustable>
AbsFFTJetScaleCalculator< Jet, Adjustable >::AbsFFTJetScaleCalculator ( )
privatedelete

Member Function Documentation

template<class Jet, class Adjustable>
virtual void AbsFFTJetScaleCalculator< Jet, Adjustable >::map ( const Jet &  jet,
const Adjustable &  current,
double *  buf,
unsigned  dim 
) const
privatepure virtual
template<class Jet, class Adjustable>
double AbsFFTJetScaleCalculator< Jet, Adjustable >::scale ( const Jet &  jet,
const Adjustable &  current 
) const
inline

Definition at line 21 of file AbsFFTJetScaleCalculator.h.

22  {
23  const unsigned dim = buffer_.size();
24  double* buf = dim ? &buffer_[0] : static_cast<double*>(nullptr);
25  this->map(jet, current, buf, dim);
26  return (*functor)(buf, dim);
27  }
std::shared_ptr< npstat::AbsMultivariateFunctor > functor
virtual void map(const Jet &jet, const Adjustable &current, double *buf, unsigned dim) const =0

Member Data Documentation

template<class Jet, class Adjustable>
std::vector<double> AbsFFTJetScaleCalculator< Jet, Adjustable >::buffer_
mutableprivate
template<class Jet, class Adjustable>
std::shared_ptr<npstat::AbsMultivariateFunctor> AbsFFTJetScaleCalculator< Jet, Adjustable >::functor
private