Jpp
|
File router for fast addressing of summary data. More...
#include <JSummaryFileRouter.hh>
Public Member Functions | |
JSummaryFileRouter (const std::string &file_name, const double rate_Hz) | |
Constructor. More... | |
double | getRate () const |
Get default rate. More... | |
void | update (const JDAQHeader &header) |
Update router. 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... | |
Protected Attributes | |
double | rate_Hz |
Private Attributes | |
JTOOLS::JRouter< int > | router |
const JDAQSummaryslice * | summary |
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 can then be used to obtain the measured singles rate for a given PMT.
Definition at line 37 of file JSummaryFileRouter.hh.
|
inline |
Constructor.
file_name | file name |
rate_Hz | default singles rate [Hz] |
Definition at line 47 of file JSummaryFileRouter.hh.
|
inline |
|
inline |
|
inline |
Get address of module.
module | module |
Definition at line 113 of file JSummaryFileRouter.hh.
|
inline |
Get summary frame.
module | module |
Definition at line 125 of file JSummaryFileRouter.hh.
|
inline |
Has summary frame.
module | module |
Definition at line 137 of file JSummaryFileRouter.hh.
|
inline |
Get rate.
id | PMT identifier |
Definition at line 149 of file JSummaryFileRouter.hh.
|
protected |
Definition at line 158 of file JSummaryFileRouter.hh.
|
private |
Definition at line 161 of file JSummaryFileRouter.hh.
|
private |
Definition at line 162 of file JSummaryFileRouter.hh.