#include "dune-raw-data/Overlays/FelixDecode.hh"
#include <stdint.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "art/Framework/Principal/Handle.h"
#include "artdaq-core/Data/Fragment.hh"
#include "canvas/Utilities/InputTag.h"
#include "dune-raw-data/Overlays/FelixFragment.hh"
#include "gallery/Event.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 13 of file FELIXdecode.cc.
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) {
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: " 74 for (
unsigned f = 0;
f < flxdec.total_fragments(); ++
f) {
75 artdaq::Fragment frag = flxdec.Fragment(
f);
77 std::cout <<
f <<
'\t' << flxfrag.get_ADC(259,37) <<
'\n';
80 flxdec.check_all_timestamps();
81 flxdec.check_all_CCCs();
82 flxdec.check_all_IDs();
size_t total_frames() const