1 #ifndef DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
2 #define DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
73 #endif // DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
static const int MASK_SOI
void setFlags(uint16_t v)
set the flag word
static const int MASK_CAPID
static const int MASK_LE_TDC
void setSample(edm::DataFrame::size_type isample, int adc, int le_tdc, int fe_tdc, int capid, bool soi=false, bool ok=true)
set the sample contents
uint16_t flags() const
get the flag word
Sample operator[](edm::DataFrame::size_type i) const
get the sample
static const int WORDS_PER_SAMPLE
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const int MASK_LINKERROR
was there a link error?
static const int MASK_ADC
const edm::DataFrame & frame_
bool wasMarkAndPass() const
Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
static const int MASK_MARKPASS
was this a mark-and-pass ZS event?
edm::DataFrame::size_type i_
data_type & operator[](size_type i)
DetId detid() const
Get the detector id.
static const int OFFSET_TE_TDC
static const int OFFSET_FLAVOR
get the flavor of the frame
static const int FLAG_WORDS
static const int HEADER_WORDS
static const int MASK_TE_TDC
static const int MASK_FLAVOR
QIE10DataFrame(edm::DataFrame df)
QIE10DataFrame(const edm::DataFrameContainer &c, edm::DataFrame::size_type i)
static const int OFFSET_CAPID