7 #include "artdaq-core/Data/Fragment.hh" 14 #pragma GCC diagnostic push 15 #pragma GCC diagnostic ignored "-Wsign-compare" 17 #define BOOST_TEST_MODULE(MilliSlice_t) 20 BOOST_AUTO_TEST_SUITE(FelixDecode_test)
65 "/pnfs/dune/tape_backed/dunepro/protodune/np04/beam/detector/None/raw/05/" 66 "16/24/57/np04_raw_run004424_0001_dl5.root";
73 artdaq::Fragment frag = flxdec.
Fragment(i);
75 if(frag.timestamp() - flxfrag.
timestamp() >= 12525 || frag.timestamp() - flxfrag.
timestamp() < 12500) {
76 std::cout <<
"\nFragment " << i <<
"\tCrate " << (unsigned)flxfrag.
crate_no() <<
'\t';
77 std::cout <<
"Slot " << (unsigned)flxfrag.
slot_no() <<
'\t';
78 std::cout <<
"Fiber " << (unsigned)flxfrag.
fiber_no() <<
'\n';
84 std::cout <<
"Timestamp difference: " << frag.timestamp() - flxfrag.
timestamp() <<
'\n';
87 std::cout <<
"Timestamp difference: " << frag.timestamp() - flxfrag.
timestamp() <<
'\n';
156 BOOST_AUTO_TEST_SUITE_END()
158 #pragma GCC diagnostic pop
uint8_t slot_no(const unsigned &frame_ID=0) const
uint8_t crate_no(const unsigned &frame_ID=0) const
artdaq::Fragment Fragment(const size_t &frag_num) const
size_t total_fragments() const
uint8_t fiber_no(const unsigned &frame_ID=0) const
BOOST_AUTO_TEST_CASE(BaselineTest)
uint64_t timestamp(const unsigned &frame_ID=0) const