36{
   39 
   41  JLimit_t&               numberOfEvents = inputFile.getLimit();
 
   43 
   44  try {
   45 
   46    JParser<> zap(
"Example application to print acoustics event.");
 
   47 
   48    zap[
'f'] = 
make_field(inputFile,       
"output of JAcousticEventBuilder[.sh]");
 
   51 
   52    zap(argc, argv);
   53  }
   54  catch(const exception &error) {
   55    FATAL(error.what() << endl);
 
   56  }
   57 
   60 
   62 
   64 
   66 
   68 
   69    for (JEvent::const_iterator hit = evt->begin(); hit != evt->end(); ++hit) {
   70      buffer[hit->getID()].push_back(*hit);
   71    }
   72 
   73    size_t duplicates = 0;
   74    
   76 
   78 
   79      if (ps->second.size() >= 2u) {
   80 
   81        duplicates += 1;
   82 
   84 
   85          cout << endl;
   86        
   87          for (vector<JTransmission>::const_iterator i = ps->second.begin(); i != ps->second.end(); ++i) {
   88 
   89            cout << setw (8)    << i->getRunNumber() << ' '
   90                 << setw (2)    << evt->
getID()      << 
' ' 
   91                 << setw (10)   << i->getID()        << ' '
   92                 << 
FIXED(10,0) << i->getQ()         << 
' ' 
   93                 << 
FIXED(15,6) << i->getToA()       << 
' ';
 
   94 
   96          
   97            for (vector<JTransmission>::const_iterator 
j = ps->second.begin(); 
j != ps->second.end(); ++
j) {
 
   99                if (i->getQ() == 
j->getQ()) {
 
  101                }
  102              }
  103            }
  104 
  105            cout << (
n == 0 ? 
"" : 
"*") << endl;
 
  106          }
  107        }
  108      }
  109    }
  110 
  111    Q0.put(evt->size());
  112    Q1.put(duplicates);    
  113  }
  114 
  115  for (const auto& Q : { Q0, Q1 }) {
  116    if (Q.getCount() > 0) {
  117      Q.print(cout);
  118    }
  119  }
  120}
#define DEBUG(A)
Message macros.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
General purpose class for object reading from a list of file names.
 
virtual bool hasNext() override
Check availability of next element.
 
counter_type getCounter() const
Get counter.
 
virtual const pointer_type & next() override
Get next element.
 
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary data structure for floating point format specification.
 
int getID() const
Get emitter identifier.
 
double getQ() const
Get quality.
 
Auxiliary class for defining the range of iterations of objects.
 
static counter_type max()
Get maximum counter value.