57int main(
int argc,
char **argv)
63 JMultipleFileScanner<JEvt> inputFile;
64 JLimit_t& numberOfEvents = inputFile.getLimit();
65 JFileRecorder<JTYPELIST<JEvt, JMeta>::typelist> outputFile;
66 JContainer<veto_type, vector< JRange<double> > > veto;
71 JParser<> zap(
"Auxiliary program to filter acoustic fit results.");
73 zap[
'f'] = make_field(inputFile,
"input file (output of JKatoomba[.sh])");
74 zap[
'n'] = make_field(numberOfEvents) = JLimit::max();
75 zap[
'o'] = make_field(outputFile) =
"pinnacles.root";
76 zap[
'V'] = make_field(veto,
"veto acoustics events by UTC time ranges [s]");
77 zap[
'd'] = make_field(debug) = 2;
81 catch(
const exception &error) {
82 FATAL(error.what() << endl);
88 outputFile.put(JMeta(argc, argv));
90 while (inputFile.hasNext()) {
92 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r'); DEBUG(endl);
94 const JEvt* evt = inputFile.next();