Go to the documentation of this file. 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) {
std::vector< unsigned short > chargeArray_
SimHitCollection(unsigned int nhits)
const std::vector< unsigned short > timeArray() const
std::vector< unsigned short > timeArray_
constexpr static unsigned sampleOffset
constexpr static unsigned dataMask
constexpr static unsigned energyOffset
constexpr static unsigned energyMask
constexpr static unsigned sampleMask
std::vector< DetIdSize > detIdSize_
unsigned int nhits() const
const std::vector< unsigned short > chargeArray() const
SimHitCollection simhitcollection_
void reserve(size_t size)
TmpElem(const unsigned int detId, const SimHitCollection &simhitCollection)
const std::vector< unsigned short > & timeArray() const
const_iterator(const PHGCSimAccumulator *ncc, unsigned int detSize, unsigned int dataSize)
const_iterator begin() const
DetIdSize(unsigned int detId)
const_iterator cbegin() const
unsigned int nhits() const
std::vector< SimHitCollection > simhitCollection_
bool operator!=(const const_iterator &other) const
bool operator==(const const_iterator &other) const
const PHGCSimAccumulator * ncc_
unsigned int size() const
const_iterator & operator++()
unsigned short sampleIndex() const
const_iterator cend() const
void emplace_back(unsigned int detId, unsigned short sampleIndex, const std::vector< unsigned short > &accCharge, const std::vector< unsigned short > &timing)
const_iterator end() const
const std::vector< unsigned short > & chargeArray() const
const_iterator operator++(int)
unsigned int sampleIndex() const
char data[epos_bytes_allocation]
~PHGCSimAccumulator()=default
PHGCSimAccumulator()=default
unsigned int detId() const
SimHitCollection(const unsigned short si, const std::vector< unsigned short > &accCharge, const std::vector< unsigned short > &time)
constexpr static unsigned dataOffset
unsigned int detId() const
const_iterator(const PHGCSimAccumulator *ncc)