#include <PHGCSimAccumulator.h>
Definition at line 9 of file PHGCSimAccumulator.h.
PHGCSimAccumulator::PHGCSimAccumulator |
( |
| ) |
|
|
default |
PHGCSimAccumulator::PHGCSimAccumulator |
( |
unsigned int |
detId | ) |
|
|
inline |
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 79 of file PHGCSimAccumulator.h.
References data_, PHGCSimAccumulator::DetIdSize::detIdMask, PHGCSimAccumulator::DetIdSize::detIdSize_, detSubdetId_, and DetId::kSubdetOffset.
85 data_.emplace_back(energyIndex, sampleIndex,
data);
std::vector< Data > data_
static const int kSubdetOffset
static constexpr unsigned detIdMask
unsigned short detSubdetId_
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 158 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 |
unsigned short PHGCSimAccumulator::detSubdetId_ = 0 |
|
private |