1 #ifndef DataFormats_HGCalDigis_PHGCSimAccumulator_h 2 #define DataFormats_HGCalDigis_PHGCSimAccumulator_h 35 const std::vector<unsigned short>& accCharge,
36 const std::vector<unsigned short>&
time)
41 unsigned short ei = 0;
42 unsigned short d = accCharge[
i];
47 unsigned short ei = 1;
48 unsigned short d =
time[
i];
78 unsigned short sampleIndex,
79 const std::vector<unsigned short>& accCharge,
80 const std::vector<unsigned short>&
timing) {
void emplace_back(unsigned int detId, unsigned short sampleIndex, const std::vector< unsigned short > &accCharge, const std::vector< unsigned short > &timing)
SimHitCollection simhitcollection_
const_iterator end() const
TmpElem(const unsigned int detId, const SimHitCollection &simhitCollection)
unsigned int detId() const
const std::vector< unsigned short > timeArray() const
SimHitCollection(const unsigned short si, const std::vector< unsigned short > &accCharge, const std::vector< unsigned short > &time)
const std::vector< unsigned short > & timeArray() const
const_iterator cend() const
static constexpr unsigned dataMask
std::vector< unsigned short > timeArray_
unsigned int nhits() const
bool operator==(const const_iterator &other) const
unsigned short sampleIndex() const
const_iterator begin() const
static constexpr unsigned energyOffset
static constexpr unsigned sampleOffset
std::vector< SimHitCollection > simhitCollection_
const_iterator(const PHGCSimAccumulator *ncc)
~PHGCSimAccumulator()=default
static constexpr unsigned dataOffset
const std::vector< unsigned short > chargeArray() const
PHGCSimAccumulator()=default
const_iterator(const PHGCSimAccumulator *ncc, unsigned int detSize, unsigned int dataSize)
const_iterator cbegin() const
const std::vector< unsigned short > & chargeArray() const
unsigned int nhits() const
void reserve(size_t size)
unsigned int detId() const
std::vector< DetIdSize > detIdSize_
bool operator!=(const const_iterator &other) const
unsigned int size() const
std::vector< unsigned short > chargeArray_
const_iterator operator++(int)
char data[epos_bytes_allocation]
const_iterator & operator++()
SimHitCollection(unsigned int nhits)
const PHGCSimAccumulator * ncc_
static constexpr unsigned energyMask
unsigned int sampleIndex() const
DetIdSize(unsigned int detId)
static constexpr unsigned sampleMask