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

Packed (1-byte aligned) 153-byte timing record whose fields follow the order of the TimingDef name list. More...

#include <TimingDef.hh>

Public Types

enum  FixedRates {
  _1Hz , _10Hz , _100Hz , _1kHz ,
  _10kHz , _71kHz , _1MHz
}
 Indices into fixedRates for fixedRate(); the rates are taken from the enumerator names. More...
 

Public Member Functions

bool fixedRate (FixedRates r) const
 Return true if fixedRates[r] is non-zero.
 
bool eventCode (unsigned code) const
 Return true if bit (code & 0xf) of sequenceValues[code >> 4] is set.
 

Public Attributes

uint64_t pulseId
 Pulse ID (64 bits).
 
uint64_t timeStamp
 Timestamp (64 bits).
 
uint8_t fixedRates [10]
 Ten fixed-rate flags, indexed by FixedRates; non-zero means set (see fixedRate()).
 
uint8_t acRates [6]
 Six AC-rate flags. Inferred from the name; not verified in code.
 
uint8_t timeSlot
 Time slot. Inferred from the name; not verified in code.
 
uint16_t timeSlotPhase
 Time slot phase. Inferred from the name; not verified in code.
 
uint8_t ebeamPresent
 Electron-beam-present flag. Inferred from the name; not verified in code.
 
uint8_t ebeamDestn
 Electron beam destination. Inferred from the name; not verified in code.
 
uint16_t ebeamCharge
 Electron beam charge (16-bit raw value). Inferred from the name; not verified in code.
 
uint16_t ebeamEnergy [4]
 Four electron beam energy values (16-bit raw). Inferred from the name; not verified in code.
 
uint16_t xWavelength [2]
 Two X-ray wavelength values (16-bit raw). Inferred from the name; not verified in code.
 
uint16_t dmod5
 16-bit value named dmod5; meaning not shown in code.
 
uint8_t mpsLimits [16]
 Sixteen MPS limit values. Inferred from the name; not verified in code.
 
uint8_t mpsPowerClass [16]
 Sixteen MPS power class values. Inferred from the name; not verified in code.
 
uint16_t sequenceValues [18]
 Eighteen 16-bit sequence words; eventCode() reads event code bits from them.
 
uint32_t inhibitCounts [8]
 Eight 32-bit inhibit counters. Inferred from the name; not verified in code.
 

Detailed Description

Packed (1-byte aligned) 153-byte timing record whose fields follow the order of the TimingDef name list.

Field meanings below come from the names only unless stated otherwise.

Member Enumeration Documentation

◆ FixedRates

Indices into fixedRates for fixedRate(); the rates are taken from the enumerator names.

Enumerator
_1Hz 

Index 0 (1 Hz by name).

_10Hz 

Index 1 (10 Hz by name).

_100Hz 

Index 2 (100 Hz by name).

_1kHz 

Index 3 (1 kHz by name).

_10kHz 

Index 4 (10 kHz by name).

_71kHz 

Index 5 (71 kHz by name).

_1MHz 

Index 6 (1 MHz by name).

Member Function Documentation

◆ eventCode()

bool Drp::TimingData::eventCode ( unsigned  code) const
inline

Return true if bit (code & 0xf) of sequenceValues[code >> 4] is set.

◆ fixedRate()

bool Drp::TimingData::fixedRate ( FixedRates  r) const
inline

Return true if fixedRates[r] is non-zero.

Member Data Documentation

◆ acRates

uint8_t Drp::TimingData::acRates[6]

Six AC-rate flags. Inferred from the name; not verified in code.

◆ dmod5

uint16_t Drp::TimingData::dmod5

16-bit value named dmod5; meaning not shown in code.

◆ ebeamCharge

uint16_t Drp::TimingData::ebeamCharge

Electron beam charge (16-bit raw value). Inferred from the name; not verified in code.

◆ ebeamDestn

uint8_t Drp::TimingData::ebeamDestn

Electron beam destination. Inferred from the name; not verified in code.

◆ ebeamEnergy

uint16_t Drp::TimingData::ebeamEnergy[4]

Four electron beam energy values (16-bit raw). Inferred from the name; not verified in code.

◆ ebeamPresent

uint8_t Drp::TimingData::ebeamPresent

Electron-beam-present flag. Inferred from the name; not verified in code.

◆ fixedRates

uint8_t Drp::TimingData::fixedRates[10]

Ten fixed-rate flags, indexed by FixedRates; non-zero means set (see fixedRate()).

◆ inhibitCounts

uint32_t Drp::TimingData::inhibitCounts[8]

Eight 32-bit inhibit counters. Inferred from the name; not verified in code.

◆ mpsLimits

uint8_t Drp::TimingData::mpsLimits[16]

Sixteen MPS limit values. Inferred from the name; not verified in code.

◆ mpsPowerClass

uint8_t Drp::TimingData::mpsPowerClass[16]

Sixteen MPS power class values. Inferred from the name; not verified in code.

◆ pulseId

uint64_t Drp::TimingData::pulseId

Pulse ID (64 bits).

◆ sequenceValues

uint16_t Drp::TimingData::sequenceValues[18]

Eighteen 16-bit sequence words; eventCode() reads event code bits from them.

◆ timeSlot

uint8_t Drp::TimingData::timeSlot

Time slot. Inferred from the name; not verified in code.

◆ timeSlotPhase

uint16_t Drp::TimingData::timeSlotPhase

Time slot phase. Inferred from the name; not verified in code.

◆ timeStamp

uint64_t Drp::TimingData::timeStamp

Timestamp (64 bits).

◆ xWavelength

uint16_t Drp::TimingData::xWavelength[2]

Two X-ray wavelength values (16-bit raw). Inferred from the name; not verified in code.


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