|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Datagram: the Transition header immediately followed by the top-level Xtc, whose payload follows it in memory. More...
#include <Dgram.hh>
Inherits XtcData::Transition.
Inherited by Pds::EbDgram, and XtcData::L1Dgram.
Public Member Functions | |
| Dgram () | |
| Default constructor; header fields are uninitialized and xtc is default-constructed (damage 0, extent 0). | |
| Dgram (const Transition &transition_) | |
| Copy the header from transition_; xtc is default-constructed (damage 0, extent 0). | |
| Dgram (const Transition &transition_, const Xtc &xtc_) | |
| Copy the header from transition_ and copy-construct xtc from xtc_. | |
Public Member Functions inherited from XtcData::Transition | |
| Transition () | |
| Default constructor; fields are left uninitialized as in TransitionBase(). | |
| Transition (Type type_, TransitionId::Value tid_, const TimeStamp &time_, uint32_t env_) | |
| Forward all arguments to TransitionBase(type_, tid_, time_, env_). | |
| unsigned | control () const |
| Return env bits 31:24. | |
| TransitionId::Value | service () const |
| Return env bits 27:24 as a TransitionId::Value. | |
| Type | type () const |
| Return env bits 29:28 as a Type. | |
| bool | isEvent () const |
| Return true if service() is TransitionId::L1Accept. | |
| bool | isExtended () const |
| Return true if env bit 16 is set and isEvent() is false. | |
Public Member Functions inherited from XtcData::TransitionBase | |
| 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 | |
| Xtc | xtc |
| Top-level Xtc container. | |
Public Attributes inherited from XtcData::TransitionBase | |
| TimeStamp | time |
| Datagram timestamp. | |
| uint32_t | env |
| Packed word: type, transition id and 24 low bits (layout in the class description). | |
Static Public Attributes | |
| static const unsigned | MaxSize = 0x1000000 |
| 0x1000000. Inferred from the name to be a maximum datagram size in bytes; not enforced in this header. | |
Additional Inherited Members | |
Public Types inherited from XtcData::TransitionBase | |
| 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... | |
Datagram: the Transition header immediately followed by the top-level Xtc, whose payload follows it in memory.
|
inline |
Default constructor; header fields are uninitialized and xtc is default-constructed (damage 0, extent 0).
|
inline |
Copy the header from transition_; xtc is default-constructed (damage 0, extent 0).
|
inline |
Copy the header from transition_ and copy-construct xtc from xtc_.
The Xtc copy constructor copies src, damage and contains but sets extent to sizeof(Xtc).
0x1000000. Inferred from the name to be a maximum datagram size in bytes; not enforced in this header.