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 | Private Attributes
fftjetcms::MultiplyByConst< T > Class Template Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::MultiplyByConst< T >:

Public Member Functions

 MultiplyByConst (const double factor, const fftjet::Functor1< double, T > *f, const bool takeOwnership=false)
 
 MultiplyByConst ()=delete
 
double operator() (const T &r) const override
 
 ~MultiplyByConst () override
 

Private Attributes

double c_
 
const fftjet::Functor1< double,
T > * 
func_
 
const bool ownsPointer_
 

Detailed Description

template<class T>
class fftjetcms::MultiplyByConst< T >

Definition at line 41 of file ScaleCalculators.h.

Constructor & Destructor Documentation

template<class T >
fftjetcms::MultiplyByConst< T >::MultiplyByConst ( const double  factor,
const fftjet::Functor1< double, T > *  f,
const bool  takeOwnership = false 
)
inline

Definition at line 43 of file ScaleCalculators.h.

44  : c_(factor), func_(f), ownsPointer_(takeOwnership) {}
const fftjet::Functor1< double, T > * func_
template<class T >
fftjetcms::MultiplyByConst< T >::MultiplyByConst ( )
delete
template<class T >
fftjetcms::MultiplyByConst< T >::~MultiplyByConst ( )
inlineoverride

Definition at line 47 of file ScaleCalculators.h.

References fftjetcms::MultiplyByConst< T >::func_, and fftjetcms::MultiplyByConst< T >::ownsPointer_.

47  {
48  if (ownsPointer_)
49  delete func_;
50  }
const fftjet::Functor1< double, T > * func_

Member Function Documentation

template<class T >
double fftjetcms::MultiplyByConst< T >::operator() ( const T r) const
inlineoverride

Definition at line 52 of file ScaleCalculators.h.

References fftjetcms::MultiplyByConst< T >::c_, fftjetcms::MultiplyByConst< T >::func_, and alignCSCRings::r.

52 { return (*func_)(r)*c_; }
const fftjet::Functor1< double, T > * func_

Member Data Documentation

template<class T >
double fftjetcms::MultiplyByConst< T >::c_
private

Definition at line 55 of file ScaleCalculators.h.

Referenced by fftjetcms::MultiplyByConst< T >::operator()().

template<class T >
const fftjet::Functor1<double, T>* fftjetcms::MultiplyByConst< T >::func_
private
template<class T >
const bool fftjetcms::MultiplyByConst< T >::ownsPointer_
private