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);
96 JLimit_t& numberOfEvents = inputFile.getLimit();
103 JParser<> zap(
"Example program to test acoustic data.");
113 catch(
const exception &error) {
122 for (
int counter = 0; inputFile.hasNext(); ++counter) {
126 const JToA* parameters = inputFile.next();
128 data[parameters->
WAVEFORMID][parameters->
DOMID].push_back(JToA_t(*parameters, counter));
132 constexpr double s2ns = 1
E9;
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) &&
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.
Template definition of a multi-dimensional oscillation probability interpolation table.
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].
std::ostream & operator<<(std::ostream &out, const morphology_type &object)
Write morphology to output stream.
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.