|
Jpp test-rotations-old
the software that should make you happy
|
File router for fast addressing of summary data. More...
#include <JSummaryFileRouter.hh>
Public Member Functions | |
| JSummaryFileRouter (const std::string &file_name) | |
| Constructor. | |
| void | update (const JDAQHeader &header) |
| Update router. | |
| 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 |
File router for fast addressing of summary data.
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 at the closest time of the event.
Definition at line 37 of file JSummaryFileRouter.hh.
|
inline |
Constructor.
| file_name | file name |
Definition at line 47 of file JSummaryFileRouter.hh.
|
inline |
Update router.
| header | header |
Definition at line 58 of file JSummaryFileRouter.hh.
|
inlineinherited |
Update router.
| ps | pointer to new summary slice |
Definition at line 52 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Check validity of summary data.
Definition at line 80 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get summary slice.
Definition at line 91 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get address of module.
| module | module |
Definition at line 103 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Has summary frame.
| module | module |
Definition at line 115 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get summary frame.
| module | module |
Definition at line 127 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get summary frame.
| module | module |
| rate_Hz | default rate [Hz] |
Definition at line 143 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get rate.
| id | PMT identifier |
| rate_Hz | default rate [Hz] |
Definition at line 170 of file JSupport/JSummaryRouter.hh.
|
privateinherited |
Definition at line 186 of file JSupport/JSummaryRouter.hh.
|
privateinherited |
Definition at line 187 of file JSupport/JSummaryRouter.hh.
|
mutableprivateinherited |
Definition at line 188 of file JSupport/JSummaryRouter.hh.