Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
ConcreteFFTJetObjectFactory
Definition:
FFTJetObjectFactory.h:20
L2ResScaleCalculator.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
StaticFFTJetObjectFactory::instance
static const Factory & instance()
Definition:
FFTJetObjectFactory.h:57
parseFFTSpecificScaleCalculator
AbsFFTSpecificScaleCalculator * parseFFTSpecificScaleCalculator(const edm::ParameterSet &ps, const std::string &tableDescription)
Definition:
AbsFFTSpecificScaleCalculator.cc:23
L2AbsScaleCalculator.h
AbsFFTSpecificScaleCalculator
Definition:
AbsFFTSpecificScaleCalculator.h:13
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
L2RecoScaleCalculator.h
FFTSpecificScaleCalculatorFactory::FFTSpecificScaleCalculatorFactory
FFTSpecificScaleCalculatorFactory()
Definition:
AbsFFTSpecificScaleCalculator.cc:9
edm::ParameterSet
Definition:
ParameterSet.h:47
FFTGenericScaleCalculator.h
AbsFFTSpecificScaleCalculator.h
Generated for CMSSW Reference Manual by
1.8.5