lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::CubeResult Class Reference

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.
 

Detailed Description

Decodes the binning fields of a ResultDgram, reading it as a CubeResultDgram when the result type is Cube and as a WindowResultDgram otherwise.

Constructor & Destructor Documentation

◆ CubeResult()

Drp::CubeResult::CubeResult ( Pds::Eb::ResultType  rtype)
inline

Store the result type that selects the decoding.

Member Function Documentation

◆ add_bins()

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.

◆ flush()

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.

◆ flush_bins()

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.

◆ monitor_bins()

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.

◆ record_bins()

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.

◆ update_monitor()

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.

◆ update_record()

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.


The documentation for this class was generated from the following file: