#include #include #include #include "TROOT.h" #include "TFile.h" #include "JSupport/JMultipleFileScanner.hh" #include "JSupport/JFileRecorder.hh" #include "JAcoustics/JEvent.hh" #include "JAcoustics/JEvt.hh" #include "JAcoustics/JSuperEvt.hh" #include "JAcoustics/JSupport.hh" #include "JLang/JPipe.hh" #include "JROOT/JROOTClassSelector.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Auxiliary program to convert acoustic events. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; typedef JTYPELIST::typelist typelist; JMultipleFileScanner inputFile; JFileRecorder outputFile; JLimit_t& numberOfEvents = inputFile.getLimit(); JROOTClassSelector selector; int debug; try { JParser<> zap("Auxiliary program to convert acoustic events."); zap['f'] = make_field(inputFile); zap['o'] = make_field(outputFile); zap['n'] = make_field(numberOfEvents) = JLimit::max(); zap['C'] = make_field(selector, "name of data structure") = getROOTClassSelection(); zap['d'] = make_field(debug) = 1; zap['C'] = JPARSER::not_initialised(); zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } outputFile.open(); inputFile | JValve(selector) | outputFile; outputFile.close(); }