1 #ifndef HGCalTBDataFrameContainers_h_included
2 #define HGCalTBDataFrameContainers_h_included 1
4 #include "DataFormats/Common/interface/DataFrameContainer.h"
5 #include "HGCal/DataFormats/interface/SKIROC2DataFrame.h"
6 #include "HGCal/DataFormats/interface/SKIROCParameters.h"
12 typedef edm::DataFrameContainer::size_type
size_type;
15 edm::DataFrameContainer(nsamples_per_digi * Digi::WORDS_PER_SAMPLE + Digi::HEADER_WORDS + Digi::FLAG_WORDS, isubdet) { }
16 void swap(DataFrameContainer& other)
18 this->DataFrameContainer::swap(other);
22 using edm::DataFrameContainer::push_back;
25 return Digi(this->back());
29 return int((stride() - Digi::HEADER_WORDS - Digi::FLAG_WORDS) / Digi::WORDS_PER_SAMPLE);
37 std::vector<uint16_t> dummy_data(stride(), 0);
38 push_back(detid.rawId(), &(dummy_data[0]));
49 #endif // HGCalTBDataFrameContainers_h_included
void addDataFrame(DetId detid)
void swap(DataFrameContainer &other)
void addDataFrame(DetId detid, const uint16_t *data)
void push_back(const Digi &digi)
HGCalDataFrameContainer(int nsamples_per_digi=SKIROC::MAXSAMPLES, int isubdet=0)
edm::DataFrameContainer::size_type size_type
HGCalDataFrameContainer< SKIROC2DataFrame > SKIROC2DigiCollection