Skip to content
Snippets Groups Projects

Allen RICH decoding

Merged Daniel Hugo Campora Perez requested to merge cnca_rich_decoding into master
3 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -123,7 +123,7 @@ namespace Rich::Future::DAQ {
}
/// Contructor from a single word
explicit PackedFrameSizes( const IntType d ) : m_data( d ) {}
__device__ explicit PackedFrameSizes( const IntType d ) : m_data( d ) {}
public:
/// Set size0
@@ -143,13 +143,13 @@ namespace Rich::Future::DAQ {
public:
/// Get the overall data
inline IntType data() const noexcept { return m_data; }
__host__ __device__ inline IntType data() const noexcept { return m_data; }
/// Get first size word
inline IntType size0() const noexcept { return ( ( data() & Mask0 ) >> Shift0 ); }
__host__ __device__ inline IntType size0() const noexcept { return ( ( data() & Mask0 ) >> Shift0 ); }
/// Get second size word
inline IntType size1() const noexcept { return ( ( data() & Mask1 ) >> Shift1 ); }
__host__ __device__ inline IntType size1() const noexcept { return ( ( data() & Mask1 ) >> Shift1 ); }
/// Get the total size
inline auto totalSize() const noexcept { return size0() + size1(); }
Loading