Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:34

0001 #include "JetMETCorrections/InterpolationTables/interface/StorableMultivariateFunctorReader.h"
0002 
0003 // Include headers for all classes derived from StorableMultivariateFunctor
0004 // which are known at this point in code development
0005 //
0006 #include "JetMETCorrections/InterpolationTables/interface/InterpolationFunctorInstances.h"
0007 #include "JetMETCorrections/InterpolationTables/interface/HistoNDFunctorInstances.h"
0008 
0009 // Simple macro for adding a reader for a class derived from
0010 // StorableMultivariateFunctor
0011 #define add_reader(Derived)                                                              \
0012   do {                                                                                   \
0013     const gs::ClassId& id(gs::ClassId::makeId<Derived>());                               \
0014     (*this)[id.name()] = new gs::ConcreteReader<StorableMultivariateFunctor, Derived>(); \
0015   } while (0);
0016 
0017 namespace npstat {
0018   StorableMultivariateFunctorReader::StorableMultivariateFunctorReader() {
0019     add_reader(DoubleInterpolationFunctor);
0020     add_reader(DoubleUAInterpolationFunctor);
0021     add_reader(DoubleNUInterpolationFunctor);
0022     add_reader(FloatInterpolationFunctor);
0023     add_reader(FloatUAInterpolationFunctor);
0024     add_reader(FloatNUInterpolationFunctor);
0025 
0026     add_reader(DoubleHistoNDFunctor);
0027     add_reader(DoubleUAHistoNDFunctor);
0028     add_reader(DoubleNUHistoNDFunctor);
0029     add_reader(FloatHistoNDFunctor);
0030     add_reader(FloatUAHistoNDFunctor);
0031     add_reader(FloatNUHistoNDFunctor);
0032   }
0033 }  // namespace npstat