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 | |
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 36 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JPMT_t |
PMT channel in FPGA.
Definition at line 40 of file JDAQHit.hh.
typedef unsigned int KM3NETDAQ::JDAQHit::JTDC_t |
leading edge [ns]
Definition at line 41 of file JDAQHit.hh.
typedef unsigned char KM3NETDAQ::JDAQHit::JTOT_t |
time over threshold [ns]
Definition at line 42 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 59 of file JDAQHit.hh.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Get maximal time-over-threshold.
Definition at line 107 of file JDAQHit.hh.
|
inlinestatic |
KM3NETDAQ::JDAQHit::ClassDefNV | ( | JDAQHit | , |
1 | |||
) |
Read DAQ hit from input.
in | JReader |
hit | JDAQHit |
Definition at line 120 of file JDAQHit.hh.
Write DAQ hit to output.
out | JWriter |
hit | JDAQHit |
Definition at line 137 of file JDAQHit.hh.
|
protected |
PMT readout channel in FPGA.
Definition at line 162 of file JDAQHit.hh.
|
protected |
leading edge [ns]
Definition at line 163 of file JDAQHit.hh.
|
protected |
time over threshold [ns]
Definition at line 164 of file JDAQHit.hh.