1 #ifndef DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
2 #define DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
29 static_assert(
sizeof(wide) == 2 *
sizeof(
word1_),
"The wide input type must be able to contain two words");
55 "The wide result type must be able to contain two words");
117 if (isample >=
size())
136 #endif // DATAFORMATS_HCALDIGI_QIE10DATAFRAME_H
constexpr int capid() const
constexpr void setFlags(uint16_t v)
set the flag word
static const int MASK_SOI
constexpr Sample operator[](edm::DataFrame::size_type i) const
get the sample
constexpr QIE10DataFrame(edm::DataFrame const &df)
constexpr edm::DataFrame::const_iterator end() const
static const int MASK_CAPID
static const int MASK_LE_TDC
constexpr edm::DataFrame::id_type id() const
constexpr edm::DataFrame::size_type size() const
more accessors
constexpr QIE10DataFrame()
constexpr edm::DataFrame::iterator end()
Sample(const wide_type wide)
constexpr 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
static const int WORDS_PER_SAMPLE
constexpr edm::DataFrame::iterator begin()
iterators
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const int MASK_LINKERROR
was there a link error?
constexpr void setZSInfo(bool markAndPass)
set ZS params
constexpr Sample(const edm::DataFrame::data_type &word1, const edm::DataFrame::data_type &word2)
static const int MASK_ADC
constexpr id_type id() const
constexpr DetId detid() const
Get the detector id.
constexpr uint16_t flags() const
get the flag word
static const int MASK_MARKPASS
was this a mark-and-pass ZS event?
constexpr bool zsMarkAndPass() const
constexpr size_type size() const
constexpr bool linkError() const
constexpr bool soi() const
static const int OFFSET_TE_TDC
QIE10DataFrame::Sample::wide_type wideRaw() const
edm::DataFrame::data_type word1_
static const int OFFSET_FLAVOR
get the flavor of the frame
edm::DataFrame::data_type word2_
constexpr int le_tdc() const
constexpr int adc() const
constexpr int flavor() const
static const int FLAG_WORDS
static const int HEADER_WORDS
constexpr Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
constexpr iterator begin()
constexpr int presamples() const
for backward compatibility
constexpr void copyContent(const QIE10DataFrame &digi)
constexpr int samples() const
total number of samples in the digi
constexpr int te_tdc() const
data_type const * const_iterator
static const int MASK_TE_TDC
constexpr bool ok() const
constexpr edm::DataFrame::const_iterator begin() const
constexpr edm::DataFrame::data_type raw(edm::DataFrame::size_type i) const
static const int MASK_FLAVOR
static const int OFFSET_CAPID
uint16_t *__restrict__ uint16_t const *__restrict__ adc