1 #include "artdaq-core/Data/Fragment.hh"
2 #include "artdaq-core/Data/RawEvent.hh"
4 #define BOOST_TEST_MODULE(RawEvent_t)
5 #include <cetlib/quiet_unit_test.hpp>
7 BOOST_AUTO_TEST_SUITE(RawEvent_test)
9 BOOST_AUTO_TEST_CASE(InsertFragment)
21 r1.insertFragment(std::move(f1));
22 r1.insertFragment(std::move(f2));
23 r1.insertFragment(std::move(f3));
24 BOOST_REQUIRE_EQUAL(r1.numFragments(), 3);
27 BOOST_REQUIRE_EXCEPTION(r1.insertFragment(std::move(f1)), cet::exception,
28 [&](cet::exception e) {
return e.category() ==
"LogicError"; });
31 BOOST_AUTO_TEST_SUITE_END()
A Fragment contains the data from one piece of the DAQ system for one event The artdaq::Fragment is t...
RawEvent is the artdaq view of a generic event, containing a header and zero or more Fragments...