|
Jpp - 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. 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.
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.
Definition at line 33 of file JSupport/JSummaryRouter.hh.
|
inline |
Constructor.
| rate_Hz | default singles rate [Hz] |
Definition at line 40 of file JSupport/JSummaryRouter.hh.
|
inline |
|
inline |
Set default rate.
| rate_Hz | rate [Hz] |
Definition at line 63 of file JSupport/JSummaryRouter.hh.
|
inline |
Update router.
| ps | pointer to new summary slice |
Definition at line 74 of file JSupport/JSummaryRouter.hh.
|
inline |
Check validity of summary data.
Definition at line 102 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary slice.
pointer to summary slice (may be NULL)
Definition at line 113 of file JSupport/JSummaryRouter.hh.
|
inline |
Get address of module.
| module | module |
Definition at line 125 of file JSupport/JSummaryRouter.hh.
|
inline |
Get summary frame.
| module | module |
Definition at line 137 of file JSupport/JSummaryRouter.hh.
|
inline |
Has summary frame.
| module | module |
Definition at line 149 of file JSupport/JSummaryRouter.hh.
|
inline |
Get rate.
| id | PMT identifier |
Definition at line 161 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 170 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 171 of file JSupport/JSummaryRouter.hh.
|
private |
Definition at line 172 of file JSupport/JSummaryRouter.hh.
1.8.5