24 int main(
int argc,
char **argv)
30 JMultipleFileScanner<JDAQTypes_t> inputFile;
36 JParser<> zap(
"Auxiliary program to print DAQ header data.");
38 zap[
'f'] =
make_field(inputFile,
"input file.");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
49 JObjectMultiplexer<JDAQTypes_t, JDAQHeader> in(inputFile);
53 int numberOfErrors = 0;
56 for ( ; in.hasNext() && counter != inputFile.getLimit(); ++counter) {
67 if (inputFile.getLimit() > 1) {
68 ASSERT(numberOfErrors == 0);
72 cout << header << endl;