29 std::vector<InputSpec> inputspecs = {
30 InputSpec{
"tpc0",
"TPC",
"RAWDATA", 0, Lifetime::Timeframe},
31 InputSpec{
"its1",
"ITS",
"RAWDATA", 0, Lifetime::Timeframe},
32 InputSpec{
"its1",
"ITS",
"RAWDATA", 1, Lifetime::Timeframe}};
38 std::vector<DataHeader> dataheaders;
39 dataheaders.emplace_back(
"RAWDATA",
"TPC", 0, 5 *
PAGESIZE);
40 dataheaders.emplace_back(
"RAWDATA",
"ITS", 0, 3 *
PAGESIZE, 0, 3);
41 dataheaders.emplace_back(
"RAWDATA",
"ITS", 1, 4 *
PAGESIZE);
43 return test::createData(inputspecs, dataheaders);
50 REQUIRE(dataset.messages.size() > 0);
51 REQUIRE(dataset.messages[0].at(0) !=
nullptr);
52 REQUIRE(inputs.
size() > 0);
53 REQUIRE((*inputs.
begin()).header == dataset.messages[0].at(0)->data());
58 LOG(info) <<
"data " <<
count <<
" " << *((
int*)it.data());
63 auto const* raw = it.raw();
65 auto const* payload = it.data();
67 size_t payloadSize = it.size();
69 size_t offset = it.offset();
70 REQUIRE(rdh !=
nullptr);
72 REQUIRE(payload == raw +
offset);
73 REQUIRE(*
reinterpret_cast<int const*
>(payload) == dataset.values[
count]);
75 auto const* dh = it.o2DataHeader();
82 INFO(it <<
" payload size " << it.size());
89 for (
auto it = filteredparser.
begin(),
end = filteredparser.
end(); it !=
end; ++it, ++
count) {
90 LOG(info) <<
"data " <<
count <<
" " << *((
int*)it.data());
91 REQUIRE(*
reinterpret_cast<int const*
>(it.data()) == dataset.values[
count]);
97 for (
auto it = nomatchingparser.
begin(),
end = nomatchingparser.
end(); it !=
end; ++it, ++
count) {
98 LOG(info) <<
"data " <<
count <<
" " << *((
int*)it.data());
Raw page test data generator.