8 #include "artdaq-core/Data/Fragment.hh" 16 std::cout <<
"ERROR: need both inputfile(s) and destination.\n";
21 const unsigned total_files = 10;
24 std::vector<std::string> filenames;
25 for(
unsigned file = 1; file < std::min<unsigned>(total_files, argc-1); ++
file) {
26 filenames.push_back(argv[
file]);
38 artdaq::Fragment frag = flxdec.
Fragment(0);
42 std::cout <<
"METADATA: " << (unsigned)meta.
control_word <<
" " 49 if (flxfrag.total_frames() < 6000 || flxfrag.total_frames() > 6036) {
50 std::cout <<
"WARNING: first fragment has a strange size: " 75 artdaq::Fragment frag = flxdec.
Fragment(
f);
77 std::cout <<
f <<
'\t' << flxfrag.
get_ADC(259,37) <<
'\n';
bool check_all_IDs() const
size_t total_frames() const
artdaq::Fragment Fragment(const size_t &frag_num) const
adc_t get_ADC(const unsigned &frame_ID, const uint8_t channel_ID) const
size_t total_fragments() const
int main(int argc, char *argv[])
bool check_all_timestamps() const
bool check_all_CCCs() const