1 #ifndef DQM_SiStripMonitorHardware_SiStripFEDSpyBuffer_H 2 #define DQM_SiStripMonitorHardware_SiStripFEDSpyBuffer_H 4 #include "boost/cstdint.hpp" 36 FEDSpyBuffer(
const uint8_t* fedBuffer,
const size_t fedBufferSize);
38 void print(std::ostream& os)
const override;
54 bool channelGood(
const uint8_t internalFEDannelNum)
const override;
71 uint16_t sampleNumber()
const;
90 : data_(reinterpret_cast<const uint32_t*>(channel.
data())),
91 currentOffset_(channel.
offset()),
93 valuesLeft_(channel.length())
117 ++(*this);
return *
this;
122 #endif //ndef DQM_SiStripMonitorHardware_SiStripFEDSpyBuffer_H int adc(sample_type sample)
get the ADC sample (12 bits)
FEDSpyChannelUnpacker(const FEDChannel &channel)
uint16_t sampleNumber() const
void print(std::ostream &os) const override
static const uint16_t SPY_BUFFER_SIZE_IN_BYTES
static const uint16_t SPY_SAMPLES_PER_CHANNEL
uint32_t globalRunNumber() const
static const uint16_t DELAY_CHIPS_PER_FED
static const uint16_t SPY_DELAY_CHIP_PAYLOAD_SIZE_IN_BYTES
uint32_t delayChipTotalEventCount(const uint8_t delayChip) const
uint32_t spyHeaderL1ID() const
const FEDChannel & channel(const uint8_t internalFEDChannelNum) const
static const uint16_t FEDCH_PER_DELAY_CHIP
static const uint16_t SPY_DELAY_CHIP_BUFFER_SIZE_IN_BYTES
const uint8_t * payloadPointer_
bool channelGood(const uint8_t internalFEDannelNum) const override
static const uint8_t channelPositionsInData_[FEDCH_PER_DELAY_CHIP]
FEDSpyBuffer(const uint8_t *fedBuffer, const size_t fedBufferSize)
uint32_t spyHeaderTotalEventCount() const
char data[epos_bytes_allocation]
uint32_t delayChipL1ID(const uint8_t delayChip) const
static const uint16_t FEDCH_PER_FED
bool delayChipGood(const uint8_t delayChip) const
static const uint16_t SPY_DELAYCHIP_DATA_OFFSET_IN_BITS
FEDSpyChannelUnpacker & operator++()