CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
fftjetcms::PeakEtaMagSsqDependent Class Reference

#include <ScaleCalculators.h>

Inheritance diagram for fftjetcms::PeakEtaMagSsqDependent:

Public Member Functions

double operator() (const fftjet::Peak &r) const override
 
 PeakEtaMagSsqDependent (const fftjet::LinearInterpolator2d *f1, const bool takeOwnership, const fftjet::JetMagnitudeMapper2d< fftjet::Peak > *jmmp, const bool ownjmp, const double fc)
 
 ~PeakEtaMagSsqDependent () override
 

Private Member Functions

 PeakEtaMagSsqDependent ()=delete
 

Private Attributes

const fftjet::LinearInterpolator2d * f1_
 
const double factor_
 
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > * jmmp_
 
const bool ownsjmmpPointer_
 
const bool ownsPointer_
 

Detailed Description

Definition at line 153 of file ScaleCalculators.h.

Constructor & Destructor Documentation

fftjetcms::PeakEtaMagSsqDependent::PeakEtaMagSsqDependent ( const fftjet::LinearInterpolator2d *  f1,
const bool  takeOwnership,
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > *  jmmp,
const bool  ownjmp,
const double  fc 
)
inline

Definition at line 156 of file ScaleCalculators.h.

161  : f1_(f1), ownsPointer_(takeOwnership), jmmp_(jmmp),
162  ownsjmmpPointer_(ownjmp), factor_(fc) {}
const fftjet::LinearInterpolator2d * f1_
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > * jmmp_
fftjetcms::PeakEtaMagSsqDependent::~PeakEtaMagSsqDependent ( )
inlineoverride

Definition at line 164 of file ScaleCalculators.h.

165  {
166  if (ownsPointer_) delete f1_;
167  if (ownsjmmpPointer_) delete jmmp_;
168  }
const fftjet::LinearInterpolator2d * f1_
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > * jmmp_
fftjetcms::PeakEtaMagSsqDependent::PeakEtaMagSsqDependent ( )
privatedelete

Member Function Documentation

double fftjetcms::PeakEtaMagSsqDependent::operator() ( const fftjet::Peak &  r) const
inlineoverride

Definition at line 170 of file ScaleCalculators.h.

References funct::abs(), EnergyCorrector::pt, alignCSCRings::r, and Scenarios_cff::scale.

171  {
172  const double scale = r.scale();
173  const double magnitude = r.magnitude();
174  const double pt = scale*scale*factor_*magnitude;
175  const double partonpt = (*jmmp_)(pt,r);
176  return (*f1_)(std::abs(r.eta()),partonpt) ;
177  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const fftjet::LinearInterpolator2d * f1_

Member Data Documentation

const fftjet::LinearInterpolator2d* fftjetcms::PeakEtaMagSsqDependent::f1_
private

Definition at line 181 of file ScaleCalculators.h.

const double fftjetcms::PeakEtaMagSsqDependent::factor_
private

Definition at line 185 of file ScaleCalculators.h.

const fftjet::JetMagnitudeMapper2d<fftjet::Peak>* fftjetcms::PeakEtaMagSsqDependent::jmmp_
private

Definition at line 183 of file ScaleCalculators.h.

const bool fftjetcms::PeakEtaMagSsqDependent::ownsjmmpPointer_
private

Definition at line 184 of file ScaleCalculators.h.

const bool fftjetcms::PeakEtaMagSsqDependent::ownsPointer_
private

Definition at line 182 of file ScaleCalculators.h.