|
pflib v3.14.3-4-g3289bd3
Pretty Fine HGCROC Interaction Library
|
read and print histograms filled by the firmware More...
#include <FWHistoPool.h>
Classes | |
| class | BlockHistogram |
| a full histogram block read into memory More... | |
| class | SingleChannelHistogram |
| A single histogram read into memory. More... | |
Public Types | |
| enum class | FillValue : int { DecodedSum = 0 , EncodedSum = 1 , HighPeak = 2 } |
| the blocks of histograms are logically distinct by what values we fill into them More... | |
Public Member Functions | |
| FWHistoPool (int i_trigpath) | |
| construct the pool for the passed trigpath index (0 or 1) | |
| void | clear () |
| reset all of the histograms in the pool to zero counts | |
| std::array< uint32_t, 256 > | read_fw (FillValue fill_type, int econt, int index) |
| read a histogram's content from the firmware | |
| SingleChannelHistogram | read (FillValue fill_type, int econt, int ihist) |
| read the current values for the input histogram index of the input value type | |
| BlockHistogram | read (FillValue fill_type, int econt) |
| read the current values of a block of histograms of the input value type | |
Private Types | |
| using | the_clock = std::chrono::high_resolution_clock |
| type of clock we'll use to measure collection time | |
| using | a_time_point = std::chrono::time_point<the_clock> |
| a time point for our clock | |
Private Member Functions | |
| std::optional< double > | get_collection_time (a_time_point now) const |
| get the collection time | |
Private Attributes | |
| pflib::UIO | uio_ |
| handle to register area of trigpath firmware block | |
| std::optional< a_time_point > | time_of_last_clear_ |
| last time the clear method was called | |
| pflib::logging::logger | the_log_ |
| share logging channel with histo menu | |
read and print histograms filled by the firmware
|
strong |
| FWHistoPool::BlockHistogram FWHistoPool::read | ( | FillValue | fill_type, |
| int | econt ) |
read the current values of a block of histograms of the input value type
| [in] | fill_type | FillValue choosing which block of histograms to read |
| [in] | econt | which ECON-T (0 or 1) |
| FWHistoPool::SingleChannelHistogram FWHistoPool::read | ( | FWHistoPool::FillValue | fill_type, |
| int | econt, | ||
| int | ihist ) |
read the current values for the input histogram index of the input value type
| [in] | fill_type | FillValue choosing which block of histograms to read from |
| [in] | econt | index of ECON-T to read from [0,1] |
| [in] | ihist | index of histogram within that block [0,7] |
| std::array< uint32_t, 256 > FWHistoPool::read_fw | ( | FWHistoPool::FillValue | fill_type, |
| int | econt, | ||
| int | index ) |
read a histogram's content from the firmware
| [in] | fill_type | block of histograms to read from |
| [in] | econt | which ECON-T (0 or 1) |
| [in] | index | index of the histogram we want in that block |