Jpp
master_rocky
the software that should make you happy
|
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a function of the optical module identifier and PMT address. More...
#include <JSummaryRouter.hh>
Public Member Functions | |
JSummaryRouter () | |
Default constructor. More... | |
JSummaryRouter (const double rate_Hz) | |
Constructor with default rate. More... | |
const JDAQSummaryFrame & | getSummaryFrame () const |
Get default summary frame. More... | |
double | getRate () const |
Get default rate. More... | |
bool | hasDefault () const |
Has default. More... | |
void | setDefault (const double rate_Hz) |
Set default. More... | |
void | unsetDefault () |
Unset default. More... | |
void | update (const JDAQSummaryslice *ps) |
Update router. More... | |
bool | is_valid () const |
Check validity of summary data. More... | |
const JDAQSummaryslice * | getSummaryslice () const |
Get summary slice. More... | |
const int | getAddress (const JDAQModuleIdentifier &module) const |
Get address of module. More... | |
bool | hasSummaryFrame (const JDAQModuleIdentifier &module) const |
Has summary frame. More... | |
const JDAQSummaryFrame & | getSummaryFrame (const JDAQModuleIdentifier &module) const |
Get summary frame. More... | |
double | getRate (const JDAQPMTIdentifier &id) const |
Get rate. More... | |
Static Public Attributes | |
static const int | MODULE_IDENTIFIER = 1 |
module identifier to allow default More... | |
Private Attributes | |
JTOOLS::JRouter< int > | router |
const JDAQSummaryslice * | summary |
JDAQSummaryFrame | frame |
double | rate_Hz |
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a function of the optical module identifier and PMT address.
The member method update() should be used to update the internal router for a given event. The member method getRate(const JDAQPMTIdentifier&) const can subsequently be used to obtain the measured singles rate for a given PMT.
Optionally, a default rate can be set. In that case, a default KM3NETDAQ::JDAQSummaryFrame is setup which is used when no summary data are available or if the rate is below the specified default rate.
Note that the default rate is subject to the limited accuracy of the summary data.
Definition at line 41 of file JSupport/JSummaryRouter.hh.
|
inline |
Default constructor.
Definition at line 46 of file JSupport/JSummaryRouter.hh.
|
inline |
Constructor with default rate.
rate_Hz | singles rate [Hz] |
Definition at line 58 of file JSupport/JSummaryRouter.hh.
|
inline |
Get default summary frame.
Definition at line 72 of file JSupport/JSummaryRouter.hh.
|
inline |
|
inline |
Has default.
Definition at line 94 of file JSupport/JSummaryRouter.hh.
|
inline |
Set default.
rate_Hz | rate [Hz] |
Definition at line 105 of file JSupport/JSummaryRouter.hh.
|
inline |
Unset default.
Definition at line 123 of file JSupport/JSummaryRouter.hh.
|
inline |
Update router.
ps | pointer to new summary slice |
Definition at line 141 of file JSupport/JSummaryRouter.hh.
|
inline |
Check validity of summary data.
Definition at line 169 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary slice.
pointer to summary slice (may be NULL)
Definition at line 180 of file JSupport/JSummaryRouter.hh.
|
inline |
Get address of module.
module | module |
Definition at line 192 of file JSupport/JSummaryRouter.hh.
|
inline |
Has summary frame.
module | module |
Definition at line 204 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary frame.
module | module |
Definition at line 216 of file JSupport/JSummaryRouter.hh.
|
inline |
Get rate.
id | PMT identifier |
Definition at line 233 of file JSupport/JSummaryRouter.hh.
|
static |
module identifier to allow default
Definition at line 248 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 251 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 252 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 253 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 254 of file JSupport/JSummaryRouter.hh.