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
unsigned short sampleIndex() const
const_iterator & operator++()
const_iterator cend() const
static constexpr unsigned energyMask
unsigned int detId() const
unsigned char row() const
unsigned char column() 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 int data() const
const_iterator(const PMTDSimAccumulator *acc)
const_iterator operator++(int)
bool operator!=(const const_iterator &other) const
const PMTDSimAccumulator * acc_
PMTDSimAccumulator()=default
unsigned int sampleIndex() const
const_iterator end() const
unsigned short energyIndex() const
~PMTDSimAccumulator()=default
unsigned int size() const
unsigned int energyIndex() const
unsigned char column() const
unsigned int detId() const
std::vector< DetIdSize > detIdSize_
Data(unsigned short ei, unsigned short si, unsigned short d)
unsigned short data() const
TmpElem(unsigned int detId, unsigned char row, unsigned char column, Data data)
const_iterator cbegin() const
char data[epos_bytes_allocation]
static constexpr unsigned dataMask
static constexpr unsigned sampleMask
DetIdSize(unsigned int detId, unsigned char row, unsigned char col)
const_iterator begin() const
unsigned char row() const
tuple size
Write out results.