|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
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). | |
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.
Transition type; Transition::type() reads it from env bits 29:28.
| Enumerator | |
|---|---|
| Event | Value 0. |
| Occurrence | Value 1. |
| Marker | Value 2. |
|
inline |
Default constructor; time and env are left uninitialized.
|
inline |
Set time to time_ and env to (type_<<28)|(tid_<<24)|(env_&0xffffff).
|
inline |
Return the low 16 bits of env.
| uint32_t XtcData::TransitionBase::env |
Packed word: type, transition id and 24 low bits (layout in the class description).
| TimeStamp XtcData::TransitionBase::time |
Datagram timestamp.