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::MagnitudeDependent< T > Class Template Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::MagnitudeDependent< T >:

Public Member Functions

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

Private Attributes

const fftjet::Functor1< double,
double > * 
f1_
 
const bool ownsPointer_
 

Detailed Description

template<class T>
class fftjetcms::MagnitudeDependent< T >

Definition at line 112 of file ScaleCalculators.h.

Constructor & Destructor Documentation

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

Definition at line 114 of file ScaleCalculators.h.

115  : f1_(f1), ownsPointer_(takeOwnership) {}
const fftjet::Functor1< double, double > * f1_
template<class T >
fftjetcms::MagnitudeDependent< T >::MagnitudeDependent ( )
delete
template<class T >
fftjetcms::MagnitudeDependent< T >::~MagnitudeDependent ( )
inlineoverride

Definition at line 118 of file ScaleCalculators.h.

References fftjetcms::MagnitudeDependent< T >::f1_, and fftjetcms::MagnitudeDependent< T >::ownsPointer_.

118  {
119  if (ownsPointer_)
120  delete f1_;
121  }
const fftjet::Functor1< double, double > * f1_

Member Function Documentation

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

Definition at line 123 of file ScaleCalculators.h.

References fftjetcms::MagnitudeDependent< T >::f1_.

123 { return (*f1_)(r.magnitude()); }
const fftjet::Functor1< double, double > * f1_

Member Data Documentation

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