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
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 ( const edm::ParameterSet ps)
inlineexplicit

Definition at line 12 of file L2ResScaleCalculator.h.

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

Definition at line 15 of file L2ResScaleCalculator.h.

15 {}

Member Function Documentation

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.

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

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  }
assert(be >=bs)
Real f_recoScale() const
Definition: FFTJet.h:85

Member Data Documentation

double L2ResScaleCalculator::m_radiusFactor
private

Definition at line 32 of file L2ResScaleCalculator.h.

Referenced by mapFFTJet().