JetMETCorrections
InterpolationTables
src
StorableMultivariateFunctorReader.cc
Go to the documentation of this file.
1
#include "
JetMETCorrections/InterpolationTables/interface/StorableMultivariateFunctorReader.h
"
2
3
// Include headers for all classes derived from StorableMultivariateFunctor
4
// which are known at this point in code development
5
//
6
#include "
JetMETCorrections/InterpolationTables/interface/InterpolationFunctorInstances.h
"
7
#include "
JetMETCorrections/InterpolationTables/interface/HistoNDFunctorInstances.h
"
8
9
// Simple macro for adding a reader for a class derived from
10
// StorableMultivariateFunctor
11
#define add_reader(Derived) \
12
do { \
13
const gs::ClassId& id(gs::ClassId::makeId<Derived>()); \
14
(*this)[id.name()] = new gs::ConcreteReader<StorableMultivariateFunctor, Derived>(); \
15
} while (0);
16
17
namespace
npstat
{
18
StorableMultivariateFunctorReader::StorableMultivariateFunctorReader
() {
19
add_reader
(
DoubleInterpolationFunctor
);
20
add_reader
(
DoubleUAInterpolationFunctor
);
21
add_reader
(
DoubleNUInterpolationFunctor
);
22
add_reader
(
FloatInterpolationFunctor
);
23
add_reader
(
FloatUAInterpolationFunctor
);
24
add_reader
(
FloatNUInterpolationFunctor
);
25
26
add_reader
(
DoubleHistoNDFunctor
);
27
add_reader
(
DoubleUAHistoNDFunctor
);
28
add_reader
(
DoubleNUHistoNDFunctor
);
29
add_reader
(
FloatHistoNDFunctor
);
30
add_reader
(
FloatUAHistoNDFunctor
);
31
add_reader
(
FloatNUHistoNDFunctor
);
32
}
33
}
// namespace npstat
add_reader
#define add_reader(Derived)
Definition:
StorableMultivariateFunctorReader.cc:11
HistoNDFunctorInstances.h
Typedefs for some common uses of the StorableHistoNDFunctor template.
npstat
Definition:
AbsArrayProjector.h:14
InterpolationFunctorInstances.h
Typedefs for some common uses of the StorableInterpolationFunctor template.
npstat::StorableInterpolationFunctor
Definition:
StorableInterpolationFunctor.h:25
npstat::StorableHistoNDFunctor
Definition:
StorableHistoNDFunctor.h:26
npstat::StorableMultivariateFunctorReader::StorableMultivariateFunctorReader
StorableMultivariateFunctorReader()
Definition:
StorableMultivariateFunctorReader.cc:18
StorableMultivariateFunctorReader.h
The geners I/O reader factory for classes derived from StorableMultivariateFunctor.
Generated for CMSSW Reference Manual by
1.8.16