1 #ifndef DataFormats_FTLDigi_PMTDSimAccumulator_h 2 #define DataFormats_FTLDigi_PMTDSimAccumulator_h 20 unsigned char row()
const {
return row_; }
59 data_.shrink_to_fit();
72 unsigned short energyIndex,
73 unsigned short sampleIndex,
74 unsigned short data) {
79 data_.emplace_back(energyIndex, sampleIndex,
data);
89 unsigned char row()
const {
return row_; }
141 return TmpElem(
id.detId(),
id.row(),
id.column(),
data_.back());
static constexpr unsigned energyOffset
const_iterator & operator++()
static constexpr unsigned energyMask
unsigned int detId() const
const_iterator(const PMTDSimAccumulator *acc, unsigned int detSize, unsigned int dataSize)
bool operator!=(const const_iterator &other) const
void emplace_back(unsigned int detId, unsigned char row, unsigned char column, unsigned short energyIndex, unsigned short sampleIndex, unsigned short data)
std::vector< Data > data_
void reserve(size_t size)
unsigned char row() const
unsigned char column() const
const_iterator(const PMTDSimAccumulator *acc)
const_iterator operator++(int)
unsigned char row() const
const_iterator cend() const
const PMTDSimAccumulator * acc_
PMTDSimAccumulator()=default
unsigned short energyIndex() const
~PMTDSimAccumulator()=default
const_iterator cbegin() const
const_iterator end() const
unsigned short sampleIndex() const
unsigned int size() const
unsigned short data() const
std::vector< DetIdSize > detIdSize_
bool operator==(const const_iterator &other) const
Data(unsigned short ei, unsigned short si, unsigned short d)
TmpElem(unsigned int detId, unsigned char row, unsigned char column, Data data)
char data[epos_bytes_allocation]
static constexpr unsigned dataMask
unsigned int data() const
static constexpr unsigned sampleMask
unsigned char column() const
unsigned int detId() const
unsigned int energyIndex() const
DetIdSize(unsigned int detId, unsigned char row, unsigned char col)
unsigned int sampleIndex() const
const_iterator begin() const