Jpp
|
Data storage class for rate measurements of all PMTs in one module. More...
#include <JDAQSummaryFrame.hh>
Public Types | |
typedef JDAQRate::JRate_t | JRate_t |
Public Member Functions | |
JDAQSummaryFrame () | |
Default constructor. More... | |
JDAQSummaryFrame (const JDAQModuleIdentifier &id) | |
Constructor. More... | |
JDAQSummaryFrame (const JDAQSuperFrame &input) | |
Constructor. More... | |
const JDAQRate & | operator[] (const int tdc) const |
Get DAQ rate of given PMT. More... | |
JDAQRate & | operator[] (const int tdc) |
Get DAQ rate of given PMT. More... | |
double | getRate (const int tdc, const double factor=1.0) const |
Get count rate. More... | |
double | getWeight (const int tdc, const double factor=1.0) const |
Get weight. More... | |
void | setRate (const int tdc, const double rate_Hz) |
Set count rate. More... | |
ClassDefNV (JDAQSummaryFrame, 2) | |
const JDAQModuleIdentifier & | getModuleIdentifier () const |
Get Module identifier. More... | |
void | setModuleIdentifier (const JDAQModuleIdentifier &module) |
Set Module identifier. More... | |
int | getModuleID () const |
Get module identifier. More... | |
ClassDefNV (JDAQModuleIdentifier, 1) | |
const JDAQFrameStatus & | getDAQFrameStatus () const |
Get DAQ frame status. More... | |
void | setDAQFrameStatus (const JDAQFrameStatus &status) |
Set DAQ frame status. More... | |
int | getDAQStatus () const |
Get DAQ status. More... | |
int | getStatus () const |
Get TDC and White Rabbit status. More... | |
int | getFIFOStatus () const |
Get FIFO status. More... | |
bool | testDAQStatus () const |
Test DAQ status of packets. More... | |
bool | testStatus () const |
Test TDC and White Rabbit status. More... | |
int | getUDPNumberOfReceivedPackets () const |
Get number of received UDP packets. More... | |
int | getUDPMaximalSequenceNumber () const |
Get maximal sequence number of UDP packet. More... | |
bool | testWhiteRabbitStatus () const |
Test White Rabbit status. More... | |
bool | testTDCStatus () const |
Test TDC status. More... | |
bool | testHighRateVeto () const |
Test high-rate veto status. More... | |
bool | testHighRateVeto (const int tdc) const |
Test high-rate veto status. More... | |
int | countHighRateVeto () const |
Count high-rate veto status. More... | |
bool | testFIFOStatus () const |
Test FIFO status. More... | |
bool | testFIFOStatus (const int tdc) const |
Test FIFO status. More... | |
int | countFIFOStatus () const |
Count FIFO status. More... | |
bool | hasUDPTrailer () const |
Get UDP trailer status. More... | |
void | setHighRateVeto (const int tdc, const bool value) |
Set high-rate veto. More... | |
ClassDefNV (JDAQFrameStatus, 1) | |
Static Public Member Functions | |
static int | sizeOf () |
Get size of object. More... | |
static const JDAQFrameStatus & | getInstance () |
Get reference to unique instance of this class object. More... | |
Static Public Attributes | |
static int | ROOT_IO_VERSION |
Streamer version of JDAQSummaryslice as obtained from ROOT file. More... | |
Protected Attributes | |
JDAQRate | data [NUMBER_OF_PMTS] |
int | id |
int | daq |
int | status |
int | fifo |
int | status_3 |
int | status_4 |
Friends | |
JReader & | operator>> (JReader &in, JDAQSummaryFrame &summary) |
Read DAQ summary frame from input. More... | |
JWriter & | operator<< (JWriter &out, const JDAQSummaryFrame &summary) |
Write DAQ summary frame to output. More... | |
Data storage class for rate measurements of all PMTs in one module.
Definition at line 320 of file JDAQSummaryFrame.hh.
Definition at line 326 of file JDAQSummaryFrame.hh.
|
inline |
Default constructor.
Definition at line 332 of file JDAQSummaryFrame.hh.
|
inline |
Constructor.
id | module identifier |
Definition at line 343 of file JDAQSummaryFrame.hh.
|
inline |
Constructor.
Note that normally the rate is set to the number of hits per unit frame time but if either the high-rate veto or FIFO (almost) full bit is on, the rate is set to the number of hits divided by the time of the last hit.
input | super frame |
Definition at line 358 of file JDAQSummaryFrame.hh.
|
inline |
Get DAQ rate of given PMT.
tdc | TDC |
Definition at line 407 of file JDAQSummaryFrame.hh.
|
inline |
Get DAQ rate of given PMT.
tdc | TDC |
Definition at line 422 of file JDAQSummaryFrame.hh.
|
inline |
Get count rate.
tdc | TDC |
factor | scaling factor |
Definition at line 438 of file JDAQSummaryFrame.hh.
|
inline |
Get weight.
tdc | TDC |
factor | scaling factor |
Definition at line 451 of file JDAQSummaryFrame.hh.
|
inline |
Set count rate.
tdc | TDC |
rate_Hz | rate [Hz] |
Definition at line 463 of file JDAQSummaryFrame.hh.
|
inlinestatic |
Get size of object.
Definition at line 510 of file JDAQSummaryFrame.hh.
KM3NETDAQ::JDAQSummaryFrame::ClassDefNV | ( | JDAQSummaryFrame | , |
2 | |||
) |
|
inlineinherited |
Get Module identifier.
Definition at line 50 of file JDAQModuleIdentifier.hh.
|
inlineinherited |
Set Module identifier.
module | Module identifier |
Definition at line 61 of file JDAQModuleIdentifier.hh.
|
inlineinherited |
Get module identifier.
Definition at line 72 of file JDAQModuleIdentifier.hh.
|
inherited |
|
inlinestaticinherited |
Get reference to unique instance of this class object.
This instance has default values which correspond to a valid DAQ frame status.
Definition at line 66 of file JDAQFrameStatus.hh.
|
inlineinherited |
Get DAQ frame status.
Definition at line 81 of file JDAQFrameStatus.hh.
|
inlineinherited |
Set DAQ frame status.
status | DAQ frame status |
Definition at line 92 of file JDAQFrameStatus.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Test DAQ status of packets.
Definition at line 136 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test TDC and White Rabbit status.
Definition at line 147 of file JDAQFrameStatus.hh.
|
inlineinherited |
Get number of received UDP packets.
Definition at line 158 of file JDAQFrameStatus.hh.
|
inlineinherited |
Get maximal sequence number of UDP packet.
Definition at line 169 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test White Rabbit status.
Definition at line 180 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test TDC status.
Definition at line 191 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test high-rate veto status.
Definition at line 202 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test high-rate veto status.
tdc | TDC |
Definition at line 214 of file JDAQFrameStatus.hh.
|
inlineinherited |
Count high-rate veto status.
Definition at line 225 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test FIFO status.
Definition at line 246 of file JDAQFrameStatus.hh.
|
inlineinherited |
Test FIFO status.
tdc | TDC |
Definition at line 258 of file JDAQFrameStatus.hh.
|
inlineinherited |
Count FIFO status.
Definition at line 269 of file JDAQFrameStatus.hh.
|
inlineinherited |
Get UDP trailer status.
Definition at line 290 of file JDAQFrameStatus.hh.
|
inlineinherited |
|
inherited |
|
friend |
Read DAQ summary frame from input.
in | JReader |
summary | JDAQSummaryFrame |
Definition at line 476 of file JDAQSummaryFrame.hh.
|
friend |
Write DAQ summary frame to output.
out | JWriter |
summary | DAQSummaryFrame |
Definition at line 494 of file JDAQSummaryFrame.hh.
|
static |
Streamer version of JDAQSummaryslice as obtained from ROOT file.
Definition at line 518 of file JDAQSummaryFrame.hh.
|
protected |
Definition at line 526 of file JDAQSummaryFrame.hh.
|
protectedinherited |
Definition at line 153 of file JDAQModuleIdentifier.hh.
|
protectedinherited |
Definition at line 364 of file JDAQFrameStatus.hh.
|
protectedinherited |
Definition at line 365 of file JDAQFrameStatus.hh.
|
protectedinherited |
Definition at line 366 of file JDAQFrameStatus.hh.
|
protectedinherited |
Definition at line 367 of file JDAQFrameStatus.hh.
|
protectedinherited |
Definition at line 368 of file JDAQFrameStatus.hh.