Main Page
Namespaces
Classes
Package Documentation
src
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) do { \
12
const gs::ClassId& id(gs::ClassId::makeId<Derived >()); \
13
(*this)[id.name()] = \
14
new gs::ConcreteReader<StorableMultivariateFunctor,Derived >(); \
15
} while(0);
16
17
namespace
npstat
{
18
StorableMultivariateFunctorReader::StorableMultivariateFunctorReader
()
19
{
20
add_reader
(
DoubleInterpolationFunctor
);
21
add_reader
(
DoubleUAInterpolationFunctor
);
22
add_reader
(
DoubleNUInterpolationFunctor
);
23
add_reader
(
FloatInterpolationFunctor
);
24
add_reader
(
FloatUAInterpolationFunctor
);
25
add_reader
(
FloatNUInterpolationFunctor
);
26
27
add_reader
(
DoubleHistoNDFunctor
);
28
add_reader
(
DoubleUAHistoNDFunctor
);
29
add_reader
(
DoubleNUHistoNDFunctor
);
30
add_reader
(
FloatHistoNDFunctor
);
31
add_reader
(
FloatUAHistoNDFunctor
);
32
add_reader
(
FloatNUHistoNDFunctor
);
33
}
34
}
StorableMultivariateFunctorReader.h
The geners I/O reader factory for classes derived from StorableMultivariateFunctor.
InterpolationFunctorInstances.h
Typedefs for some common uses of the StorableInterpolationFunctor template.
npstat
Definition:
AbsArrayProjector.h:14
HistoNDFunctorInstances.h
Typedefs for some common uses of the StorableHistoNDFunctor template.
add_reader
#define add_reader(Derived)
Definition:
StorableMultivariateFunctorReader.cc:11
npstat::StorableInterpolationFunctor
Definition:
StorableInterpolationFunctor.h:30
npstat::StorableHistoNDFunctor
Definition:
StorableHistoNDFunctor.h:31
npstat::StorableMultivariateFunctorReader::StorableMultivariateFunctorReader
StorableMultivariateFunctorReader()
Definition:
StorableMultivariateFunctorReader.cc:18
Generated for CMSSW Reference Manual by
1.8.11