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/exception.h"
22 struct RawFragmentHeader;
70 return std::map<type_t, std::string>{
83 return std::map<type_t, std::string>{
88 { 229,
"EndOfSubrun" },
123 static constexpr std::size_t
num_words();
157 "sizeof(RawFragmentHeader) is not an integer "
158 "multiple of sizeof(RawDataType)!");
164 if (utype < FIRST_USER_TYPE || utype > LAST_USER_TYPE)
166 throw cet::exception(
"InvalidValue")
167 <<
"RawFragmentHeader user types must be in the range of "
168 << ((int)FIRST_USER_TYPE) <<
" to " << ((int)LAST_USER_TYPE)
169 <<
" (bad type is " << ((int)utype) <<
").";
178 if (stype < FIRST_SYSTEM_TYPE /*|| stype > LAST_SYSTEM_TYPE*/)
180 throw cet::exception(
"InvalidValue")
181 <<
"RawFragmentHeader system types must be in the range of "
182 << ((int)FIRST_SYSTEM_TYPE) <<
" to " << ((int)LAST_SYSTEM_TYPE);