CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
fftjetcms::ProductFunctor< T > Class Template Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::ProductFunctor< T >:

Public Member Functions

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

Private Member Functions

 ProductFunctor ()
 

Private Attributes

const fftjet::Functor1< double,
T > * 
f1_
 
const fftjet::Functor1< double,
T > * 
f2_
 
const bool ownsPointers_
 

Detailed Description

template<class T>
class fftjetcms::ProductFunctor< T >

Definition at line 88 of file ScaleCalculators.h.

Constructor & Destructor Documentation

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

Definition at line 91 of file ScaleCalculators.h.

94  : f1_(f1), f2_(f2), ownsPointers_(takeOwnership) {}
const fftjet::Functor1< double, T > * f2_
const fftjet::Functor1< double, T > * f1_
template<class T >
fftjetcms::ProductFunctor< T >::~ProductFunctor ( )
inline

Definition at line 96 of file ScaleCalculators.h.

References fftjetcms::ProductFunctor< T >::f1_, fftjetcms::ProductFunctor< T >::f2_, and fftjetcms::ProductFunctor< T >::ownsPointers_.

97  {if (ownsPointers_) {delete f1_; delete f2_;}}
const fftjet::Functor1< double, T > * f2_
const fftjet::Functor1< double, T > * f1_
template<class T >
fftjetcms::ProductFunctor< T >::ProductFunctor ( )
private

Member Function Documentation

template<class T >
double fftjetcms::ProductFunctor< T >::operator() ( const T r) const
inline

Definition at line 99 of file ScaleCalculators.h.

References fftjetcms::ProductFunctor< T >::f1_, fftjetcms::ProductFunctor< T >::f2_, and alignCSCRings::r.

100  {return (*f1_)(r) * (*f2_)(r);}
const fftjet::Functor1< double, T > * f2_
const fftjet::Functor1< double, T > * f1_

Member Data Documentation

template<class T >
const fftjet::Functor1<double,T>* fftjetcms::ProductFunctor< T >::f1_
private
template<class T >
const fftjet::Functor1<double,T>* fftjetcms::ProductFunctor< T >::f2_
private
template<class T >
const bool fftjetcms::ProductFunctor< T >::ownsPointers_
private

Definition at line 106 of file ScaleCalculators.h.

Referenced by fftjetcms::ProductFunctor< T >::~ProductFunctor().