9 #include <netinet/in.h>
146 out << setw(2) << (int) hit.
getPMT() <<
' '
147 << setw(8) << (int) hit.
getT() <<
' '
148 << setw(3) << (int) hit.
getToT();
178 return first.
getT() < second.
getT();
210 return !(first == second);
KM3NeT DAQ constants, bit handling, etc.
Interface for binary input.
Interface for binary output.
JPMT_t pmt
PMT readout channel in FPGA.
friend JWriter & operator<<(JWriter &, const JDAQHit &)
Write DAQ hit to output.
JDAQHit()
Default constructor.
friend JReader & operator>>(JReader &, JDAQHit &)
Read DAQ hit from input.
JPMT_t getPMT() const
Get PMT.
JTDC_t tdc
leading edge [ns]
friend std::istream & operator>>(std::istream &in, JDAQHit &hit)
Read DAQ hit from input.
static JTOT_t getMaximalToT()
Get maximal time-over-threshold.
JTDC_t getT() const
Get time.
unsigned char JTOT_t
time over threshold [ns]
JTOT_t tot
time over threshold [ns]
friend std::ostream & operator<<(std::ostream &out, const JDAQHit &hit)
Write DAQ hit to output.
JTOT_t getToT() const
Get time-over-threshold.
unsigned char JPMT_t
PMT channel in FPGA.
unsigned int JTDC_t
leading edge [ns]
JDAQHit(const JPMT_t pmt_id, const JTDC_t tdc_ns, const JTOT_t tot_ns)
Constructor.
KM3NeT DAQ data structures and auxiliaries.
bool operator<(const JDAQHit &first, const JDAQHit &second)
Less than operator for DAQ hits.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
size_t getSizeof< JDAQHit >()
Get size of type.
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.