12#define BOOST_TEST_MODULE errormap test
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
18#include <fmt/format.h>
35 em.
add(ErrorType{0}, 0, 0);
36 em.
add(ErrorType{1}, 0, 0);
37 em.
add(ErrorType{2}, 0, 0);
44 em.
add(ErrorType{0}, 0, 0);
45 em.
add(ErrorType{1}, 0, 0, 2);
46 em.
add(
Error{ErrorType{0}, 1, 2, 3});
56 em1.
add(ErrorType{0}, 0, 0);
57 em1.
add(ErrorType{1}, 0, 0);
59 em2.
add(ErrorType{0}, 1, 2);
60 em2.
add(ErrorType{0}, 0, 0);
69 em.
add(ErrorType{0}, 0, 0);
70 em.
add(ErrorType{0}, 0, 0);
71 em.
add(ErrorType{1}, 0, 0);
72 em.
add(ErrorType{0}, 1, 2);
74 std::vector<std::string> lines;
76 lines.emplace_back(fmt::format(
"ET {} ID [{},{}] seen {} time(s)",
80 BOOST_REQUIRE_EQUAL(lines.size(), 3);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
char error[CURL_ERROR_SIZE]
A container class to summarize errors encountered during processing.
void forEach(ErrorFunction f) const
uint64_t getNumberOfErrors() const
void add(ErrorType errorType, uint32_t id0, uint32_t id1, uint64_t n=1)
uint64_t getNumberOfErrorTypes() const
BOOST_AUTO_TEST_CASE(DefaultErrorMapShouldBeEmpty)
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())