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>{
84 return std::map<type_t, std::string>{
114 return "EndOfSubrun";
153 static constexpr std::size_t
num_words();
187 "sizeof(RawFragmentHeader) is not an integer "
188 "multiple of sizeof(RawDataType)!");
194 if (utype < FIRST_USER_TYPE || utype > LAST_USER_TYPE)
196 throw cet::exception(
"InvalidValue")
197 <<
"RawFragmentHeader user types must be in the range of "
198 << ((int)FIRST_USER_TYPE) <<
" to " << ((int)LAST_USER_TYPE)
199 <<
" (bad type is " << ((int)utype) <<
").";
208 if (stype < FIRST_SYSTEM_TYPE /*|| stype > LAST_SYSTEM_TYPE*/)
210 throw cet::exception(
"InvalidValue")
211 <<
"RawFragmentHeader system types must be in the range of "
212 << ((int)FIRST_SYSTEM_TYPE) <<
" to " << ((int)LAST_SYSTEM_TYPE);