CMS 3D CMS Logo

List of all members | Public 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 ()=delete
 
 PeakEtaMagSsqDependent (const fftjet::LinearInterpolator2d *f1, const bool takeOwnership, const fftjet::JetMagnitudeMapper2d< fftjet::Peak > *jmmp, const bool ownjmp, const double fc)
 
 ~PeakEtaMagSsqDependent () override
 

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 149 of file ScaleCalculators.h.

Constructor & Destructor Documentation

◆ PeakEtaMagSsqDependent() [1/2]

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 151 of file ScaleCalculators.h.

156  : f1_(f1), ownsPointer_(takeOwnership), jmmp_(jmmp), ownsjmmpPointer_(ownjmp), factor_(fc) {}

◆ PeakEtaMagSsqDependent() [2/2]

fftjetcms::PeakEtaMagSsqDependent::PeakEtaMagSsqDependent ( )
delete

◆ ~PeakEtaMagSsqDependent()

fftjetcms::PeakEtaMagSsqDependent::~PeakEtaMagSsqDependent ( )
inlineoverride

Definition at line 159 of file ScaleCalculators.h.

159  {
160  if (ownsPointer_)
161  delete f1_;
162  if (ownsjmmpPointer_)
163  delete jmmp_;
164  }

References f1_, jmmp_, ownsjmmpPointer_, and ownsPointer_.

Member Function Documentation

◆ operator()()

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

Definition at line 166 of file ScaleCalculators.h.

166  {
167  const double scale = r.scale();
168  const double magnitude = r.magnitude();
169  const double pt = scale * scale * factor_ * magnitude;
170  const double partonpt = (*jmmp_)(pt, r);
171  return (*f1_)(std::abs(r.eta()), partonpt);
172  }

References funct::abs(), f1_, factor_, DiDispStaMuonMonitor_cfi::pt, alignCSCRings::r, and L1EGammaCrystalsEmulatorProducer_cfi::scale.

Member Data Documentation

◆ f1_

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

Definition at line 175 of file ScaleCalculators.h.

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

◆ factor_

const double fftjetcms::PeakEtaMagSsqDependent::factor_
private

Definition at line 179 of file ScaleCalculators.h.

Referenced by operator()().

◆ jmmp_

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

Definition at line 177 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().

◆ ownsjmmpPointer_

const bool fftjetcms::PeakEtaMagSsqDependent::ownsjmmpPointer_
private

Definition at line 178 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().

◆ ownsPointer_

const bool fftjetcms::PeakEtaMagSsqDependent::ownsPointer_
private

Definition at line 176 of file ScaleCalculators.h.

Referenced by ~PeakEtaMagSsqDependent().

fftjetcms::PeakEtaMagSsqDependent::ownsjmmpPointer_
const bool ownsjmmpPointer_
Definition: ScaleCalculators.h:178
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
fftjetcms::PeakEtaMagSsqDependent::ownsPointer_
const bool ownsPointer_
Definition: ScaleCalculators.h:176
alignCSCRings.r
r
Definition: alignCSCRings.py:93
fftjetcms::PeakEtaMagSsqDependent::f1_
const fftjet::LinearInterpolator2d * f1_
Definition: ScaleCalculators.h:175
fftjetcms::PeakEtaMagSsqDependent::factor_
const double factor_
Definition: ScaleCalculators.h:179
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
fftjetcms::PeakEtaMagSsqDependent::jmmp_
const fftjet::JetMagnitudeMapper2d< fftjet::Peak > * jmmp_
Definition: ScaleCalculators.h:177
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219