1 #ifndef DataFormats_HGCDigi_PHGCSimAccumulator_h
2 #define DataFormats_HGCDigi_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_
unsigned int nhits() const
TmpElem(const unsigned int detId, const SimHitCollection &simhitCollection)
SimHitCollection(const unsigned short si, const std::vector< unsigned short > &accCharge, const std::vector< unsigned short > &time)
static constexpr unsigned dataMask
std::vector< unsigned short > timeArray_
bool operator!=(const const_iterator &other) const
unsigned int sampleIndex() const
const_iterator cend() 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
unsigned int size() const
PHGCSimAccumulator()=default
const_iterator(const PHGCSimAccumulator *ncc, unsigned int detSize, unsigned int dataSize)
const std::vector< unsigned short > & chargeArray() const
unsigned short sampleIndex() const
const std::vector< unsigned short > timeArray() const
void reserve(size_t size)
std::vector< DetIdSize > detIdSize_
std::vector< unsigned short > chargeArray_
const_iterator operator++(int)
char data[epos_bytes_allocation]
const_iterator & operator++()
SimHitCollection(unsigned int nhits)
const_iterator cbegin() const
const PHGCSimAccumulator * ncc_
bool operator==(const const_iterator &other) const
const std::vector< unsigned short > & timeArray() const
const std::vector< unsigned short > chargeArray() const
unsigned int detId() const
static constexpr unsigned energyMask
tuple size
Write out results.
unsigned int nhits() const
DetIdSize(unsigned int detId)
const_iterator end() const
unsigned int detId() const
static constexpr unsigned sampleMask