12#define BOOST_TEST_MODULE Test EMCAL Reconstruction
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
27 std::array<std::string, 8> errornames = {{
"ChannelEndPayloadUnexpected",
28 "ChannelPayloadExceed",
33 "BunchLengthAllowExceed",
34 "BunchStarttimeExceed"}},
35 errortitles = {{
"Channel end unexpected",
38 "Channel header invalid",
40 "Bunch length exceed",
41 "Bunch length impossible",
42 "Bunch starttime exceed"}},
43 errordescriptions = {{
"Unexpected end of payload in altro channel payload!",
44 "Trying to access out-of-bound payload!",
46 "Invalid channel header",
47 "Bunch header 0 or not configured!",
48 "Bunch length exceeding channel payload size!",
49 "Bunch length exceeding max. possible bunch size!",
50 "Bunch start time outside range!"}};
static const char * getErrorTypeTitle(ErrorType_t errortype)
Get the title connected to the error type.
@ CHANNEL_HEADER
Channel header corruption.
@ CHANNEL_ORDER
Channels not in increasing order.
@ BUNCH_LENGTH_ALLOW_EXCEED
Exceeds maximum allowed bunch length.
@ BUNCH_STARTTIME
Bunch start time exceeding.
@ BUNCH_LENGTH_EXCEED
Bunch length exceeding channel payload size.
@ CHANNEL_END_PAYLOAD_UNEXPECT
Unexpected end of payload (channel or trailer word in bunch words)
@ CHANNEL_PAYLOAD_EXCEED
Exceeding channel payload block.
@ BUNCH_HEADER_NULL
Bunch header is 0.
static ErrorType_t intToErrorType(int errornumber)
convert the error from number into a type (symbolic constant)
static int errorTypeToInt(ErrorType_t errortype)
convert the error type from symoblic constant into int
static const char * getErrorTypeDescription(ErrorType_t errortype)
Get the description connected to the error type.
static const char * getErrorTypeName(ErrorType_t errortype)
Get the name connected to the error type.
static constexpr int getNumberOfErrorTypes() noexcept
Get the number of error types handled by the AltroDecoderError.
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())