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),
20 "Too many user-defined fragments!");
23 using detail::FragmentType;
FragmentType toFragmentType(std::string t_string)
Lookup the type code for a fragment by its string name.
std::string fragmentTypeToString(FragmentType val)
Look up the name of the given FragmentType.
std::map< artdaq::Fragment::type_t, std::string > makeFragmentTypeMap()
Create a list of all Fragment types defined by this package, in the format that RawInput expects.