CMS 3D CMS Logo

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

#include <L2RecoScaleCalculator.h>

Inheritance diagram for L2RecoScaleCalculator:
AbsFFTSpecificScaleCalculator

Public Member Functions

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

Private Attributes

double m_radiusFactor
 

Detailed Description

Definition at line 10 of file L2RecoScaleCalculator.h.

Constructor & Destructor Documentation

◆ L2RecoScaleCalculator()

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

Definition at line 12 of file L2RecoScaleCalculator.h.

13  : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ ~L2RecoScaleCalculator()

L2RecoScaleCalculator::~L2RecoScaleCalculator ( )
inlineoverride

Definition at line 15 of file L2RecoScaleCalculator.h.

15 {}

Member Function Documentation

◆ mapFFTJet()

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

Implements AbsFFTSpecificScaleCalculator.

Definition at line 17 of file L2RecoScaleCalculator.h.

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

21  {
22  if (dim != 1)
23  throw cms::Exception("FFTJetBadConfig") << "In L2RecoScaleCalculator::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  }
assert(be >=bs)
Real f_recoScale() const
Definition: FFTJet.h:85

Member Data Documentation

◆ m_radiusFactor

double L2RecoScaleCalculator::m_radiusFactor
private

Definition at line 31 of file L2RecoScaleCalculator.h.

Referenced by mapFFTJet().