1 #ifndef SKIROC2DATAFRAME_H_INCLUDED
2 #define SKIROC2DATAFRAME_H_INCLUDED 1
5 #include "HGCal/DataFormats/interface/HGCalTBDetId.h"
6 #include "DataFormats/Common/interface/DataFrame.h"
22 Sample(
const edm::DataFrame& frame, edm::DataFrame::size_type i) : frame_(frame), i_(i) { }
47 const edm::DataFrame& frame_;
48 edm::DataFrame::size_type i_;
59 edm::DataFrame::id_type
id()
const
64 edm::DataFrame::size_type
size()
const
69 edm::DataFrame::iterator
begin()
71 return m_data.begin();
73 edm::DataFrame::iterator
end()
77 edm::DataFrame::const_iterator
begin()
const
79 return m_data.begin();
81 edm::DataFrame::const_iterator
end()
const
97 void setSample(edm::DataFrame::size_type isample,
int adcLow,
int adcHigh,
int tdc);
101 return m_data[
size() - 1];
107 edm::DataFrame m_data;
112 #endif // SKIROC2DATAFRAME_H_INCLUDED
static const int MASK_GAIN
void copyContent(const SKIROC2DataFrame &src)
HGCalTBDetId detid() const
Get the detector id.
Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
static const int MASK_HIT
void setSample(edm::DataFrame::size_type isample, int adcLow, int adcHigh, int tdc)
set the sample contents
SKIROC2DataFrame(edm::DataFrame const &df)
edm::DataFrame::iterator begin()
iterators
Sample operator[](edm::DataFrame::size_type i) const
get the sample
edm::DataFrame::const_iterator end() const
void setFlags(uint16_t v)
set the flag word
uint16_t flags() const
get the flag word
static const int FLAG_WORDS
edm::DataFrame::const_iterator begin() const
std::ostream & operator<<(std::ostream &, const HGCalTBDetId &id)
static const int MASK_ADCTDC
edm::DataFrame::size_type size() const
more accessors
static const int HEADER_WORDS
edm::DataFrame::iterator end()
static const int WORDS_PER_SAMPLE
edm::DataFrame::id_type id() const
int samples() const
total number of samples in the digi