12 std::transform(t_string.begin(),
16 auto it = std::find(
names.begin(),
names.end(), t_string);
17 return (it ==
names.end()) ?
19 static_cast<FragmentType>(artdaq::Fragment::FirstUserFragmentType +
20 (it -
names.begin()));
30 return "INVALID/UNKNOWN";
37 auto output = artdaq::Fragment::MakeSystemTypeMap();
FragmentType toFragmentType(std::string t_string)
std::string fragmentTypeToString(FragmentType val)
std::map< artdaq::Fragment::type_t, std::string > makeFragmentTypeMap()
static std::vector< std::string > const names