|
Jpp 20.0.0-72-g597b30bc9
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. | |
| 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 |
| Get rate. | |
| double | getRate (const JDAQPMTIdentifier &id, const double rate_Hz) const |
| Get rate. | |
| std::ostream & | print (std::ostream &out, const bool lpr=false) const |
| Print DAQ summary. | |
| ClassDef (JDAQSummaryslice, 6) | |
| ClassDef (JDAQPreamble, 1) | |
| ClassDef (JDAQSummarysliceHeader, 2) | |
| ClassDef (JDAQHeader, 2) | |
| ClassDef (JDAQChronometer, 3) | |
| int | getLength () const |
| Get length. | |
| int | getDataType () const |
| Get data type. | |
| ClassDefNV (JDAQAbstractPreamble, 1) | |
| const JDAQSummarysliceHeader & | getDAQSummarysliceHeader () const |
| Get DAQ summary slice header. | |
| const JDAQHeader & | getDAQHeader () const |
| Get DAQ header. | |
| void | setDAQHeader (const JDAQHeader &header) |
| Set DAQ header. | |
| const JDAQChronometer & | getDAQChronometer () const |
| Get DAQ chronometer. | |
| void | setDAQChronometer (const JDAQChronometer &chronometer) |
| Set DAQ chronometer. | |
| int | getDetectorID () const |
| Get detector identifier. | |
| int | getRunNumber () const |
| Get run number. | |
| int | getFrameIndex () const |
| Get frame index. | |
| JDAQUTCExtended | getTimesliceStart () const |
| Get start of timeslice. | |
| void | setRunNumber (const int run) |
| Set run number. | |
| void | setFrameIndex (const int frame_index) |
| Set frame index. | |
| void | setTimesliceStart (const JDAQUTCExtended ×lice_start) |
| Set timeslice start time. | |
Static Public Member Functions | |
| static void | actionAtFileOpen (int version) |
| Action method at file open. | |
| template<class T > | |
| static JDAQPreamble | getDAQPreamble (const T &object) |
| Get DAQ preamble. | |
Protected Attributes | |
| int | length |
| int | type |
| int | detector_id |
| int | run |
| int | frame_index |
| JDAQUTCExtended | timeslice_start |
Private Attributes | |
| JTOOLS::JRouter< int > | router |
| 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 53 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get address of module.
| module | module |
Definition at line 80 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Has summary frame.
| module | module |
Definition at line 92 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get summary frame.
| module | module |
Definition at line 104 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get summary frame.
| module | module |
| rate_Hz | default rate [Hz] |
Definition at line 120 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get rate.
| id | PMT identifier |
Definition at line 146 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Get rate.
| id | PMT identifier |
| rate_Hz | default rate [Hz] |
Definition at line 162 of file JSupport/JSummaryRouter.hh.
|
inlineinherited |
Print DAQ summary.
| out | output stream |
| lpr | long print |
Definition at line 88 of file JDAQSummaryslice.hh.
|
inlinestaticinherited |
Action method at file open.
| version | version |
Definition at line 122 of file JDAQSummaryslice.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlinestaticinherited |
Get DAQ preamble.
This method should be used for binary I/O to get the actual data for the given object.
To this end, the following method should be overloaded for the corresponding data type.
size_t getSizeof(const T&);
| object | object |
Definition at line 76 of file JDAQPreamble.hh.
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
Get DAQ summary slice header.
Definition at line 44 of file JDAQSummarysliceHeader.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get DAQ chronometer.
Definition at line 88 of file JDAQChronometer.hh.
|
inlineinherited |
Set DAQ chronometer.
| chronometer | DAQ chronometer |
Definition at line 99 of file JDAQChronometer.hh.
|
inlineinherited |
Get detector identifier.
Definition at line 110 of file JDAQChronometer.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get start of timeslice.
Definition at line 144 of file JDAQChronometer.hh.
|
inlineinherited |
|
inlineinherited |
Set frame index.
| frame_index | frame index |
Definition at line 166 of file JDAQChronometer.hh.
|
inlineinherited |
Set timeslice start time.
| timeslice_start | timeslice start time |
Definition at line 177 of file JDAQChronometer.hh.
|
privateinherited |
Definition at line 178 of file JSupport/JSummaryRouter.hh.
|
mutableprivateinherited |
Definition at line 179 of file JSupport/JSummaryRouter.hh.
|
protectedinherited |
Definition at line 69 of file JDAQAbstractPreamble.hh.
|
protectedinherited |
Definition at line 70 of file JDAQAbstractPreamble.hh.
|
protectedinherited |
Definition at line 187 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 188 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 189 of file JDAQChronometer.hh.
|
protectedinherited |
Definition at line 190 of file JDAQChronometer.hh.