|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
XtcData::VarDef with the names and types of the 16 timing fields, in the order of the index enum, plus static helpers that write timing data into an Xtc. More...
#include <TimingDef.hh>
Inherits XtcData::VarDef.
Public Types | |
| enum | { data_size = 153 } |
| Size constant for the timing record. More... | |
| enum | index { pulseId , timeStamp , fixedRates , acRates , timeSlot , timeSlotPhase , ebeamPresent , ebeamDestn , ebeamCharge , ebeamEnergy , xWavelength , dmod5 , mpsLimits , mpsPowerClass , sequenceValues , inhibitCounts } |
| Positions of the fields in the TimingDef name list. More... | |
Public Member Functions | |
| TimingDef () | |
| Fill NameVec with the 16 timing fields: UINT64 scalars pulseId and timeStamp, then fixedRates, acRates, timeSlot, timeSlotPhase, ebeamPresent, ebeamDestn, ebeamCharge, ebeamEnergy, xWavelength, dmod5, mpsLimits, mpsPowerClass, sequenceValues and inhibitCounts with the types listed in the index enum. | |
Static Public Member Functions | |
| static void | describeData (XtcData::Xtc &, const void *bufEnd, XtcData::NamesLookup &, XtcData::NamesId, const uint8_t *) |
| Append a DescribedData to the Xtc that holds a copy of the first data_size (153) bytes of the last argument, and set the shapes of the eight array fields (10, 6, 4, 2, 16, 16, 18 and 8 elements). | |
| static void | createDataNoBSA (XtcData::Xtc &, const void *bufEnd, XtcData::NamesLookup &, XtcData::NamesId, const uint8_t *) |
| Append CreateData values decoded from a raw timing record (last argument): pulse ID and timestamp, rate flags expanded from bits of a 16-bit word, a 3-bit time slot and 13-bit phase, beam present and destination bits, charge, the energy and wavelength arrays, dmod5, MPS limit bits, 4-bit MPS power classes, sequence values and inhibit counts. | |
| static void | createDataETM (XtcData::Xtc &, const void *bufEnd, XtcData::NamesLookup &, XtcData::NamesId, const uint8_t *, const uint8_t *) |
| Append CreateData values taken from a header (pulse ID and timestamp; fifth argument) and an ETM record (rate flags, time slot, beam present and destination bits, sequence values; sixth argument). | |
Additional Inherited Members | |
Public Attributes inherited from XtcData::VarDef | |
| std::vector< Name > | NameVec |
| Name definitions, in order. | |
XtcData::VarDef with the names and types of the 16 timing fields, in the order of the index enum, plus static helpers that write timing data into an Xtc.
| anonymous enum |
Size constant for the timing record.
| Enumerator | |
|---|---|
| data_size | Size in bytes of the packed TimingData layout (153); describeData() copies this many bytes. |
Positions of the fields in the TimingDef name list.
| Drp::TimingDef::TimingDef | ( | ) |
Fill NameVec with the 16 timing fields: UINT64 scalars pulseId and timeStamp, then fixedRates, acRates, timeSlot, timeSlotPhase, ebeamPresent, ebeamDestn, ebeamCharge, ebeamEnergy, xWavelength, dmod5, mpsLimits, mpsPowerClass, sequenceValues and inhibitCounts with the types listed in the index enum.
|
static |
Append CreateData values taken from a header (pulse ID and timestamp; fifth argument) and an ETM record (rate flags, time slot, beam present and destination bits, sequence values; sixth argument).
Fields not taken from either (phase, charge, energy, wavelength, dmod5, MPS values, inhibit counts) are written as zeros.
|
static |
Append CreateData values decoded from a raw timing record (last argument): pulse ID and timestamp, rate flags expanded from bits of a 16-bit word, a 3-bit time slot and 13-bit phase, beam present and destination bits, charge, the energy and wavelength arrays, dmod5, MPS limit bits, 4-bit MPS power classes, sequence values and inhibit counts.
|
static |
Append a DescribedData to the Xtc that holds a copy of the first data_size (153) bytes of the last argument, and set the shapes of the eight array fields (10, 6, 4, 2, 16, 16, 18 and 8 elements).