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::JetEtaDependent Class Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::JetEtaDependent:

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 183 of file ScaleCalculators.h.

Constructor & Destructor Documentation

fftjetcms::JetEtaDependent::JetEtaDependent ( const fftjet::Functor1< double, double > *  f1,
const bool  takeOwnership = false 
)
inline

Definition at line 185 of file ScaleCalculators.h.

186  : f1_(f1), ownsPointer_(takeOwnership) {}
const fftjet::Functor1< double, double > * f1_
fftjetcms::JetEtaDependent::JetEtaDependent ( )
delete
fftjetcms::JetEtaDependent::~JetEtaDependent ( )
inlineoverride

Definition at line 189 of file ScaleCalculators.h.

References f1_, and ownsPointer_.

189  {
190  if (ownsPointer_)
191  delete f1_;
192  }
const fftjet::Functor1< double, double > * f1_

Member Function Documentation

double fftjetcms::JetEtaDependent::operator() ( const fftjet::RecombinedJet< VectorLike > &  r) const
inlineoverride

Definition at line 194 of file ScaleCalculators.h.

References f1_.

194  {
195  return (*f1_)(r.vec().eta());
196  }
const fftjet::Functor1< double, double > * f1_

Member Data Documentation

const fftjet::Functor1<double, double>* fftjetcms::JetEtaDependent::f1_
private

Definition at line 199 of file ScaleCalculators.h.

Referenced by operator()(), and ~JetEtaDependent().

const bool fftjetcms::JetEtaDependent::ownsPointer_
private

Definition at line 200 of file ScaleCalculators.h.

Referenced by ~JetEtaDependent().