CMS 3D CMS Logo

List of all members | Public Member Functions | Private 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)
 
double operator() (const T &r) const override
 
 ~MultiplyByConst () override
 

Private Member Functions

 MultiplyByConst ()=delete
 

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

◆ MultiplyByConst() [1/2]

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) {}

◆ ~MultiplyByConst()

template<class T >
fftjetcms::MultiplyByConst< T >::~MultiplyByConst ( )
inlineoverride

Definition at line 46 of file ScaleCalculators.h.

46  {
47  if (ownsPointer_)
48  delete func_;
49  }

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

◆ MultiplyByConst() [2/2]

template<class T >
fftjetcms::MultiplyByConst< T >::MultiplyByConst ( )
privatedelete

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ c_

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

Definition at line 55 of file ScaleCalculators.h.

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

◆ func_

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

◆ ownsPointer_

template<class T >
const bool fftjetcms::MultiplyByConst< T >::ownsPointer_
private
fftjetcms::MultiplyByConst::ownsPointer_
const bool ownsPointer_
Definition: ScaleCalculators.h:57
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
fftjetcms::MultiplyByConst::c_
double c_
Definition: ScaleCalculators.h:55
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
fftjetcms::MultiplyByConst::func_
const fftjet::Functor1< double, T > * func_
Definition: ScaleCalculators.h:56
alignCSCRings.r
r
Definition: alignCSCRings.py:93