|
Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
|
Data storage class for rate measurement of one PMT. More...
#include <JDAQSummaryFrame.hh>
Public Types | |
| typedef unsigned char | JRate_t |
Public Member Functions | |
| JDAQRate () | |
| Default constructor. | |
| JRate_t | getValue () const |
| Get value. | |
| void | setValue (const int numberOfHits, const double frameTime_ns) |
| Set value. | |
| void | setValue (const double rate_Hz) |
| Set value. | |
| double | getRate () const |
| Get count rate. | |
| double | getWeight () const |
| Get weight. | |
| JDAQRate & | mul (const double factor) |
| Scale rate. | |
| JDAQRate & | div (const double factor) |
| Scale rate. | |
| bool | is_valid () const |
| Check validity of rate. | |
Static Public Member Functions | |
| static double | getMinimalRate () |
| Get minimal rate (below this, value is set to zero) | |
| static double | getMaximalRate () |
| Get maximal rate (above this, value is set to maximum) | |
| static JRate_t | getValue (const int numberOfHits, const double frameTime_ns) |
| Get value. | |
| static JRate_t | getValue (const double rate_Hz) |
| Get value. | |
| static double | getRate (const JRate_t value) |
| Get count rate. | |
| static double | getWeight (const JRate_t value) |
| Get weight. | |
| static int | getN () |
| Get number of bins. | |
| static const double * | getData (const double factor=1.0) |
| Get abscissa values. | |
Protected Attributes | |
| JRate_t | value |
Static Private Member Functions | |
| static const double | getFactor () |
| Get conversion factor. | |
| static double | get_rate (const double value) |
| Get count rate. | |
Friends | |
| class | JDAQSummaryFrame |
Data storage class for rate measurement of one PMT.
Note that the rate value is compressed. The number of bins and corresponding abscissa values can be obtained with
methods JDAQRare::getN and JDAQRate::getData, respectively.
Definition at line 36 of file JDAQSummaryFrame.hh.
Definition at line 42 of file JDAQSummaryFrame.hh.
|
inline |
Default constructor.
Definition at line 171 of file JDAQSummaryFrame.hh.
Get minimal rate (below this, value is set to zero)
Definition at line 50 of file JDAQSummaryFrame.hh.
Get maximal rate (above this, value is set to maximum)
Definition at line 61 of file JDAQSummaryFrame.hh.
|
inlinestatic |
Get value.
| numberOfHits | number of hits |
| frameTime_ns | frame time [ns] |
Definition at line 74 of file JDAQSummaryFrame.hh.
Get value.
| rate_Hz | rate [Hz] |
Definition at line 86 of file JDAQSummaryFrame.hh.
Get count rate.
| value | value |
Definition at line 103 of file JDAQSummaryFrame.hh.
Get weight.
| value | value |
Definition at line 118 of file JDAQSummaryFrame.hh.
Get number of bins.
Definition at line 138 of file JDAQSummaryFrame.hh.
Get abscissa values.
| factor | scaling factor |
Definition at line 150 of file JDAQSummaryFrame.hh.
|
inline |
Set value.
| numberOfHits | number of hits |
| frameTime_ns | frame time [ns] |
Definition at line 193 of file JDAQSummaryFrame.hh.
|
inline |
|
inline |
Scale rate.
| factor | multiplication factor |
Definition at line 238 of file JDAQSummaryFrame.hh.
Scale rate.
| factor | multiplication factor |
Definition at line 252 of file JDAQSummaryFrame.hh.
|
inline |
Check validity of rate.
The rate is considered valid if it is between the minimal and the maximal rate.
Definition at line 266 of file JDAQSummaryFrame.hh.
Get conversion factor.
Definition at line 282 of file JDAQSummaryFrame.hh.
Get count rate.
| value | value |
Definition at line 294 of file JDAQSummaryFrame.hh.
|
friend |
Definition at line 39 of file JDAQSummaryFrame.hh.
|
protected |
Definition at line 273 of file JDAQSummaryFrame.hh.