Timing information of one event, decoded from the timing data (the code comment calls it the l2si-core EventTimingMessage auxiliary data): pulse ID, fixed-rate and AC-rate bits, beam present and destination, and the sequencer words.
More...
#include <TTFex.hh>
|
| | EventInfo () |
| | Construct without initializing any field.
|
| |
| | EventInfo (XtcData::DescData &) |
| | Fill the fields from the timing data in descdata: pulseId, the fixedRates (10) and acRates (6) flag arrays packed into bit masks, ebeamPresent, the low 4 bits of ebeamDestn and the 18 sequenceValues words.
|
| |
| bool | fixedRate (unsigned rate) const |
| | Return true if bit rate of the fixed-rate mask is set.
|
| |
| bool | acRate (unsigned rate, unsigned tslots) const |
| | Return true if bit rate of the AC-rate mask is set and the time-slot mask shares a bit with tslots.
|
| |
| bool | eventCode (unsigned ec) const |
| | Return true if bit (ec & 0xf) of sequencer word ec >> 4 is set; ec 0 returns false (the code comment calls it do-not-care).
|
| |
| bool | sequencer (unsigned word, unsigned bit) const |
| | Return true if bit bit of sequencer word word is set.
|
| |
| bool | destination (unsigned dest) const |
| | Return true if the beam is present and the beam destination equals dest; dest 0 returns false (do-not-care).
|
| |
|
| uint64_t | _pulseId |
| | Pulse ID, from the pulseId value.
|
| |
| unsigned | _fixedRates: 10 |
| | Fixed-rate flags as a 10-bit mask (bit i set when fixedRates[i] is non-zero).
|
| |
| unsigned | _acRates: 6 |
| | AC-rate flags as a 6-bit mask (bit i set when acRates[i] is non-zero).
|
| |
| unsigned | _timeSlots: 8 |
| | Time-slot mask (8 bits) tested by acRate(); the DescData constructor does not set it.
|
| |
| unsigned | _beamPresent: 1 |
| | 1 if ebeamPresent was non-zero (one bit; the 3 unnamed bits after it are padding).
|
| |
| unsigned unsigned | _beamDestn: 3: 4 |
| | 1 if ebeamPresent was non-zero; followed by 3 unnamed padding bits.
|
| |
| uint16_t | _seqInfo [18] |
| | The 18 16-bit sequencer words (sequenceValues) used by eventCode() and sequencer().
|
| |
Timing information of one event, decoded from the timing data (the code comment calls it the l2si-core EventTimingMessage auxiliary data): pulse ID, fixed-rate and AC-rate bits, beam present and destination, and the sequencer words.
◆ EventInfo() [1/2]
| Drp::EventInfo::EventInfo |
( |
| ) |
|
|
inline |
Construct without initializing any field.
◆ EventInfo() [2/2]
Fill the fields from the timing data in descdata: pulseId, the fixedRates (10) and acRates (6) flag arrays packed into bit masks, ebeamPresent, the low 4 bits of ebeamDestn and the 18 sequenceValues words.
_timeSlots is not set.
◆ acRate()
| bool Drp::EventInfo::acRate |
( |
unsigned |
rate, |
|
|
unsigned |
tslots |
|
) |
| const |
|
inline |
Return true if bit rate of the AC-rate mask is set and the time-slot mask shares a bit with tslots.
◆ destination()
| bool Drp::EventInfo::destination |
( |
unsigned |
dest | ) |
const |
|
inline |
Return true if the beam is present and the beam destination equals dest; dest 0 returns false (do-not-care).
◆ eventCode()
| bool Drp::EventInfo::eventCode |
( |
unsigned |
ec | ) |
const |
|
inline |
Return true if bit (ec & 0xf) of sequencer word ec >> 4 is set; ec 0 returns false (the code comment calls it do-not-care).
◆ fixedRate()
| bool Drp::EventInfo::fixedRate |
( |
unsigned |
rate | ) |
const |
|
inline |
Return true if bit rate of the fixed-rate mask is set.
◆ sequencer()
| bool Drp::EventInfo::sequencer |
( |
unsigned |
word, |
|
|
unsigned |
bit |
|
) |
| const |
|
inline |
Return true if bit bit of sequencer word word is set.
◆ _acRates
| unsigned Drp::EventInfo::_acRates |
AC-rate flags as a 6-bit mask (bit i set when acRates[i] is non-zero).
◆ _beamDestn
| unsigned unsigned Drp::EventInfo::_beamDestn |
1 if ebeamPresent was non-zero; followed by 3 unnamed padding bits.
Beam destination (low 4 bits of ebeamDestn).
◆ _beamPresent
| unsigned Drp::EventInfo::_beamPresent |
1 if ebeamPresent was non-zero (one bit; the 3 unnamed bits after it are padding).
◆ _fixedRates
| unsigned Drp::EventInfo::_fixedRates |
Fixed-rate flags as a 10-bit mask (bit i set when fixedRates[i] is non-zero).
◆ _pulseId
| uint64_t Drp::EventInfo::_pulseId |
Pulse ID, from the pulseId value.
◆ _seqInfo
| uint16_t Drp::EventInfo::_seqInfo[18] |
◆ _timeSlots
| unsigned Drp::EventInfo::_timeSlots |
Time-slot mask (8 bits) tested by acRate(); the DescData constructor does not set it.
The documentation for this class was generated from the following file: