#include <L2AbsScaleCalculator.h>
Public Member Functions | |
L2AbsScaleCalculator (const edm::ParameterSet &ps) | |
virtual void | mapFFTJet (const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector ¤t, double *buf, const unsigned dim) const |
virtual | ~L2AbsScaleCalculator () |
Private Attributes | |
double | m_radiusFactor |
bool | m_takePtLog |
double | m_zeroPtLog |
Definition at line 11 of file L2AbsScaleCalculator.h.
L2AbsScaleCalculator::L2AbsScaleCalculator | ( | const edm::ParameterSet & | ps | ) | [inline, explicit] |
Definition at line 14 of file L2AbsScaleCalculator.h.
: m_radiusFactor(ps.getParameter<double>("radiusFactor")), m_zeroPtLog(ps.getParameter<double>("zeroPtLog")), m_takePtLog(ps.getParameter<bool>("takePtLog")) {}
virtual L2AbsScaleCalculator::~L2AbsScaleCalculator | ( | ) | [inline, virtual] |
Definition at line 19 of file L2AbsScaleCalculator.h.
{}
virtual void L2AbsScaleCalculator::mapFFTJet | ( | const reco::Jet & | , |
const reco::FFTJet< float > & | fftJet, | ||
const math::XYZTLorentzVector & | current, | ||
double * | buf, | ||
const unsigned | dim | ||
) | const [inline, virtual] |
Implements AbsFFTSpecificScaleCalculator.
Definition at line 21 of file L2AbsScaleCalculator.h.
References Exception, reco::FFTJet< Real >::f_recoScale(), funct::log(), m_radiusFactor, m_takePtLog, m_zeroPtLog, and CosmicsPD_Skims::radius.
{ if (dim != 2) throw cms::Exception("FFTJetBadConfig") << "In L2AbsScaleCalculator::mapFFTJet: " << "invalid table dimensionality: " << dim << std::endl; assert(buf); const double radius = fftJet.f_recoScale(); const double pt = current.pt(); buf[0] = radius*m_radiusFactor; if (m_takePtLog) { if (pt > 0.0) buf[1] = log(pt); else buf[1] = m_zeroPtLog; } else buf[1] = pt; }
double L2AbsScaleCalculator::m_radiusFactor [private] |
Definition at line 47 of file L2AbsScaleCalculator.h.
Referenced by mapFFTJet().
bool L2AbsScaleCalculator::m_takePtLog [private] |
Definition at line 49 of file L2AbsScaleCalculator.h.
Referenced by mapFFTJet().
double L2AbsScaleCalculator::m_zeroPtLog [private] |
Definition at line 48 of file L2AbsScaleCalculator.h.
Referenced by mapFFTJet().