4 #include "Alignment/Geners/interface/Reference.hh" 13 const unsigned long long idSmall = ar.smallestId();
15 os <<
"!!! No records in the archive !!!" << std::endl;
18 const unsigned long long idLarge = ar.largestId();
19 unsigned long long count = 0;
20 for (
unsigned long long id = idSmall;
id <= idLarge; ++
id)
21 if (ar.itemExists(
id))
23 CPP11_shared_ptr<const gs::CatalogEntry>
e =
29 os <<
'\n' << count <<
" records in the archive" << std::endl;
34 CPP11_auto_ptr<npstat::StorableMultivariateFunctor>
36 gs::StringArchive& ar,
const bool verbose)
42 gs::Reference<npstat::StorableMultivariateFunctor> ref(
43 ar, nameSearch, categorySearch);
48 std::ostringstream os;
49 os <<
"Error in loadFFTJetInterpolationTable: table with name \"" 50 << nameSearch.pattern() <<
"\" ";
51 if (nameSearch.useRegex())
53 os <<
"and category \"" 54 << categorySearch.pattern() <<
"\" ";
55 if (categorySearch.useRegex())
62 os <<
" in the archive. Archive contents are:\n";
67 CPP11_auto_ptr<npstat::StorableMultivariateFunctor>
p = ref.get(0);
70 std::cout <<
"In loadFFTJetInterpolationTable: loaded table with metadata" 72 CPP11_shared_ptr<const gs::CatalogEntry>
e = ref.indexedCatalogEntry(0);
75 std::cout <<
"Actual table class name is \"" 76 << p->classId().name() <<
'"' << std::endl;
T getParameter(std::string const &) const
std::unique_ptr< npstat::StorableMultivariateFunctor > loadFFTJetInterpolationTable(const edm::ParameterSet &ps, gs::StringArchive &ar, const bool verbose)
static void dumpArchiveMetadata(gs::StringArchive &ar, std::ostream &os)