| 
    Jpp
    17.3.0-rc.1
    
   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.  More... | |
| JSummaryFileRouter (const std::string &file_name, const double rate_Hz) | |
| Constructor.  More... | |
| void | update (const JDAQHeader &header) | 
| Update router.  More... | |
| const JDAQSummaryFrame & | getSummaryFrame () const | 
| Get default summary frame.  More... | |
| const JDAQSummaryFrame & | getSummaryFrame (const JDAQModuleIdentifier &module) const | 
| Get summary frame.  More... | |
| double | getRate () const | 
| Get default rate.  More... | |
| double | getRate (const JDAQPMTIdentifier &id) const | 
| Get rate.  More... | |
| bool | hasDefault () const | 
| Has default.  More... | |
| void | setDefault (const double rate_Hz) | 
| Set default.  More... | |
| void | unsetDefault () | 
| Unset default.  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... | |
| bool | hasSummaryFrame (const JDAQModuleIdentifier &module) const | 
| Has summary frame.  More... | |
Static Public Attributes | |
| static const int | MODULE_IDENTIFIER = 1 | 
| module identifier to allow default  More... | |
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 36 of file JSummaryFileRouter.hh.
      
  | 
  inline | 
Constructor.
| file_name | file name | 
Definition at line 46 of file JSummaryFileRouter.hh.
      
  | 
  inline | 
Constructor.
| file_name | file name | 
| rate_Hz | default singles rate [Hz] | 
Definition at line 58 of file JSummaryFileRouter.hh.
      
  | 
  inline | 
Update router.
| header | header | 
Definition at line 70 of file JSummaryFileRouter.hh.
      
  | 
  inlineinherited | 
Get default summary frame.
Definition at line 70 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Get summary frame.
| module | module | 
Definition at line 212 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Get default rate.
Definition at line 81 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Get rate.
| id | PMT identifier | 
Definition at line 229 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Has default.
Definition at line 92 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Set default.
| rate_Hz | rate [Hz] | 
Definition at line 103 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Unset default.
Definition at line 119 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Update router.
| ps | pointer to new summary slice | 
Definition at line 137 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Check validity of summary data.
Definition at line 165 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Get summary slice.
pointer to summary slice (may be NULL)
Definition at line 176 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Get address of module.
| module | module | 
Definition at line 188 of file JSupport/JSummaryRouter.hh.
      
  | 
  inlineinherited | 
Has summary frame.
| module | module | 
Definition at line 200 of file JSupport/JSummaryRouter.hh.
      
  | 
  staticinherited | 
module identifier to allow default
Definition at line 244 of file JSupport/JSummaryRouter.hh.
 1.8.5