1 #ifndef artdaq_core_Data_detail_RawFragmentHeader_hh
2 #define artdaq_core_Data_detail_RawFragmentHeader_hh
9 #include "artdaq-core/Data/dictionarycontrol.hh"
10 #include "cetlib_except/exception.h"
22 struct RawFragmentHeader;
71 return std::map<type_t, std::string>{
86 return std::map<type_t, std::string>{
116 return "EndOfSubrun";
155 static constexpr std::size_t
num_words();
189 "sizeof(RawFragmentHeader) is not an integer "
190 "multiple of sizeof(RawDataType)!");
196 if (utype < FIRST_USER_TYPE || utype > LAST_USER_TYPE)
198 throw cet::exception(
"InvalidValue")
199 <<
"RawFragmentHeader user types must be in the range of "
200 << ((int)FIRST_USER_TYPE) <<
" to " << ((int)LAST_USER_TYPE)
201 <<
" (bad type is " << ((int)utype) <<
").";
210 if (stype < FIRST_SYSTEM_TYPE /*|| stype > LAST_SYSTEM_TYPE*/)
212 throw cet::exception(
"InvalidValue")
213 <<
"RawFragmentHeader system types must be in the range of "
214 << ((int)FIRST_SYSTEM_TYPE) <<
" to " << ((int)LAST_SYSTEM_TYPE);