#include <PMTDSimAccumulator.h>
Definition at line 9 of file PMTDSimAccumulator.h.
◆ PMTDSimAccumulator()
PMTDSimAccumulator::PMTDSimAccumulator |
( |
| ) |
|
|
default |
◆ ~PMTDSimAccumulator()
PMTDSimAccumulator::~PMTDSimAccumulator |
( |
| ) |
|
|
default |
◆ back()
TmpElem PMTDSimAccumulator::back |
( |
| ) |
const |
|
inline |
Definition at line 139 of file PMTDSimAccumulator.h.
References data_, and detIdSize_.
141 return TmpElem(
id.detId(),
id.row(),
id.column(),
data_.back());
std::vector< Data > data_
std::vector< DetIdSize > detIdSize_
◆ begin()
◆ cbegin()
◆ cend()
◆ emplace_back()
void PMTDSimAccumulator::emplace_back |
( |
unsigned int |
detId, |
|
|
unsigned char |
row, |
|
|
unsigned char |
column, |
|
|
unsigned short |
energyIndex, |
|
|
unsigned short |
sampleIndex, |
|
|
unsigned short |
data |
|
) |
| |
|
inline |
Adds data for a given detId, energyIndex, and sampleIndex.
It is the caller's responsibility to ensure that energyIndex, sampleIndex, and data fit in the space reserved for them in the Data bitfield above.
Definition at line 69 of file PMTDSimAccumulator.h.
References data, data_, and detIdSize_.
Referenced by mtd_digitizer::saveSimHitAccumulator().
79 data_.emplace_back(energyIndex, sampleIndex,
data);
std::vector< Data > data_
std::vector< DetIdSize > detIdSize_
char data[epos_bytes_allocation]
◆ end()
◆ reserve()
void PMTDSimAccumulator::reserve |
( |
size_t |
size | ) |
|
|
inline |
◆ shrink_to_fit()
void PMTDSimAccumulator::shrink_to_fit |
( |
| ) |
|
|
inline |
◆ data_
std::vector<Data> PMTDSimAccumulator::data_ |
|
private |
◆ detIdSize_
std::vector<DetIdSize> PMTDSimAccumulator::detIdSize_ |
|
private |