9 #include <netinet/in.h>
127 if (in >> pmt >> tdc >> tot) {
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);
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
Interface for binary output.
friend JWriter & operator<<(JWriter &, const JDAQHit &)
Write DAQ hit to output.
JDAQHit()
Default constructor.
JTDC_t getT() const
Get time.
JPMT_t getPMT() const
Get PMT.
unsigned int JTDC_t
leading edge [ns]
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
JTOT_t tot
time over threshold [ns]
JTOT_t getToT() const
Get time-over-threshold.
size_t getSizeof< JDAQHit >()
Get size of type.
unsigned char JTOT_t
time over threshold [ns]
JDAQHit(const JPMT_t pmt_id, const JTDC_t tdc_ns, const JTOT_t tot_ns)
Constructor.
Interface for binary input.
JTDC_t tdc
leading edge [ns]
friend std::istream & operator>>(std::istream &in, JDAQHit &hit)
Read DAQ hit from input.
friend JReader & operator>>(JReader &, JDAQHit &)
Read DAQ hit from input.
friend std::ostream & operator<<(std::ostream &out, const JDAQHit &hit)
Write DAQ hit to output.
KM3NeT DAQ constants, bit handling, etc.
bool operator!=(const JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
JPMT_t pmt
PMT readout channel in FPGA.
bool operator<(const JDAQHit &first, const JDAQHit &second)
Less than operator for DAQ hits.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
unsigned char JPMT_t
PMT channel in FPGA.
static JTOT_t getMaximalToT()
Get maximal time-over-threshold.