Jpp
15.0.0-rc.2
the software that should make you happy
|
#include <JDAQHit.hh>
Public Types | |
typedef unsigned char | JPMT_t |
PMT channel in FPGA. More... | |
typedef unsigned int | JTDC_t |
leading edge [ns] More... | |
typedef unsigned char | JTOT_t |
time over threshold [ns] More... | |
Public Member Functions | |
JDAQHit () | |
Default constructor. More... | |
JDAQHit (const JPMT_t pmt_id, const JTDC_t tdc_ns, const JTOT_t tot_ns) | |
Constructor. More... | |
JPMT_t | getPMT () const |
Get PMT. More... | |
JTDC_t | getT () const |
Get time. More... | |
JTOT_t | getToT () const |
Get time-over-threshold. More... | |
ClassDefNV (JDAQHit, 1) | |
Static Public Member Functions | |
static JTOT_t | getMaximalToT () |
Get maximal time-over-threshold. More... | |
Protected Attributes | |
JPMT_t | pmt |
PMT readout channel in FPGA. More... | |
JTDC_t | tdc |
leading edge [ns] More... | |
JTOT_t | tot |
time over threshold [ns] More... | |
Friends | |
size_t | getSizeof () |
Definition of method to get size of data type. More... | |
JReader & | operator>> (JReader &, JDAQHit &) |
Read DAQ hit from input. More... | |
JWriter & | operator<< (JWriter &, const JDAQHit &) |
Write DAQ hit to output. More... | |
std::istream & | operator>> (std::istream &in, JDAQHit &hit) |
Read DAQ hit from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JDAQHit &hit) |
Write DAQ hit to output. More... | |
Hit data structure.
N.B. The size of this data structure (i.e. the value obtained with the sizeof()
operator should exactly match the preset number of bytes from the DAQ system. The pragma
statement is necessary to ensure the correct size of this object. Furthermore, this data structure should have no virtual methods and no virtual destructor. Consequently, the standard ROOT CLassDef()
macro is replaced by the designated ClassDefNV()
macro.
Definition at line 34 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JPMT_t |
PMT channel in FPGA.
Definition at line 38 of file JDAQHit.hh.
typedef unsigned int KM3NETDAQ::JDAQHit::JTDC_t |
leading edge [ns]
Definition at line 39 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JTOT_t |
time over threshold [ns]
Definition at line 40 of file JDAQHit.hh.
|
inline |
|
inline |
Constructor.
pmt_id | PMT channel |
tdc_ns | time of hit [ns] |
tot_ns | time over threshold [ns] |
Definition at line 60 of file JDAQHit.hh.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Get maximal time-over-threshold.
Definition at line 108 of file JDAQHit.hh.
KM3NETDAQ::JDAQHit::ClassDefNV | ( | JDAQHit | , |
1 | |||
) |
|
friend |
Definition of method to get size of data type.
This method should be specialised for each desired data type with fixed length.
Read DAQ hit from input.
in | reader |
hit | DAQ hit |
Definition at line 34 of file JDAQHitIO.hh.
Write DAQ hit to output.
out | writer |
hit | DAQ hit |
Definition at line 51 of file JDAQHitIO.hh.
|
friend |
Read DAQ hit from input.
in | input stream |
hit | hit |
Definition at line 121 of file JDAQHit.hh.
|
friend |
Write DAQ hit to output.
out | output stream |
hit | hit |
Definition at line 142 of file JDAQHit.hh.
|
protected |
PMT readout channel in FPGA.
Definition at line 158 of file JDAQHit.hh.
|
protected |
leading edge [ns]
Definition at line 159 of file JDAQHit.hh.
|
protected |
time over threshold [ns]
Definition at line 160 of file JDAQHit.hh.