#include <SiStripFEDBufferGenerator.h>
|
void | appendToBuffer (size_t *pIndexInBuffer, const uint8_t value) |
|
void | appendToBuffer (size_t *pIndexInBuffer, std::vector< uint8_t >::const_iterator start, std::vector< uint8_t >::const_iterator finish) |
|
Definition at line 62 of file SiStripFEDBufferGenerator.h.
◆ FEDBufferPayload()
sistrip::FEDBufferPayload::FEDBufferPayload |
( |
const std::vector< std::vector< uint8_t > > & |
channelBuffers | ) |
|
Definition at line 50 of file SiStripFEDBufferGenerator.cc.
References sistrip::FEDStripData::data_, sistrip::FEDCH_PER_FEUNIT, and sistrip::FEUNITS_PER_FED.
52 uint32_t totalSize = 0;
59 totalSize = ((totalSize / 8) + 1) * 8;
62 data_.resize(totalSize);
63 size_t indexInBuffer = 0;
67 const size_t lengthAtStartOfFEUnit = indexInBuffer;
75 feLengths_.push_back(indexInBuffer - lengthAtStartOfFEUnit);
77 while (indexInBuffer % 8)
static const uint16_t FEUNITS_PER_FED
void appendToBuffer(size_t *pIndexInBuffer, const uint8_t value)
static const uint16_t FEDCH_PER_FEUNIT
std::vector< uint16_t > feLengths_
std::vector< uint8_t > data_
◆ appendToBuffer() [1/2]
void sistrip::FEDBufferPayload::appendToBuffer |
( |
size_t * |
pIndexInBuffer, |
|
|
const uint8_t |
value |
|
) |
| |
|
inlineprivate |
◆ appendToBuffer() [2/2]
void sistrip::FEDBufferPayload::appendToBuffer |
( |
size_t * |
pIndexInBuffer, |
|
|
std::vector< uint8_t >::const_iterator |
start, |
|
|
std::vector< uint8_t >::const_iterator |
finish |
|
) |
| |
|
inlineprivate |
Definition at line 280 of file SiStripFEDBufferGenerator.h.
283 for (std::vector<uint8_t>::const_iterator iVal =
start; iVal != finish; iVal++) {
void appendToBuffer(size_t *pIndexInBuffer, const uint8_t value)
◆ data()
const uint8_t * sistrip::FEDBufferPayload::data |
( |
| ) |
const |
◆ getFELength()
uint16_t sistrip::FEDBufferPayload::getFELength |
( |
const uint8_t |
internalFEUnitNum | ) |
const |
Definition at line 91 of file SiStripFEDBufferGenerator.cc.
References Exception, and contentValuesCheck::ss.
94 }
catch (
const std::out_of_range&) {
95 std::ostringstream
ss;
96 ss <<
"Invalid FE unit number " << internalFEUnitNum <<
". " 97 <<
"Number should be in internal numbering scheme (0-7). ";
std::vector< uint16_t > feLengths_
◆ lengthInBytes()
size_t sistrip::FEDBufferPayload::lengthInBytes |
( |
| ) |
const |
|
inline |
◆ data_
std::vector<uint8_t> sistrip::FEDBufferPayload::data_ |
|
private |
◆ feLengths_
std::vector<uint16_t> sistrip::FEDBufferPayload::feLengths_ |
|
private |