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
QIE11DataFrame Class Reference

#include <QIE11DataFrame.h>

Inheritance diagram for QIE11DataFrame:
edm::DataFrame

Classes

class  Sample
 

Public Member Functions

bool capidError () const
 
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...
 
 QIE11DataFrame ()
 
 QIE11DataFrame (const edm::DataFrameContainer &c, edm::DataFrame::size_type i)
 
 QIE11DataFrame (edm::DataFrame df)
 
int samples () const
 total number of samples in the digi More...
 
void setCapid0 (int cap0)
 
void setFlags (uint16_t v)
 set the flag word More...
 
void setSample (edm::DataFrame::size_type isample, int adc, int tdc, bool soi=false)
 set the sample contents More...
 
bool wasMarkAndPass () const
 was this a mark-and-pass ZS event? More...
 

Static Public Attributes

static const int FLAG_WORDS = 1
 
static const int HEADER_WORDS = 1
 
static const int MASK_CAPIDERROR = 0x400
 was there a capid rotation error? More...
 
static const int MASK_FLAVOR = 0x7
 
static const int MASK_LINKERROR = 0x800
 was there a link error? More...
 
static const int OFFSET_FLAVOR = 12
 get the flavor of the frame More...
 
static const int WORDS_PER_SAMPLE = 1
 

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 QIE11 including TDC information

Definition at line 12 of file QIE11DataFrame.h.

Constructor & Destructor Documentation

QIE11DataFrame::QIE11DataFrame ( )
inline

Definition at line 19 of file QIE11DataFrame.h.

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

Definition at line 20 of file QIE11DataFrame.h.

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

Definition at line 21 of file QIE11DataFrame.h.

21 : edm::DataFrame(df) { }

Member Function Documentation

bool QIE11DataFrame::capidError ( ) const
inline

Definition at line 54 of file QIE11DataFrame.h.

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

Referenced by operator<<().

static const int MASK_CAPIDERROR
was there a capid rotation error?
data_type & operator[](size_type i)
Definition: DataFrame.h:38
DetId QIE11DataFrame::detid ( ) const
inline

Get the detector id.

Definition at line 42 of file QIE11DataFrame.h.

Referenced by operator<<().

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

get the flag word

Definition at line 63 of file QIE11DataFrame.h.

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

63 { 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 QIE11DataFrame::flavor ( ) const
inline

Definition at line 48 of file QIE11DataFrame.h.

References MASK_FLAVOR, OFFSET_FLAVOR, and cppFunctionSkipper::operator.

Referenced by wasMarkAndPass().

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

Definition at line 51 of file QIE11DataFrame.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 QIE11DataFrame::operator[] ( edm::DataFrame::size_type  i) const
inline

get the sample

Definition at line 58 of file QIE11DataFrame.h.

References HEADER_WORDS.

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

total number of samples in the digi

Definition at line 44 of file QIE11DataFrame.h.

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

Referenced by operator<<().

static const int FLAG_WORDS
static const int HEADER_WORDS
static const int WORDS_PER_SAMPLE
size_type size() const
Definition: DataFrame.h:64
void QIE11DataFrame::setCapid0 ( int  cap0)

Definition at line 4 of file QIE11DataFrame.cc.

References QIE11DataFrame::Sample::MASK_CAPID, QIE11DataFrame::Sample::OFFSET_CAPID, and edm::DataFrame::operator[]().

4  {
5  edm::DataFrame::operator[](0)&=0xFCFF; // inversion of the capid0 mask
7 }
static const int OFFSET_CAPID
static const int MASK_CAPID
data_type & operator[](size_type i)
Definition: DataFrame.h:38
void QIE11DataFrame::setFlags ( uint16_t  v)

set the flag word

Definition at line 9 of file QIE11DataFrame.cc.

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

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

9  {
11 }
data_type & operator[](size_type i)
Definition: DataFrame.h:38
size_type size() const
Definition: DataFrame.h:64
void QIE11DataFrame::setSample ( edm::DataFrame::size_type  isample,
int  adc,
int  tdc,
bool  soi = false 
)

set the sample contents

Definition at line 13 of file QIE11DataFrame.cc.

References QIE11DataFrame::Sample::MASK_ADC, QIE11DataFrame::Sample::MASK_SOI, QIE11DataFrame::Sample::MASK_TDC, QIE11DataFrame::Sample::OFFSET_TDC, edm::DataFrame::operator[](), and edm::DataFrame::size().

13  {
14  if (isample>=size()) return;
16 }
int adc(sample_type sample)
get the ADC sample (12 bits)
static const int MASK_ADC
static const int MASK_TDC
data_type & operator[](size_type i)
Definition: DataFrame.h:38
static const int OFFSET_TDC
static const int MASK_SOI
size_type size() const
Definition: DataFrame.h:64
bool QIE11DataFrame::wasMarkAndPass ( ) const
inline

was this a mark-and-pass ZS event?

Definition at line 56 of file QIE11DataFrame.h.

References flavor().

Referenced by operator<<().

56 {return (flavor()==1); }
int flavor() const

Member Data Documentation

const int QIE11DataFrame::FLAG_WORDS = 1
static

Definition at line 17 of file QIE11DataFrame.h.

Referenced by samples().

const int QIE11DataFrame::HEADER_WORDS = 1
static

Definition at line 16 of file QIE11DataFrame.h.

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

const int QIE11DataFrame::MASK_CAPIDERROR = 0x400
static

was there a capid rotation error?

Definition at line 53 of file QIE11DataFrame.h.

Referenced by capidError().

const int QIE11DataFrame::MASK_FLAVOR = 0x7
static

Definition at line 47 of file QIE11DataFrame.h.

Referenced by flavor().

const int QIE11DataFrame::MASK_LINKERROR = 0x800
static

was there a link error?

Definition at line 50 of file QIE11DataFrame.h.

Referenced by linkError().

const int QIE11DataFrame::OFFSET_FLAVOR = 12
static

get the flavor of the frame

Definition at line 46 of file QIE11DataFrame.h.

Referenced by flavor().

const int QIE11DataFrame::WORDS_PER_SAMPLE = 1
static

Definition at line 15 of file QIE11DataFrame.h.

Referenced by samples().