1 #ifndef artdaq_core_Data_detail_RawFragmentHeaderV0_hh
2 #define artdaq_core_Data_detail_RawFragmentHeaderV0_hh
9 #include "artdaq-core/Data/dictionarycontrol.hh"
10 #include "cetlib/exception.h"
12 #include "artdaq-core/Data/detail/RawFragmentHeader.hh"
23 struct RawFragmentHeaderV0;
72 return std::map<type_t, std::string>{
85 return std::map<type_t, std::string>{
90 { 229,
"EndOfSubrun" },
123 constexpr
static std::size_t
num_words();
168 "sizeof(RawFragmentHeader) is not an integer "
169 "multiple of sizeof(RawDataType)!");
175 if (utype < FIRST_USER_TYPE || utype > LAST_USER_TYPE)
177 throw cet::exception(
"InvalidValue")
178 <<
"RawFragmentHeader user types must be in the range of "
179 << ((int)FIRST_USER_TYPE) <<
" to " << ((int)LAST_USER_TYPE)
180 <<
" (bad type is " << ((int)utype) <<
").";
189 if (stype < FIRST_SYSTEM_TYPE /*|| stype > LAST_SYSTEM_TYPE*/)
191 throw cet::exception(
"InvalidValue")
192 <<
"RawFragmentHeader system types must be in the range of "
193 << ((int)FIRST_SYSTEM_TYPE) <<
" to " << ((int)LAST_SYSTEM_TYPE);