Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
JetMETCorrections
FFTJetObjects
interface
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
6
#include "
JetMETCorrections/FFTJetObjects/interface/AbsFFTSpecificScaleCalculator.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
FWCore/Utilities/interface/Exception.h
"
9
10
class
L2RecoScaleCalculator
:
public
AbsFFTSpecificScaleCalculator
11
{
12
public
:
13
inline
explicit
L2RecoScaleCalculator
(
const
edm::ParameterSet
& ps)
14
:
m_radiusFactor
(ps.getParameter<double>(
"radiusFactor"
)) {}
15
16
inline
virtual
~L2RecoScaleCalculator
() {}
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 != 1)
24
throw
cms::Exception
(
"FFTJetBadConfig"
)
25
<<
"In L2RecoScaleCalculator::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
}
32
33
private
:
34
double
m_radiusFactor
;
35
};
36
37
#endif // JetMETCorrections_FFTJetObjects_L2RecoScaleCalculator_h
L2RecoScaleCalculator
Definition:
L2RecoScaleCalculator.h:10
L2RecoScaleCalculator::~L2RecoScaleCalculator
virtual ~L2RecoScaleCalculator()
Definition:
L2RecoScaleCalculator.h:16
L2RecoScaleCalculator::L2RecoScaleCalculator
L2RecoScaleCalculator(const edm::ParameterSet &ps)
Definition:
L2RecoScaleCalculator.h:13
reco::Jet
Base class for all types of Jets.
Definition:
Jet.h:20
L2RecoScaleCalculator::m_radiusFactor
double m_radiusFactor
Definition:
L2RecoScaleCalculator.h:34
ParameterSet.h
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition:
LorentzVector.h:29
reco::FFTJet::f_recoScale
Real f_recoScale() const
Definition:
FFTJet.h:73
L2RecoScaleCalculator::mapFFTJet
virtual void mapFFTJet(const reco::Jet &, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &, double *buf, const unsigned dim) const
Definition:
L2RecoScaleCalculator.h:18
reco::FFTJet< float >
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:21
AbsFFTSpecificScaleCalculator
Definition:
AbsFFTSpecificScaleCalculator.h:13
edm::ParameterSet
Definition:
ParameterSet.h:35
CosmicsPD_Skims.radius
tuple radius
Definition:
CosmicsPD_Skims.py:135
AbsFFTSpecificScaleCalculator.h
Generated for CMSSW Reference Manual by
1.8.5