CMS 3D CMS Logo

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

#include <QIE10DataFrame.h>

Public Member Functions

int adc () const
 
int capid () const
 
int le_tdc () const
 
bool ok () const
 
 Sample (const edm::DataFrame &frame, edm::DataFrame::size_type i)
 
bool soi () const
 
int te_tdc () const
 

Static Public Attributes

static const int MASK_ADC = 0xFF
 
static const int MASK_CAPID = 0x3
 
static const int MASK_LE_TDC = 0x3F
 
static const int MASK_OK = 0x1000
 
static const int MASK_SOI = 0x2000
 
static const int MASK_TE_TDC = 0x1F
 
static const int OFFSET_CAPID = 12
 
static const int OFFSET_TE_TDC = 6
 

Private Attributes

const edm::DataFrameframe_
 
edm::DataFrame::size_type i_
 

Detailed Description

Definition at line 21 of file QIE10DataFrame.h.

Constructor & Destructor Documentation

QIE10DataFrame::Sample::Sample ( const edm::DataFrame frame,
edm::DataFrame::size_type  i 
)
inline

Definition at line 23 of file QIE10DataFrame.h.

23 : frame_(frame),i_(i) { }
int i
Definition: DBlmapReader.cc:9
const edm::DataFrame & frame_
edm::DataFrame::size_type i_

Member Function Documentation

int QIE10DataFrame::Sample::adc ( ) const
inline

Definition at line 32 of file QIE10DataFrame.h.

References frame_, i_, and MASK_ADC.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

32 { return frame_[i_]&MASK_ADC; }
static const int MASK_ADC
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
int QIE10DataFrame::Sample::capid ( ) const
inline

Definition at line 37 of file QIE10DataFrame.h.

References frame_, i_, MASK_CAPID, and OFFSET_CAPID.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

37 { return (frame_[i_+1]>>OFFSET_CAPID)&MASK_CAPID; }
static const int MASK_CAPID
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
static const int OFFSET_CAPID
int QIE10DataFrame::Sample::le_tdc ( ) const
inline

Definition at line 33 of file QIE10DataFrame.h.

References frame_, i_, and MASK_LE_TDC.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

33 { return frame_[i_+1]&MASK_LE_TDC; }
static const int MASK_LE_TDC
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
bool QIE10DataFrame::Sample::ok ( ) const
inline

Definition at line 35 of file QIE10DataFrame.h.

References frame_, i_, and MASK_OK.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

35 { return frame_[i_]&MASK_OK; }
static const int MASK_OK
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
bool QIE10DataFrame::Sample::soi ( ) const
inline

Definition at line 36 of file QIE10DataFrame.h.

References frame_, i_, and MASK_SOI.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

36 { return frame_[i_]&MASK_SOI; }
static const int MASK_SOI
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
int QIE10DataFrame::Sample::te_tdc ( ) const
inline

Definition at line 34 of file QIE10DataFrame.h.

References frame_, i_, MASK_TE_TDC, and OFFSET_TE_TDC.

Referenced by QIE10DataFrame::copyContent(), and operator<<().

34 { return (frame_[i_+1]>>OFFSET_TE_TDC)&MASK_TE_TDC; }
const edm::DataFrame & frame_
edm::DataFrame::size_type i_
static const int OFFSET_TE_TDC
static const int MASK_TE_TDC

Member Data Documentation

const edm::DataFrame& QIE10DataFrame::Sample::frame_
private

Definition at line 39 of file QIE10DataFrame.h.

Referenced by adc(), capid(), le_tdc(), ok(), soi(), and te_tdc().

edm::DataFrame::size_type QIE10DataFrame::Sample::i_
private

Definition at line 40 of file QIE10DataFrame.h.

Referenced by adc(), capid(), le_tdc(), ok(), soi(), and te_tdc().

const int QIE10DataFrame::Sample::MASK_ADC = 0xFF
static

Definition at line 24 of file QIE10DataFrame.h.

Referenced by adc(), and QIE10DataFrame::setSample().

const int QIE10DataFrame::Sample::MASK_CAPID = 0x3
static

Definition at line 30 of file QIE10DataFrame.h.

Referenced by capid(), and QIE10DataFrame::setSample().

const int QIE10DataFrame::Sample::MASK_LE_TDC = 0x3F
static

Definition at line 25 of file QIE10DataFrame.h.

Referenced by le_tdc(), and QIE10DataFrame::setSample().

const int QIE10DataFrame::Sample::MASK_OK = 0x1000
static

Definition at line 29 of file QIE10DataFrame.h.

Referenced by ok(), and QIE10DataFrame::setSample().

const int QIE10DataFrame::Sample::MASK_SOI = 0x2000
static

Definition at line 28 of file QIE10DataFrame.h.

Referenced by QIE10DataFrame::setSample(), and soi().

const int QIE10DataFrame::Sample::MASK_TE_TDC = 0x1F
static

Definition at line 26 of file QIE10DataFrame.h.

Referenced by QIE10DataFrame::setSample(), and te_tdc().

const int QIE10DataFrame::Sample::OFFSET_CAPID = 12
static

Definition at line 31 of file QIE10DataFrame.h.

Referenced by capid(), and QIE10DataFrame::setSample().

const int QIE10DataFrame::Sample::OFFSET_TE_TDC = 6
static

Definition at line 27 of file QIE10DataFrame.h.

Referenced by QIE10DataFrame::setSample(), and te_tdc().