CMS 3D CMS Logo

L2RecoScaleCalculator.h
Go to the documentation of this file.
1 #ifndef JetMETCorrections_FFTJetObjects_L2RecoScaleCalculator_h
2 #define JetMETCorrections_FFTJetObjects_L2RecoScaleCalculator_h
3 
4 #include <cassert>
5 
9 
11 public:
12  inline explicit L2RecoScaleCalculator(const edm::ParameterSet& ps)
13  : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}
14 
15  inline ~L2RecoScaleCalculator() override {}
16 
17  inline void mapFFTJet(const reco::Jet& /* jet */,
18  const reco::FFTJet<float>& fftJet,
19  const math::XYZTLorentzVector& /* current */,
20  double* buf,
21  const unsigned dim) const override {
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  }
29 
30 private:
32 };
33 
34 #endif // JetMETCorrections_FFTJetObjects_L2RecoScaleCalculator_h
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
AbsFFTSpecificScaleCalculator.h
reco::FFTJet< float >
cms::cuda::assert
assert(be >=bs)
L2RecoScaleCalculator
Definition: L2RecoScaleCalculator.h:10
L2RecoScaleCalculator::mapFFTJet
void mapFFTJet(const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &, double *buf, const unsigned dim) const override
Definition: L2RecoScaleCalculator.h:17
edm::ParameterSet
Definition: ParameterSet.h:47
reco::FFTJet::f_recoScale
Real f_recoScale() const
Definition: FFTJet.h:85
L2RecoScaleCalculator::m_radiusFactor
double m_radiusFactor
Definition: L2RecoScaleCalculator.h:31
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
L2RecoScaleCalculator::~L2RecoScaleCalculator
~L2RecoScaleCalculator() override
Definition: L2RecoScaleCalculator.h:15
AbsFFTSpecificScaleCalculator
Definition: AbsFFTSpecificScaleCalculator.h:13
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
Exception
Definition: hltDiff.cc:245
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
Exception.h
L2RecoScaleCalculator::L2RecoScaleCalculator
L2RecoScaleCalculator(const edm::ParameterSet &ps)
Definition: L2RecoScaleCalculator.h:12
ParameterSet.h