CMS 3D CMS Logo

L2ResScaleCalculator.h
Go to the documentation of this file.
1 #ifndef JetMETCorrections_FFTJetObjects_L2ResScaleCalculator_h
2 #define JetMETCorrections_FFTJetObjects_L2ResScaleCalculator_h
3 
4 #include <cassert>
5 
9 
11 {
12 public:
13  inline explicit L2ResScaleCalculator(const edm::ParameterSet& ps)
14  : m_radiusFactor(ps.getParameter<double>("radiusFactor")) {}
15 
16  inline virtual ~L2ResScaleCalculator() {}
17 
18  inline virtual void mapFFTJet(const reco::Jet& /* jet */,
19  const reco::FFTJet<float>& fftJet,
20  const math::XYZTLorentzVector& current,
21  double* buf, const unsigned dim) const
22  {
23  if (dim != 2)
24  throw cms::Exception("FFTJetBadConfig")
25  << "In L2ResScaleCalculator::mapFFTJet: "
26  << "invalid table dimensionality: "
27  << dim << std::endl;
28  assert(buf);
29  const double radius = fftJet.f_recoScale();
30  buf[0] = radius*m_radiusFactor;
31  buf[1] = current.eta();
32  }
33 
34 private:
36 };
37 
38 #endif // JetMETCorrections_FFTJetObjects_L2ResScaleCalculator_h
Base class for all types of Jets.
Definition: Jet.h:20
L2ResScaleCalculator(const edm::ParameterSet &ps)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
Real f_recoScale() const
Definition: FFTJet.h:73
virtual void mapFFTJet(const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &current, double *buf, const unsigned dim) const