#include #include #include #include "TROOT.h" #include "TFile.h" #include "km3net-dataformat/online/JDAQTimeslice.hh" #include "km3net-dataformat/online/JDAQSummaryslice.hh" #include "km3net-dataformat/online/JDAQEvent.hh" #include "JSupport/JAutoTreeScanner.hh" #include "JSupport/JSupport.hh" #include "JSupport/JSupportToolkit.hh" #include "JROOT/JROOTClassSelector.hh" #include "Jeep/JPrint.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Auxiliary program to print frame index range of data taking run. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; string inputFile; JROOTClassSelector selector; int debug; try { JParser<> zap("Auxiliary program to print frame index range of data taking run."); zap['f'] = make_field(inputFile); zap['C'] = make_field(selector, "data type selection.") = getROOTClassSelection(); zap['d'] = make_field(debug) = 1; zap['C'] = JPARSER::not_initialised(); zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } JTreeScanner<>::debug = debug; JAutoTreeScanner zmap = JType(); zmap[selector]->configure(inputFile); cout << getFrameIndexRange(*zmap[selector]) << endl; }