Go to the documentation of this file. 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());
bool operator!=(const const_iterator &other) const
unsigned int data() const
constexpr static unsigned energyOffset
unsigned short sampleIndex() const
const PMTDSimAccumulator * acc_
std::vector< Data > data_
const_iterator begin() const
void reserve(size_t size)
DetIdSize(unsigned int detId, unsigned char row, unsigned char col)
std::vector< DetIdSize > detIdSize_
const_iterator(const PMTDSimAccumulator *acc)
const_iterator end() const
bool operator==(const const_iterator &other) const
~PMTDSimAccumulator()=default
unsigned short data() const
unsigned int size() const
unsigned char row() const
unsigned char column() const
PMTDSimAccumulator()=default
Data(unsigned short ei, unsigned short si, unsigned short d)
const_iterator(const PMTDSimAccumulator *acc, unsigned int detSize, unsigned int dataSize)
const_iterator cbegin() const
constexpr static unsigned dataMask
unsigned char column() const
const_iterator cend() const
unsigned int detId() const
TmpElem(unsigned int detId, unsigned char row, unsigned char column, Data data)
unsigned int detId() const
const_iterator operator++(int)
unsigned short energyIndex() const
unsigned int energyIndex() const
unsigned char row() const
constexpr static unsigned energyMask
char data[epos_bytes_allocation]
void emplace_back(unsigned int detId, unsigned char row, unsigned char column, unsigned short energyIndex, unsigned short sampleIndex, unsigned short data)
unsigned int sampleIndex() const
const_iterator & operator++()
constexpr static unsigned sampleMask