1 #ifndef art_Utilities_SAMMetadataTranslators_h 2 #define art_Utilities_SAMMetadataTranslators_h 4 #include "cetlib/container_algorithms.h" 14 inline std::map<new_t, old_t>
17 return {{
"file_type",
"fileType"},
18 {
"data_tier",
"dataTier"},
19 {
"data_stream",
"streamName"},
20 {
"run_type",
"runType"}};
29 auto it = transMap.find(name);
30 return it != transMap.cend() ? it->second : name;
36 inline std::map<new_t, old_t>
40 std::map<old_t, new_t> oldToNew;
42 newToOld, std::inserter(oldToNew, oldToNew.begin()), [](
auto const& pr) {
43 return std::make_pair(pr.second, pr.first);
54 auto it = transMap.find(name);
55 return it != transMap.cend() ? it->second : name;
std::map< new_t, old_t > newToOldName()
std::string operator()(std::string const &name) const
std::map< new_t, old_t > oldToNewName()