CMS 3D CMS Logo

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

Private Member Functions

 MagnitudeDependent ()=delete
 

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

◆ MagnitudeDependent() [1/2]

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

◆ ~MagnitudeDependent()

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

Definition at line 117 of file ScaleCalculators.h.

117  {
118  if (ownsPointer_)
119  delete f1_;
120  }

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

◆ MagnitudeDependent() [2/2]

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

Member Function Documentation

◆ operator()()

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

Definition at line 122 of file ScaleCalculators.h.

122 { return (*f1_)(r.magnitude()); }

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

Member Data Documentation

◆ f1_

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

◆ ownsPointer_

template<class T >
const bool fftjetcms::MagnitudeDependent< T >::ownsPointer_
private
fftjetcms::MagnitudeDependent::ownsPointer_
const bool ownsPointer_
Definition: ScaleCalculators.h:127
fftjetcms::MagnitudeDependent::f1_
const fftjet::Functor1< double, double > * f1_
Definition: ScaleCalculators.h:126
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219