Jpp
|
Hit data structure. More...
#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... | |
static int | sizeOf () |
Get size of object. 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 | |
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... | |
JReader & | operator>> (JReader &in, JDAQHit &hit) |
Read DAQ hit from input. More... | |
JWriter & | operator<< (JWriter &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 40 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JPMT_t |
PMT channel in FPGA.
Definition at line 44 of file JDAQHit.hh.
typedef unsigned int KM3NETDAQ::JDAQHit::JTDC_t |
leading edge [ns]
Definition at line 45 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JTOT_t |
time over threshold [ns]
Definition at line 46 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 63 of file JDAQHit.hh.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Get maximal time-over-threshold.
Definition at line 111 of file JDAQHit.hh.
|
inlinestatic |
KM3NETDAQ::JDAQHit::ClassDefNV | ( | JDAQHit | , |
1 | |||
) |
|
friend |
|
friend |
Write DAQ hit to output.
out | output stream |
hit | hit |
Definition at line 145 of file JDAQHit.hh.
Read DAQ hit from input.
in | JReader |
hit | JDAQHit |
Definition at line 164 of file JDAQHit.hh.
Write DAQ hit to output.
out | JWriter |
hit | JDAQHit |
Definition at line 181 of file JDAQHit.hh.
|
protected |
PMT readout channel in FPGA.
Definition at line 206 of file JDAQHit.hh.
|
protected |
leading edge [ns]
Definition at line 207 of file JDAQHit.hh.
|
protected |
time over threshold [ns]
Definition at line 208 of file JDAQHit.hh.