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

Datagram header base: a TimeStamp followed by a 32-bit env word. More...

#include <Dgram.hh>

Inherited by Pds::TimingHeader, and XtcData::Transition.

Public Types

enum  Type { Event = 0 , Occurrence = 1 , Marker = 2 }
 Transition type; Transition::type() reads it from env bits 29:28. More...
 
enum  { NumberOfTypes = 3 }
 Count of Type values. More...
 

Public Member Functions

 TransitionBase ()
 Default constructor; time and env are left uninitialized.
 
 TransitionBase (Type type_, TransitionId::Value tid_, const TimeStamp &time_, uint32_t env_)
 Set time to time_ and env to (type_<<28)|(tid_<<24)|(env_&0xffffff).
 
uint16_t readoutGroups () const
 Return the low 16 bits of env.
 

Public Attributes

TimeStamp time
 Datagram timestamp.
 
uint32_t env
 Packed word: type, transition id and 24 low bits (layout in the class description).
 

Detailed Description

Datagram header base: a TimeStamp followed by a 32-bit env word.

The constructor packs the Type into env bits 31:28, the TransitionId into bits 27:24 and the low 24 bits of env_ into bits 23:0.

Member Enumeration Documentation

◆ anonymous enum

Count of Type values.

Enumerator
NumberOfTypes 

Value 3, the number of Type values.

◆ Type

Transition type; Transition::type() reads it from env bits 29:28.

Enumerator
Event 

Value 0.

Occurrence 

Value 1.

Marker 

Value 2.

Constructor & Destructor Documentation

◆ TransitionBase() [1/2]

XtcData::TransitionBase::TransitionBase ( )
inline

Default constructor; time and env are left uninitialized.

◆ TransitionBase() [2/2]

XtcData::TransitionBase::TransitionBase ( Type  type_,
TransitionId::Value  tid_,
const TimeStamp &  time_,
uint32_t  env_ 
)
inline

Set time to time_ and env to (type_<<28)|(tid_<<24)|(env_&0xffffff).

Member Function Documentation

◆ readoutGroups()

uint16_t XtcData::TransitionBase::readoutGroups ( ) const
inline

Return the low 16 bits of env.

Member Data Documentation

◆ env

uint32_t XtcData::TransitionBase::env

Packed word: type, transition id and 24 low bits (layout in the class description).

◆ time

TimeStamp XtcData::TransitionBase::time

Datagram timestamp.


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