Main Page
Namespaces
Classes
Package Documentation
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
#include "
JetMETCorrections/FFTJetObjects/interface/L2RecoScaleCalculator.h
"
8
9
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
()
10
{
11
(*this)[
"L2ResScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
12
AbsFFTSpecificScaleCalculator
,
L2ResScaleCalculator
>();
13
14
(*this)[
"L2RecoScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
15
AbsFFTSpecificScaleCalculator,
L2RecoScaleCalculator
>();
16
17
(*this)[
"L2AbsScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
18
AbsFFTSpecificScaleCalculator,
L2AbsScaleCalculator
>();
19
20
(*this)[
"FFTGenericScaleCalculator"
] =
new
ConcreteFFTJetObjectFactory
<
21
AbsFFTSpecificScaleCalculator,
FFTGenericScaleCalculator
>();
22
}
23
24
AbsFFTSpecificScaleCalculator
*
parseFFTSpecificScaleCalculator
(
25
const
edm::ParameterSet
& ps,
const
std::string
& tableDescription)
26
{
27
std::string
mapper_type(ps.
getParameter
<
std::string
>(
"Class"
));
28
if
(!mapper_type.compare(
"auto"
))
29
mapper_type = tableDescription;
30
31
return
StaticFFTSpecificScaleCalculatorFactory::instance
().create(
32
mapper_type, ps);
33
}
ConcreteFFTJetObjectFactory
Definition:
FFTJetObjectFactory.h:21
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
L2RecoScaleCalculator
Definition:
L2RecoScaleCalculator.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FFTGenericScaleCalculator
Definition:
FFTGenericScaleCalculator.h:13
L2ResScaleCalculator.h
ParameterSet.h
parseFFTSpecificScaleCalculator
AbsFFTSpecificScaleCalculator * parseFFTSpecificScaleCalculator(const edm::ParameterSet &ps, const std::string &tableDescription)
Definition:
AbsFFTSpecificScaleCalculator.cc:24
StaticFFTJetObjectFactory::instance
static const Factory & instance()
Definition:
FFTJetObjectFactory.h:70
L2AbsScaleCalculator
Definition:
L2AbsScaleCalculator.h:11
L2ResScaleCalculator
Definition:
L2ResScaleCalculator.h:10
L2AbsScaleCalculator.h
AbsFFTSpecificScaleCalculator
Definition:
AbsFFTSpecificScaleCalculator.h:13
L2RecoScaleCalculator.h
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
FFTSpecificScaleCalculatorFactory()
Definition:
AbsFFTSpecificScaleCalculator.cc:9
edm::ParameterSet
Definition:
ParameterSet.h:36
FFTGenericScaleCalculator.h
AbsFFTSpecificScaleCalculator.h
Generated for CMSSW Reference Manual by
1.8.11