#include <PMTDSimAccumulator.h>
Definition at line 9 of file PMTDSimAccumulator.h.
PMTDSimAccumulator::PMTDSimAccumulator |
( |
| ) |
|
|
default |
PMTDSimAccumulator::~PMTDSimAccumulator |
( |
| ) |
|
|
default |
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_
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_, 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]
void PMTDSimAccumulator::reserve |
( |
size_t |
size | ) |
|
|
inline |
void PMTDSimAccumulator::shrink_to_fit |
( |
| ) |
|
|
inline |
std::vector<Data> PMTDSimAccumulator::data_ |
|
private |
std::vector<DetIdSize> PMTDSimAccumulator::detIdSize_ |
|
private |