CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Attributes
QIE10DataFrame Class Reference

#include <QIE10DataFrame.h>

Inheritance diagram for QIE10DataFrame:
edm::DataFrame

Classes

class  Sample
 

Public Member Functions

DetId detid () const
 Get the detector id. More...
 
uint16_t flags () const
 get the flag word More...
 
int flavor () const
 
bool linkError () const
 
Sample operator[] (edm::DataFrame::size_type i) const
 get the sample More...
 
 QIE10DataFrame ()
 
 QIE10DataFrame (const edm::DataFrameContainer &c, edm::DataFrame::size_type i)
 
 QIE10DataFrame (edm::DataFrame df)
 
int samples () const
 total number of samples in the digi More...
 
void setFlags (uint16_t v)
 set the flag word More...
 
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 More...
 
bool wasMarkAndPass () const
 

Static Public Attributes

static const int FLAG_WORDS = 1
 
static const int HEADER_WORDS = 1
 
static const int MASK_FLAVOR = 0x7
 
static const int MASK_LINKERROR = 0x800
 was there a link error? More...
 
static const int MASK_MARKPASS = 0x100
 was this a mark-and-pass ZS event? More...
 
static const int OFFSET_FLAVOR = 12
 get the flavor of the frame More...
 
static const int WORDS_PER_SAMPLE = 2
 

Additional Inherited Members

- Protected Types inherited from edm::DataFrame
typedef data_type const * const_iterator
 
typedef unsigned short data_type
 
typedef unsigned int id_type
 
typedef data_typeiterator
 
typedef unsigned int size_type
 
- Protected Member Functions inherited from edm::DataFrame
iterator begin ()
 
const_iterator begin () const
 
 DataFrame ()
 
 DataFrame (id_type i, data_type const *idata, size_type isize)
 
 DataFrame (DataFrameContainer const &icont, size_type i)
 
iterator end ()
 
const_iterator end () const
 
id_type id () const
 
data_typeoperator[] (size_type i)
 
data_type operator[] (size_type i) const
 
void set (DataFrameContainer const &icont, size_type i)
 
size_type size () const
 

Detailed Description

Precision readout digi from QIE10 including TDC information

Definition at line 12 of file QIE10DataFrame.h.

Constructor & Destructor Documentation

QIE10DataFrame::QIE10DataFrame ( )
inline

Definition at line 19 of file QIE10DataFrame.h.

19 { }
QIE10DataFrame::QIE10DataFrame ( const edm::DataFrameContainer c,
edm::DataFrame::size_type  i 
)
inline

Definition at line 20 of file QIE10DataFrame.h.

20 : edm::DataFrame(c,i) { }
int i
Definition: DBlmapReader.cc:9
QIE10DataFrame::QIE10DataFrame ( edm::DataFrame  df)
inline

Definition at line 21 of file QIE10DataFrame.h.

21 : edm::DataFrame(df) { }

Member Function Documentation

DetId QIE10DataFrame::detid ( ) const
inline

Get the detector id.

Definition at line 46 of file QIE10DataFrame.h.

Referenced by operator<<().

46 { return DetId(id()); }
Definition: DetId.h:18
uint16_t QIE10DataFrame::flags ( ) const
inline

get the flag word

Definition at line 64 of file QIE10DataFrame.h.

References edm::DataFrame::operator[](), and edm::DataFrame::size().

64 { return edm::DataFrame::operator[](size()-1); }
data_type & operator[](size_type i)
Definition: DataFrame.h:38
size_type size() const
Definition: DataFrame.h:64
int QIE10DataFrame::flavor ( ) const
inline

Definition at line 52 of file QIE10DataFrame.h.

References MASK_FLAVOR, OFFSET_FLAVOR, and cppFunctionSkipper::operator.

static const int OFFSET_FLAVOR
get the flavor of the frame
static const int MASK_FLAVOR
bool QIE10DataFrame::linkError ( ) const
inline

Definition at line 55 of file QIE10DataFrame.h.

References MASK_LINKERROR, and edm::DataFrame::operator[]().

Referenced by operator<<().

static const int MASK_LINKERROR
was there a link error?
data_type & operator[](size_type i)
Definition: DataFrame.h:38
Sample QIE10DataFrame::operator[] ( edm::DataFrame::size_type  i) const
inline

get the sample

Definition at line 60 of file QIE10DataFrame.h.

References HEADER_WORDS, and WORDS_PER_SAMPLE.

