|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Decodes the binning fields of a ResultDgram, reading it as a CubeResultDgram when the result type is Cube and as a WindowResultDgram otherwise. More...
#include <CubeResult.hh>
Public Member Functions | |
| CubeResult (Pds::Eb::ResultType rtype) | |
| Store the result type that selects the decoding. | |
| std::vector< unsigned > | add_bins (const Pds::Eb::ResultDgram &) const |
| For Cube results return the single bin index; otherwise return the indices of the set bits of the window add field, lowest first. | |
| std::vector< unsigned > | monitor_bins (const Pds::Eb::ResultDgram &) const |
| For Cube results return the single bin index; otherwise return the indices of the set bits of the window monitor field, lowest first. | |
| std::vector< unsigned > | record_bins (const Pds::Eb::ResultDgram &) const |
| For Cube results return the single bin index; otherwise return the indices of the set bits of the window record field, lowest first. | |
| std::vector< unsigned > | flush_bins (const Pds::Eb::ResultDgram &) const |
| For Cube results return the single bin index; otherwise return the indices of the set bits of the window flush field, lowest first. | |
| bool | update_monitor (const Pds::Eb::ResultDgram &) const |
| Return the update-monitor bit for Cube results, otherwise whether the window monitor field is non-zero. | |
| bool | update_record (const Pds::Eb::ResultDgram &) const |
| Return the update-record bit for Cube results, otherwise whether the window record field is non-zero. | |
| bool | flush (const Pds::Eb::ResultDgram &) const |
| Return the flush bit for Cube results, otherwise whether the window flush field is non-zero. | |
Decodes the binning fields of a ResultDgram, reading it as a CubeResultDgram when the result type is Cube and as a WindowResultDgram otherwise.
|
inline |
Store the result type that selects the decoding.
| std::vector< unsigned > Drp::CubeResult::add_bins | ( | const Pds::Eb::ResultDgram & | ) | const |
For Cube results return the single bin index; otherwise return the indices of the set bits of the window add field, lowest first.
| bool Drp::CubeResult::flush | ( | const Pds::Eb::ResultDgram & | ) | const |
Return the flush bit for Cube results, otherwise whether the window flush field is non-zero.
| std::vector< unsigned > Drp::CubeResult::flush_bins | ( | const Pds::Eb::ResultDgram & | ) | const |
For Cube results return the single bin index; otherwise return the indices of the set bits of the window flush field, lowest first.
| std::vector< unsigned > Drp::CubeResult::monitor_bins | ( | const Pds::Eb::ResultDgram & | ) | const |
For Cube results return the single bin index; otherwise return the indices of the set bits of the window monitor field, lowest first.
| std::vector< unsigned > Drp::CubeResult::record_bins | ( | const Pds::Eb::ResultDgram & | ) | const |
For Cube results return the single bin index; otherwise return the indices of the set bits of the window record field, lowest first.
| bool Drp::CubeResult::update_monitor | ( | const Pds::Eb::ResultDgram & | ) | const |
Return the update-monitor bit for Cube results, otherwise whether the window monitor field is non-zero.
| bool Drp::CubeResult::update_record | ( | const Pds::Eb::ResultDgram & | ) | const |
Return the update-record bit for Cube results, otherwise whether the window record field is non-zero.