1 #ifndef DATAFORMATS_HCALDIGI_QIE11DATAFRAME_H 2 #define DATAFORMATS_HCALDIGI_QIE11DATAFRAME_H 33 int capid()
const {
return ((((
frame_[0]>>OFFSET_CAPID)&MASK_CAPID)+
i_-HEADER_WORDS)&MASK_CAPID); }
58 int flavor()
const {
return ((
m_data[0]>>OFFSET_FLAVOR)&MASK_FLAVOR); }
87 #endif // DATAFORMATS_HCALDIGI_QIE11DATAFRAME_H DetId detid() const
Get the detector id.
void setSample(edm::DataFrame::size_type isample, int adc, int tdc, bool soi=false)
set the sample contents
static const int FLAG_WORDS
Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
edm::DataFrame::size_type size() const
more accessors
static const int OFFSET_CAPID
QIE11DataFrame(edm::DataFrame const &df)
edm::DataFrame::const_iterator end() const
edm::DataFrame::size_type i_
static const int MASK_CAPID
void copyContent(const QIE11DataFrame &)
static const int HEADER_WORDS
static const int MASK_ADC
static const int MASK_FLAVOR
void setFlags(uint16_t v)
set the flag word
uint16_t flags() const
get the flag word
static const int WORDS_PER_SAMPLE
static const int MASK_LINKERROR
was there a link error?
static const int MASK_CAPIDERROR
was there a capid rotation error?
void setZSInfo(bool markAndPass)
set ZS params
static const int MASK_TDC
bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
Sample operator[](edm::DataFrame::size_type i) const
get the sample
edm::DataFrame::const_iterator begin() const
edm::DataFrame::id_type id() const
const edm::DataFrame & frame_
static const int OFFSET_FLAVOR
get the flavor of the frame
static const int OFFSET_TDC
std::ostream & operator<<(std::ostream &, const QIE11DataFrame &)
static const int MASK_SOI
int presamples() const
for backward compatibility
data_type const * const_iterator
edm::DataFrame::iterator begin()
iterators
edm::DataFrame::iterator end()
int samples() const
total number of samples in the digi