1 #ifndef artdaq_ots_Overlays_FragmentType_hh
2 #define artdaq_ots_Overlays_FragmentType_hh
3 #include "artdaq-core/Data/Fragment.hh"
7 static std::vector<std::string>
const names{
"MISSED",
"UDP",
"UNKNOWN"};
11 enum FragmentType : artdaq::Fragment::type_t
13 MISSED = artdaq::Fragment::FirstUserFragmentType,
19 static_assert(artdaq::Fragment::isUserFragmentType(FragmentType::INVALID - 1),
"Too many user-defined fragments!");
22 using detail::FragmentType;
29 FragmentType toFragmentType(std::string t_string);
36 std::string fragmentTypeToString(FragmentType val);
42 std::map<artdaq::Fragment::type_t, std::string> makeFragmentTypeMap();