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 DetId detid() const
Get the detector id.
constexpr edm::DataFrame::data_type raw(edm::DataFrame::size_type i) const
constexpr void setFlags(uint16_t v)
set the flag word
static const int MASK_SOI
constexpr edm::DataFrame::id_type id() const
constexpr int flavor() const
constexpr QIE10DataFrame(edm::DataFrame const &df)
constexpr edm::DataFrame::size_type size() const
more accessors
constexpr bool zsMarkAndPass() const
static const int MASK_CAPID
static const int MASK_LE_TDC
constexpr QIE10DataFrame()
constexpr edm::DataFrame::iterator end()
Sample(const wide_type wide)
constexpr int te_tdc() const
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
constexpr int presamples() const
for backward compatibility
static const int MASK_LINKERROR
was there a link error?
constexpr Sample operator[](edm::DataFrame::size_type i) const
get the sample
constexpr void setZSInfo(bool markAndPass)
set ZS params
constexpr Sample(const edm::DataFrame::data_type &word1, const edm::DataFrame::data_type &word2)
constexpr int adc() const
static const int MASK_ADC
constexpr int le_tdc() const
constexpr size_type size() const
QIE10DataFrame::Sample::wide_type wideRaw() const
static const int MASK_MARKPASS
was this a mark-and-pass ZS event?
constexpr edm::DataFrame::const_iterator begin() const
static const int OFFSET_TE_TDC
edm::DataFrame::data_type word1_
constexpr bool ok() const
constexpr uint16_t flags() const
get the flag word
static const int OFFSET_FLAVOR
get the flavor of the frame
edm::DataFrame::data_type word2_
constexpr bool linkError() const
constexpr int capid() const
static const int FLAG_WORDS
constexpr id_type id() const
static const int HEADER_WORDS
constexpr Sample(const edm::DataFrame &frame, edm::DataFrame::size_type i)
constexpr iterator begin()
constexpr bool soi() const
constexpr void copyContent(const QIE10DataFrame &digi)
data_type const * const_iterator
static const int MASK_TE_TDC
std::ostream & operator<<(std::ostream &, const QIE10DataFrame &)
constexpr edm::DataFrame::const_iterator end() const
static const int MASK_FLAVOR
static const int OFFSET_CAPID
constexpr int samples() const
total number of samples in the digi
uint16_t *__restrict__ uint16_t const *__restrict__ adc