4 #include "Alignment/Geners/interface/Reference.hh" 11 const unsigned long long idSmall = ar.smallestId();
13 os <<
"!!! No records in the archive !!!" << std::endl;
15 const unsigned long long idLarge = ar.largestId();
16 unsigned long long count = 0;
17 for (
unsigned long long id = idSmall;
id <= idLarge; ++
id)
18 if (ar.itemExists(
id)) {
19 std::shared_ptr<const gs::CatalogEntry>
e = ar.catalogEntry(
id);
24 os <<
'\n' <<
count <<
" records in the archive" << std::endl;
29 gs::StringArchive& ar,
34 gs::Reference<npstat::StorableMultivariateFunctor> ref(ar, nameSearch, categorySearch);
38 std::ostringstream os;
39 os <<
"Error in loadFFTJetInterpolationTable: table with name \"" << nameSearch.pattern() <<
"\" ";
40 if (nameSearch.useRegex())
42 os <<
"and category \"" << categorySearch.pattern() <<
"\" ";
43 if (categorySearch.useRegex())
50 os <<
" in the archive. Archive contents are:\n";
55 CPP11_auto_ptr<npstat::StorableMultivariateFunctor>
p = ref.get(0);
57 std::cout <<
"In loadFFTJetInterpolationTable: loaded table with metadata" << std::endl;
58 std::shared_ptr<const gs::CatalogEntry>
e = ref.indexedCatalogEntry(0);
61 std::cout <<
"Actual table class name is \"" <<
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)