Jpp 19.3.0-rc.3
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. | |
void | update (const JDAQSummaryslice *ps) |
Update router. | |
bool | is_valid () const |
Check validity of summary data. | |
const JDAQSummaryslice * | getSummaryslice () const |
Get summary slice. | |
const int | getAddress (const JDAQModuleIdentifier &module) const |
Get address of module. | |
bool | hasSummaryFrame (const JDAQModuleIdentifier &module) const |
Has summary frame. | |
const JDAQSummaryFrame & | getSummaryFrame (const JDAQModuleIdentifier &module) const |
Get summary frame. | |
const JDAQSummaryFrame & | getSummaryFrame (const JDAQModuleIdentifier &module, const double rate_Hz) const |
Get summary frame. | |
double | getRate (const JDAQPMTIdentifier &id, const double rate_Hz) const |
Get rate. | |
Private Attributes | |
JTOOLS::JRouter< int > | router |
const JDAQSummaryslice * | summary |
JDAQSummaryFrame | frame |
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.
Definition at line 36 of file JSupport/JSummaryRouter.hh.
|
inline |
Default constructor.
Definition at line 41 of file JSupport/JSummaryRouter.hh.
|
inline |
Update router.
ps | pointer to new summary slice |
Definition at line 52 of file JSupport/JSummaryRouter.hh.
|
inline |
Check validity of summary data.
Definition at line 80 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary slice.
Definition at line 91 of file JSupport/JSummaryRouter.hh.
|
inline |
Get address of module.
module | module |
Definition at line 103 of file JSupport/JSummaryRouter.hh.
|
inline |
Has summary frame.
module | module |
Definition at line 115 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary frame.
module | module |
Definition at line 127 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary frame.
module | module |
rate_Hz | default rate [Hz] |
Definition at line 143 of file JSupport/JSummaryRouter.hh.
|
inline |
Get rate.
id | PMT identifier |
rate_Hz | default rate [Hz] |
Definition at line 170 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 186 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 187 of file JSupport/JSummaryRouter.hh.
|
mutableprivate |
Definition at line 188 of file JSupport/JSummaryRouter.hh.