60 { return Sample(*this,i*WORDS_PER_SAMPLE+HEADER_WORDS); }
int i
Definition: DBlmapReader.cc:9
static const int WORDS_PER_SAMPLE
static const int HEADER_WORDS
int QIE10DataFrame::samples ( ) const
inline

total number of samples in the digi

Definition at line 48 of file QIE10DataFrame.h.

References FLAG_WORDS, HEADER_WORDS, edm::DataFrame::size(), and WORDS_PER_SAMPLE.

Referenced by operator<<().

static const int WORDS_PER_SAMPLE
static const int FLAG_WORDS
static const int HEADER_WORDS
size_type size() const
Definition: DataFrame.h:64
void QIE10DataFrame::setFlags ( uint16_t  v)

set the flag word

Definition at line 10 of file QIE10DataFrame.cc.

References edm::DataFrame::operator[](), edm::DataFrame::size(), and findQualityFiles::v.

Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__().

10  {
12 }
data_type & operator[](size_type i)
Definition: DataFrame.h:38
size_type size() const
Definition: DataFrame.h:64
void QIE10DataFrame::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

Definition at line 4 of file QIE10DataFrame.cc.

References HEADER_WORDS, QIE10DataFrame::Sample::MASK_ADC, QIE10DataFrame::Sample::MASK_CAPID, QIE10DataFrame::Sample::MASK_LE_TDC, QIE10DataFrame::Sample::MASK_OK, QIE10DataFrame::Sample::MASK_SOI, QIE10DataFrame::Sample::MASK_TE_TDC, QIE10DataFrame::Sample::OFFSET_CAPID, QIE10DataFrame::Sample::OFFSET_TE_TDC, edm::DataFrame::operator[](), edm::DataFrame::size(), and WORDS_PER_SAMPLE.

4  {
5  if (isample>=size()) return;
7  edm::DataFrame::operator[](isample*WORDS_PER_SAMPLE+HEADER_WORDS+1)=(le_tdc&Sample::MASK_LE_TDC)|((fe_tdc&Sample::MASK_TE_TDC)<<Sample::OFFSET_TE_TDC)|((capid&Sample::MASK_CAPID)<<Sample::OFFSET_CAPID)|0x4000; // 0x4000 marks this as second word of a pair
8 }
int adc(sample_type sample)
get the ADC sample (12 bits)
static const int MASK_OK
static const int MASK_SOI
static const int MASK_CAPID
static const int MASK_LE_TDC
static const int WORDS_PER_SAMPLE
static const int MASK_ADC
data_type & operator[](size_type i)
Definition: DataFrame.h:38
static const int OFFSET_TE_TDC
static const int HEADER_WORDS
static const int MASK_TE_TDC
size_type size() const
Definition: DataFrame.h:64
static const int OFFSET_CAPID
bool QIE10DataFrame::wasMarkAndPass ( ) const
inline

Definition at line 58 of file QIE10DataFrame.h.

References MASK_MARKPASS, and edm::DataFrame::operator[]().

Referenced by operator<<().

static const int MASK_MARKPASS
was this a mark-and-pass ZS event?
data_type & operator[](size_type i)
Definition: DataFrame.h:38

Member Data Documentation

const int QIE10DataFrame::FLAG_WORDS = 1
static

Definition at line 17 of file QIE10DataFrame.h.

Referenced by samples().

const int QIE10DataFrame::HEADER_WORDS = 1
static

Definition at line 16 of file QIE10DataFrame.h.

Referenced by operator[](), samples(), and setSample().

const int QIE10DataFrame::MASK_FLAVOR = 0x7
static

Definition at line 51 of file QIE10DataFrame.h.

Referenced by flavor().

const int QIE10DataFrame::MASK_LINKERROR = 0x800
static

was there a link error?

Definition at line 54 of file QIE10DataFrame.h.

Referenced by linkError().

const int QIE10DataFrame::MASK_MARKPASS = 0x100
static

was this a mark-and-pass ZS event?

Definition at line 57 of file QIE10DataFrame.h.

Referenced by wasMarkAndPass().

const int QIE10DataFrame::OFFSET_FLAVOR = 12
static

get the flavor of the frame

Definition at line 50 of file QIE10DataFrame.h.

Referenced by flavor().

const int QIE10DataFrame::WORDS_PER_SAMPLE = 2
static

Definition at line 15 of file QIE10DataFrame.h.

Referenced by operator[](), samples(), and setSample().