38     JToA_t( 
const JToA& 
data, 
const int counter) :
 
   51     friend inline std::ostream& 
operator<<(std::ostream& out, 
const JToA_t& 
object)
 
   56       out << setw(6)     << 
object.RUN           << 
' ' 
   57           << setw(8)     << 
object.counter       << 
' '  
   58           << 
FIXED(20,5) << (
static_cast<double>(
object.SECONDS) + 
static_cast<double>(
object.TICKS)*16E-9)  << 
' ' 
   59           << setw(10)    << 
object.DOMID         << 
' ' 
   60           << 
FIXED(9,6)  << 
object.TOA_NS         << 
' '  
   61           << 
FIXED(5,0)  << 
object.QUALITYFACTOR;
 
   76     friend inline bool operator<(
const JToA_t& first, 
const JToA_t& second)
 
   78       return (first.TOA_NS < second.TOA_NS);
 
   90 int main(
int argc, 
char **argv)
 
   96   JLimit_t&       numberOfEvents = inputFile.getLimit();
 
  103     JParser<> zap(
"Example program to test acoustic data.");
 
  113   catch(
const exception &error) {
 
  114     FATAL(error.what() << endl);
 
  122   for (
int counter = 0; inputFile.
hasNext(); ++counter) {
 
  124     STATUS(
"counter: " << setw(8) << counter << 
'\r' << flush); 
DEBUG(endl);
 
  126     const JToA* parameters = inputFile.
next();
 
  132   constexpr 
double s2ns = 1E9;
 
  140       sort(buffer.begin(), buffer.end());
 
  142       for (buffer_type::const_iterator p = buffer.begin(); p != buffer.end(); ++p) {
 
  143         for (buffer_type::const_iterator q = buffer.begin(); q != p; ++q) {
 
  145           if (p->DOMID == q->DOMID &&
 
  146               p->QUALITYFACTOR - q->QUALITYFACTOR <= lrint(s2ns*precision)  &&
 
  147               llabs(p->TOA_NS - q->TOA_NS) <= llrint(s2ns*precision)) {
 
  149             if (!allowed || (p->TOA_NS < llrint(s2ns*
TOAMAX_S) &&
 
  150                              q->TOA_NS < llrint(s2ns*
TOAMAX_S))) {
 
  155               cout << 
"Difference between absolute times "  
  156                    << 
SCIENTIFIC(12,3) << (p->TOA_NS-q->TOA_NS) << 
" nanoseconds\n";
 
ROOT TTree parameter settings.
 
General purpose messaging.
 
#define DEBUG(A)
Message macros.
 
Scanning of objects from multiple files according a format that follows from the extension of each fi...
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
I/O formatting auxiliaries.
 
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.
 
virtual const pointer_type & next() override
Get next element.
 
int main(int argc, char **argv)
 
bool operator<(const Head &first, const Head &second)
Less than operator.
 
static const double TOAMAX_S
Maximal allowed time-of-arrival [s].
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
std::vector< JHitW0 > buffer_type
hits
 
Auxiliary data structure for floating point format specification.
 
Time-of-arrival data from acoustic piezo sensor or hydrophone.
 
uint32_t DOMID
DAQ run number.
 
int32_t WAVEFORMID
DOM unique identifeir.
 
Auxiliary class for defining the range of iterations of objects.
 
static counter_type max()
Get maximum counter value.
 
Auxiliary data structure for floating point format specification.