File indexing completed on 2024-04-06 12:19:22
0001 #include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"
0002
0003 #include "JetMETCorrections/InterpolationTables/interface/StorableMultivariateFunctorReader.h"
0004
0005 namespace npstat {
0006 void StorableMultivariateFunctor::validateDescription(const std::string& description) const {
0007 if (description_ != description) {
0008 std::string mesage =
0009 "In StorableMultivariateFunctor::validateDescription: "
0010 "argument description string \"";
0011 mesage += description;
0012 mesage += "\" is different from the object description string \"";
0013 mesage += description_;
0014 mesage += "\"";
0015 throw npstat::NpstatRuntimeError(mesage);
0016 }
0017 }
0018
0019 StorableMultivariateFunctor* StorableMultivariateFunctor::read(const gs::ClassId& id, std::istream& in) {
0020 return StaticStorableMultivariateFunctorReader::instance().read(id, in);
0021 }
0022 }