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

#include <QIE11DataFrame.h>

Public Member Functions

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

Static Public Attributes

static const int MASK_ADC = 0xFF
 
static const int MASK_CAPID = 0x3
 
static const int MASK_SOI = 0x4000
 
static const int MASK_TDC = 0x3F
 
static const int OFFSET_CAPID = 8
 
static const int OFFSET_TDC = 8
 

Private Attributes

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

Detailed Description

Definition at line 23 of file QIE11DataFrame.h.

Constructor & Destructor Documentation

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

Definition at line 25 of file QIE11DataFrame.h.

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

Member Function Documentation

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

Definition at line 32 of file QIE11DataFrame.h.

References frame_, i_, and MASK_ADC.

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

Definition at line 35 of file QIE11DataFrame.h.

References frame_, i_, MASK_CAPID, and OFFSET_CAPID.

35 { return ((((frame_[0]>>OFFSET_CAPID)&MASK_CAPID)+i_)&MASK_CAPID); }
static const int OFFSET_CAPID
edm::DataFrame::size_type i_
static const int MASK_CAPID
const edm::DataFrame & frame_
bool QIE11DataFrame::Sample::soi ( ) const
inline

Definition at line 34 of file QIE11DataFrame.h.

References frame_, i_, and MASK_SOI.

34 { return frame_[i_]&MASK_SOI; }
edm::DataFrame::size_type i_
const edm::DataFrame & frame_
static const int MASK_SOI
int QIE11DataFrame::Sample::tdc ( ) const
inline

Definition at line 33 of file QIE11DataFrame.h.

References frame_, i_, and MASK_TDC.

33 { return (frame_[i_]>>8)&MASK_TDC; }
edm::DataFrame::size_type i_
static const int MASK_TDC
const edm::DataFrame & frame_

Member Data Documentation

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

Definition at line 37 of file QIE11DataFrame.h.

Referenced by adc(), capid(), soi(), and tdc().

edm::DataFrame::size_type QIE11DataFrame::Sample::i_
private

Definition at line 38 of file QIE11DataFrame.h.

Referenced by adc(), capid(), soi(), and tdc().

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

Definition at line 26 of file QIE11DataFrame.h.

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

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

Definition at line 30 of file QIE11DataFrame.h.

Referenced by capid(), and QIE11DataFrame::setCapid0().

const int QIE11DataFrame::Sample::MASK_SOI = 0x4000
static

Definition at line 29 of file QIE11DataFrame.h.

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

const int QIE11DataFrame::Sample::MASK_TDC = 0x3F
static

Definition at line 27 of file QIE11DataFrame.h.

Referenced by QIE11DataFrame::setSample(), and tdc().

const int QIE11DataFrame::Sample::OFFSET_CAPID = 8
static

Definition at line 31 of file QIE11DataFrame.h.

Referenced by capid(), and QIE11DataFrame::setCapid0().

const int QIE11DataFrame::Sample::OFFSET_TDC = 8
static

Definition at line 28 of file QIE11DataFrame.h.

Referenced by QIE11DataFrame::setSample().