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