1 #ifndef artdaq_core_Data_detail_RawFragmentHeaderV1_hh
2 #define artdaq_core_Data_detail_RawFragmentHeaderV1_hh
10 #include "artdaq-core/Data/detail/RawFragmentHeader.hh"
11 #include "artdaq-core/Data/dictionarycontrol.hh"
12 #include "cetlib_except/exception.h"
20 struct RawFragmentHeaderV1;
69 return std::map<type_t, std::string>{
81 return std::map<type_t, std::string>{
112 return "EndOfSubrun";
150 static constexpr std::size_t
num_words();
182 inline constexpr std::size_t
193 "sizeof(RawFragmentHeaderV1) is not an integer "
194 "multiple of sizeof(RawDataType)!");
199 if (utype < FIRST_USER_TYPE || utype > LAST_USER_TYPE)
201 throw cet::exception(
"InvalidValue")
202 <<
"RawFragmentHeaderV1 user types must be in the range of "
203 << ((int)FIRST_USER_TYPE) <<
" to " << ((int)LAST_USER_TYPE)
204 <<
" (bad type is " << ((int)utype) <<
").";
212 if (stype < FIRST_SYSTEM_TYPE /*|| stype > LAST_SYSTEM_TYPE*/)
214 throw cet::exception(
"InvalidValue")
215 <<
"RawFragmentHeaderV1 system types must be in the range of "
216 << ((int)FIRST_SYSTEM_TYPE) <<
" to " << ((int)LAST_SYSTEM_TYPE);