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
(*this)[
"L2ResScaleCalculator"
] =
11
new
ConcreteFFTJetObjectFactory<AbsFFTSpecificScaleCalculator, L2ResScaleCalculator>
();
12
13
(*this)[
"L2RecoScaleCalculator"
] =
14
new
ConcreteFFTJetObjectFactory<AbsFFTSpecificScaleCalculator, L2RecoScaleCalculator>
();
15
16
(*this)[
"L2AbsScaleCalculator"
] =
17
new
ConcreteFFTJetObjectFactory<AbsFFTSpecificScaleCalculator, L2AbsScaleCalculator>
();
18
19
(*this)[
"FFTGenericScaleCalculator"
] =
20
new
ConcreteFFTJetObjectFactory<AbsFFTSpecificScaleCalculator, FFTGenericScaleCalculator>
();
21
}
22
23
AbsFFTSpecificScaleCalculator
*
parseFFTSpecificScaleCalculator
(
const
edm::ParameterSet
& ps,
24
const
std::string
& tableDescription) {
25
std::string
mapper_type(ps.
getParameter
<
std::string
>(
"Class"
));
26
if
(!mapper_type.compare(
"auto"
))
27
mapper_type = tableDescription;
28
29
return
StaticFFTSpecificScaleCalculatorFactory::instance
().create(mapper_type, ps);
30
}
L2RecoScaleCalculator.h
AbsFFTSpecificScaleCalculator.h
StaticFFTJetObjectFactory::instance
static const Factory & instance()
Definition:
FFTJetObjectFactory.h:57
L2AbsScaleCalculator.h
ConcreteFFTJetObjectFactory
Definition:
FFTJetObjectFactory.h:20
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
FFTSpecificScaleCalculatorFactory()
Definition:
AbsFFTSpecificScaleCalculator.cc:9
AbsFFTSpecificScaleCalculator
Definition:
AbsFFTSpecificScaleCalculator.h:13
parseFFTSpecificScaleCalculator
AbsFFTSpecificScaleCalculator * parseFFTSpecificScaleCalculator(const edm::ParameterSet &ps, const std::string &tableDescription)
Definition:
AbsFFTSpecificScaleCalculator.cc:23
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
ParameterSet.h
L2ResScaleCalculator.h
FFTGenericScaleCalculator.h
Generated for CMSSW Reference Manual by
1.8.16