Jpp  debug
the software that should make you happy
JToA.hh
Go to the documentation of this file.
1 #ifndef __JACOUSTICS__JTOA__
2 #define __JACOUSTICS__JTOA__
3 
4 #include <cstdint>
5 
6 #include <Rtypes.h>
7 
8 
9 /**
10  * \file
11  *
12  * Acoustic event.
13  * \author mdejong
14  */
15 namespace JACOUSTICS {}
16 namespace JPP {
17  using namespace JACOUSTICS;
18 }
19 
20 namespace JACOUSTICS {
21 
22  /**
23  * Time-of-arrival data from acoustic piezo sensor or hydrophone.
24  */
25  struct JToA
26  {
27 
28  JToA();
29 
30  int32_t DETID{}; /// detector identifier
31  int32_t RUN{}; /// DAQ run number
32  uint32_t DOMID{}; /// DOM unique identifeir
33  int32_t WAVEFORMID{}; /// Unique ID of the waveform that best described the signal around TOA_NS
34  int64_t TOA_NS{}; /// Time of Arrival, in ns (relative to Unix epoch, 1 January 1970 00:00:00 UTC)
35  uint32_t SECONDS{}; /// The seconds part of the DAQ frame timestamp
36  uint32_t TICKS{}; /// The ticks (16ns) part of the DAQ frame timestamp
37  uint32_t QUALITYFACTOR{}; /// A measure of how good the waveform match was to the signal
38  uint32_t QUALITYNORMALISATION{}; /// Normalization for the quality factor
39 
40  /** Time stamp of the DAQ frame start in nanoseconds
41  * since the Unix epoch (1 January 1970 00:00:00 +0ns UTC)
42  */
43  int64_t daqFrameTimeStart_ns() const;
44 
45  /** Time of Arrival, expressed in nanoseconds
46  * relative to the DAQ frame start. Accurate to the nanosecond.
47  */
48  int64_t relativeToA_ns() const;
49 
50  /** Time stamp of the DAQ frame start, in seconds
51  * since the Unix epoch (1 January 1970 00:00:00 UTC)
52  */
53  double daqFrameTimeStart_s() const;
54 
55  /** Time of Arrival, expressed in seconds
56  * relative to Unix epoch (1 January 1970 00:00:00 UTC)
57  */
58  double TOA_S() const;
59 
60  /** Time of Arrival, expressed in seconds
61  * relative to the DAQ frame start. Accurate to the (micro)second
62  */
63  double relativeToA_s() const;
64 
66  };
67 
68 } // namespace JACOUSTICS
69 
70 
71 #endif
Auxiliary classes and methods for acoustic position calibration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Time-of-arrival data from acoustic piezo sensor or hydrophone.
Definition: JToA.hh:26
double daqFrameTimeStart_s() const
Time stamp of the DAQ frame start, in seconds since the Unix epoch (1 January 1970 00:00:00 UTC)
Definition: JToAImp.cc:35
int64_t daqFrameTimeStart_ns() const
Normalization for the quality factor.
Definition: JToAImp.cc:58
uint32_t SECONDS
Time of Arrival, in ns (relative to Unix epoch, 1 January 1970 00:00:00 UTC)
Definition: JToA.hh:35
uint32_t DOMID
DAQ run number.
Definition: JToA.hh:32
int64_t TOA_NS
Unique ID of the waveform that best described the signal around TOA_NS.
Definition: JToA.hh:34
uint32_t QUALITYFACTOR
The ticks (16ns) part of the DAQ frame timestamp.
Definition: JToA.hh:37
ClassDefNV(JToA, 1)
uint32_t QUALITYNORMALISATION
A measure of how good the waveform match was to the signal.
Definition: JToA.hh:38
int32_t WAVEFORMID
DOM unique identifeir.
Definition: JToA.hh:33
int64_t relativeToA_ns() const
Time of Arrival, expressed in nanoseconds relative to the DAQ frame start.
Definition: JToAImp.cc:45
double relativeToA_s() const
Time of Arrival, expressed in seconds relative to the DAQ frame start.
Definition: JToAImp.cc:50
int32_t DETID
Definition: JToA.hh:30
int32_t RUN
detector identifier
Definition: JToA.hh:31
double TOA_S() const
Time of Arrival, expressed in seconds relative to Unix epoch (1 January 1970 00:00:00 UTC)
Definition: JToAImp.cc:40
uint32_t TICKS
The seconds part of the DAQ frame timestamp.
Definition: JToA.hh:36