7 if (isample>=
size())
return;
25 if ((*
this)[
i].soi())
return i;
35 static_assert(
sizeof(wide) == 2*
sizeof(
word1_),
36 "The wide input type must be able to contain two words");
45 "The wide result type must be able to contain two words");
60 s <<
" " << digi.
samples() <<
" samples";
66 s <<
" ADC=" << sam.
adc() <<
" TDC(LE)=" << sam.
le_tdc() <<
" TDC(TE)=" << sam.
te_tdc() <<
" CAPID=" << sam.
capid();
67 if (sam.
soi()) s <<
" SOI ";
68 if (!sam.
ok()) s <<
" !OK ";
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
int presamples() const
for backward compatibility
void copyContent(const QIE10DataFrame &src)
static const int WORDS_PER_SAMPLE
edm::DataFrame::size_type size() const
more accessors
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void setZSInfo(bool markAndPass)
set ZS params
static const int MASK_ADC
uint32_t rawId() const
get the raw id
Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
static const int MASK_MARKPASS
was this a mark-and-pass ZS event?
bool zsMarkAndPass() const
DetId detid() const
Get the detector id.
static const int OFFSET_TE_TDC
wide_type wideRaw() const
edm::DataFrame::data_type word1_
edm::DataFrame::data_type word2_
static const int HEADER_WORDS
static const int MASK_TE_TDC
void setSample(edm::DataFrame::size_type isample, int adc, int le_tdc, int te_tdc, int capid, bool soi=false, bool ok=true)
set the sample contents
Detector det() const
get the detector field from this detid
static const int OFFSET_CAPID