CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L2ResScaleCalculator Class Reference

#include <L2ResScaleCalculator.h>

Inheritance diagram for L2ResScaleCalculator:
AbsFFTSpecificScaleCalculator

Public Member Functions

 L2ResScaleCalculator (const edm::ParameterSet &ps)
 
void mapFFTJet (const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &current, double *buf, const unsigned dim) const override
 
 ~L2ResScaleCalculator () override
 
- Public Member Functions inherited from AbsFFTSpecificScaleCalculator
virtual ~AbsFFTSpecificScaleCalculator ()
 

Private Attributes

double m_radiusFactor
 

Detailed Description

Definition at line 10 of file L2ResScaleCalculator.h.

Constructor & Destructor Documentation

◆ L2ResScaleCalculator()

L2ResScaleCalculator::L2ResScaleCalculator ( const edm::ParameterSet ps)
inlineexplicit

Definition at line 12 of file L2ResScaleCalculator.h.

13  : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}

◆ ~L2ResScaleCalculator()

L2ResScaleCalculator::~L2ResScaleCalculator ( )
inlineoverride

Definition at line 15 of file L2ResScaleCalculator.h.

15 {}

Member Function Documentation

◆ mapFFTJet()

void L2ResScaleCalculator::mapFFTJet ( const reco::Jet ,
const reco::FFTJet< float > &  fftJet,
const math::XYZTLorentzVector current,
double *  buf,
const unsigned  dim 
) const
inlineoverridevirtual

Implements AbsFFTSpecificScaleCalculator.

Definition at line 17 of file L2ResScaleCalculator.h.

21  {
22  if (dim != 2)
23  throw cms::Exception("FFTJetBadConfig") << "In L2ResScaleCalculator::mapFFTJet: "
24  << "invalid table dimensionality: " << dim << std::endl;
25  assert(buf);
26  const double radius = fftJet.f_recoScale();
27  buf[0] = radius * m_radiusFactor;
28  buf[1] = current.eta();
29  }

References cms::cuda::assert(), visDQMUpload::buf, Exception, reco::FFTJet< Real >::f_recoScale(), m_radiusFactor, and CosmicsPD_Skims::radius.

Member Data Documentation

◆ m_radiusFactor

double L2ResScaleCalculator::m_radiusFactor
private

Definition at line 32 of file L2ResScaleCalculator.h.

Referenced by mapFFTJet().

cms::cuda::assert
assert(be >=bs)
L2ResScaleCalculator::m_radiusFactor
double m_radiusFactor
Definition: L2ResScaleCalculator.h:32
reco::FFTJet::f_recoScale
Real f_recoScale() const
Definition: FFTJet.h:85
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
Exception
Definition: hltDiff.cc:246
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303