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

Builds smd datagrams: non-L1Accept transitions are copied (EndRun without payload), and each L1Accept gets a ShapesData with two UINT64 fields, intOffset and intDgramSize. More...

#include <Smd.hh>

Public Member Functions

 Smd ()
 Default constructor; does nothing.
 
Dgram * generate (Dgram *dgIn, void *buf, const void *bufEnd, uint64_t offset, uint64_t size, NamesLookup &namesLookup, NamesId namesId)
 Write into buf an smd version of dgIn and return it as a Dgram pointer.
 

Detailed Description

Builds smd datagrams: non-L1Accept transitions are copied (EndRun without payload), and each L1Accept gets a ShapesData with two UINT64 fields, intOffset and intDgramSize.

Constructor & Destructor Documentation

◆ Smd()

XtcData::Smd::Smd ( )
inline

Default constructor; does nothing.

Member Function Documentation

◆ generate()

Dgram * XtcData::Smd::generate ( Dgram *  dgIn,
void *  buf,
const void *  bufEnd,
uint64_t  offset,
uint64_t  size,
NamesLookup &  namesLookup,
NamesId  namesId 
)

Write into buf an smd version of dgIn and return it as a Dgram pointer.

For EndRun only the header is copied (empty payload); other non-L1Accept transitions are copied whole, and for Configure a Names xtc (detName "smdinfo", alg "offsetAlg", detType "offset", UINT64 fields intOffset and intDgramSize) is added under namesId and recorded in namesLookup, after throwing a const char* if a Names xtc in the copy already uses namesId. For L1Accept the time and env are copied and the payload is replaced by a ShapesData holding offset and size; a message is printed if size is 0.


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