#include <PHGCSimAccumulator.h>
Definition at line 9 of file PHGCSimAccumulator.h.
PHGCSimAccumulator::PHGCSimAccumulator |
( |
| ) |
|
|
default |
PHGCSimAccumulator::~PHGCSimAccumulator |
( |
| ) |
|
|
default |
TmpElem PHGCSimAccumulator::back |
( |
| ) |
const |
|
inline |
void PHGCSimAccumulator::emplace_back |
( |
unsigned int |
detId, |
|
|
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 67 of file PHGCSimAccumulator.h.
References data_, PHGCSimAccumulator::DetIdSize::detId(), and detIdSize_.
71 data_.emplace_back(energyIndex, sampleIndex,
data);
std::vector< Data > data_
std::vector< DetIdSize > detIdSize_
char data[epos_bytes_allocation]
void PHGCSimAccumulator::reserve |
( |
size_t |
size | ) |
|
|
inline |
void PHGCSimAccumulator::shrink_to_fit |
( |
| ) |
|
|
inline |
std::vector<Data> PHGCSimAccumulator::data_ |
|
private |
Definition at line 132 of file PHGCSimAccumulator.h.
Referenced by back(), cend(), PHGCSimAccumulator::Data::data(), PHGCSimAccumulator::TmpElem::data(), emplace_back(), PHGCSimAccumulator::Data::energyIndex(), PHGCSimAccumulator::TmpElem::energyIndex(), reserve(), PHGCSimAccumulator::Data::sampleIndex(), PHGCSimAccumulator::TmpElem::sampleIndex(), and shrink_to_fit().
std::vector<DetIdSize> PHGCSimAccumulator::detIdSize_ |
|
private |