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

32-bit source word: bits 31:28 hold a Level::Type and bits 27:0 a value. More...

#include <Src.hh>

Inherited by XtcData::NamesId, and psalg::shmem::ProcInfo.

Public Member Functions

 Src (Level::Type level=Level::Segment)
 Set the level bits to level and the value bits to 0.
 
 Src (unsigned value, Level::Type level=Level::Segment)
 Store value & 0x0fffffff in bits 27:0 and level in bits 31:28.
 
Level::Type level () const
 Return bits 31:28 as a Level::Type.
 
unsigned value () const
 Return bits 27:0.
 

Protected Attributes

uint32_t _value
 

Detailed Description

32-bit source word: bits 31:28 hold a Level::Type and bits 27:0 a value.

Constructor & Destructor Documentation

◆ Src() [1/2]

XtcData::Src::Src ( Level::Type  level = Level::Segment)
inline

Set the level bits to level and the value bits to 0.

◆ Src() [2/2]

XtcData::Src::Src ( unsigned  value,
Level::Type  level = Level::Segment 
)
inline

Store value & 0x0fffffff in bits 27:0 and level in bits 31:28.

Member Function Documentation

◆ level()

Level::Type XtcData::Src::level ( ) const
inline

Return bits 31:28 as a Level::Type.

◆ value()

unsigned XtcData::Src::value ( ) const
inline

Return bits 27:0.

Member Data Documentation

◆ _value

uint32_t XtcData::Src::_value
protected

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