Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
JetMETCorrections
FFTJetObjects
src
AbsFFTSpecificScaleCalculator.cc
Go to the documentation of this file.
1
#include "
JetMETCorrections/FFTJetObjects/interface/AbsFFTSpecificScaleCalculator.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
4
#include "
JetMETCorrections/FFTJetObjects/interface/FFTGenericScaleCalculator.h
"
5
#include "
JetMETCorrections/FFTJetObjects/interface/L2AbsScaleCalculator.h
"
6
#include "
JetMETCorrections/FFTJetObjects/interface/L2ResScaleCalculator.h
"
7
8
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
()
9
{
10
(*this)[
"L2ResScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
11
AbsFFTSpecificScaleCalculator
,
L2ResScaleCalculator
>();
12
13
(*this)[
"L2AbsScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
14
AbsFFTSpecificScaleCalculator,
L2AbsScaleCalculator
>();
15
16
(*this)[
"FFTGenericScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
17
AbsFFTSpecificScaleCalculator,
FFTGenericScaleCalculator
>();
18
}
19
20
AbsFFTSpecificScaleCalculator
*
parseFFTSpecificScaleCalculator
(
21
const
edm::ParameterSet
& ps,
const
std::string
& tableDescription)
22
{
23
std::string
mapper_type(ps.
getParameter
<
std::string
>(
"Class"
));
24
if
(!mapper_type.compare(
"auto"
))
25
mapper_type = tableDescription;
26
27
return
StaticFFTSpecificScaleCalculatorFactory::instance
().create(
28
mapper_type, ps);
29
}
ConcreteFFTJetObjectFactory
Definition:
FFTJetObjectFactory.h:21
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
FFTGenericScaleCalculator
Definition:
FFTGenericScaleCalculator.h:13
L2ResScaleCalculator.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
StaticFFTJetObjectFactory::instance
static const Factory & instance()
Definition:
FFTJetObjectFactory.h:70
L2AbsScaleCalculator
Definition:
L2AbsScaleCalculator.h:11
L2ResScaleCalculator
Definition:
L2ResScaleCalculator.h:10
parseFFTSpecificScaleCalculator
AbsFFTSpecificScaleCalculator * parseFFTSpecificScaleCalculator(const edm::ParameterSet &ps, const std::string &tableDescription)
Definition:
AbsFFTSpecificScaleCalculator.cc:20
L2AbsScaleCalculator.h
AbsFFTSpecificScaleCalculator
Definition:
AbsFFTSpecificScaleCalculator.h:13
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
FFTSpecificScaleCalculatorFactory()
Definition:
AbsFFTSpecificScaleCalculator.cc:8
edm::ParameterSet
Definition:
ParameterSet.h:35
FFTGenericScaleCalculator.h
AbsFFTSpecificScaleCalculator.h
Generated for CMSSW Reference Manual by
1.8.5