Jpp
15.0.0
the software that should make you happy
|
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier and PMT address. More...
#include <JSummaryRouter.hh>
Public Member Functions | |
JSummaryRouter (const double rate_Hz=0.0) | |
Constructor. More... | |
double | getRate () const |
Get default rate. More... | |
void | setRate (const double rate_Hz) |
Set default rate. 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... | |
const JDAQSummaryFrame & | getSummaryFrame (const JDAQModuleIdentifier &module) const |
Get summary frame. More... | |
bool | hasSummaryFrame (const JDAQModuleIdentifier &module) const |
Has summary frame. More... | |
double | getRate (const JDAQPMTIdentifier &id) const |
Get rate. More... | |
Private Attributes | |
double | rate_Hz |
JTOOLS::JRouter< int > | router |
const JDAQSummaryslice * | summary |
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier and PMT address.
The member method JSummaryRouter::update should be used to update the internal router for a given event.
The member method JSummaryRouter::getRate can then be used to obtain the measured singles rate for a given PMT.
Note that if there is no measured rate or if it is below the specified default rate, the default rate is taken.
Definition at line 34 of file JSupport/JSummaryRouter.hh.
|
inline |
Constructor.
rate_Hz | default singles rate [Hz] |
Definition at line 41 of file JSupport/JSummaryRouter.hh.
|
inline |
|
inline |
Set default rate.
rate_Hz | rate [Hz] |
Definition at line 64 of file JSupport/JSummaryRouter.hh.
|
inline |
Update router.
ps | pointer to new summary slice |
Definition at line 75 of file JSupport/JSummaryRouter.hh.
|
inline |
Check validity of summary data.
Definition at line 103 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary slice.
pointer to summary slice (may be NULL)
Definition at line 114 of file JSupport/JSummaryRouter.hh.
|
inline |
Get address of module.
module | module |
Definition at line 126 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary frame.
module | module |
Definition at line 138 of file JSupport/JSummaryRouter.hh.
|
inline |
Has summary frame.
module | module |
Definition at line 150 of file JSupport/JSummaryRouter.hh.
|
inline |
Get rate.
id | PMT identifier |
Definition at line 162 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 177 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 178 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 179 of file JSupport/JSummaryRouter.hh.