CMS 3D CMS Logo

sistrip::FEDChannel Class Reference

#include <EventFilter/SiStripRawToDigi/interface/SiStripFEDBuffer.h>

List of all members.

Public Member Functions

 FEDChannel (const uint8_t *data, size_t offset)
uint16_t length () const
uint8_t packetCode () const

Private Member Functions

const uint8_t * data () const
size_t offset () const

Private Attributes

const uint8_t * data_
uint16_t length_
size_t offset_

Friends

class FEDBuffer
class FEDRawChannelUnpacker
class FEDZSChannelUnpacker


Detailed Description

Definition at line 104 of file SiStripFEDBuffer.h.


Constructor & Destructor Documentation

sistrip::FEDChannel::FEDChannel ( const uint8_t *  data,
size_t  offset 
) [inline]

Definition at line 279 of file SiStripFEDBuffer.h.

References data_, length_, and offset_.

00280     : data_(data),
00281     offset_(offset)
00282     {
00283       length_ = ( data_[(offset_)^7] + (data_[(offset_+1)^7] << 8) );
00284     }


Member Function Documentation

const uint8_t* sistrip::FEDChannel::data (  )  const [inline, private]

Definition at line 114 of file SiStripFEDBuffer.h.

References data_.

Referenced by sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), and sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker().

00114 { return data_; }

uint16_t sistrip::FEDChannel::length (  )  const [inline]

Definition at line 108 of file SiStripFEDBuffer.h.

References length_.

Referenced by sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), sistrip::FEDRawChannelUnpacker::FEDRawChannelUnpacker(), sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), and sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker().

00108 { return length_; }

size_t sistrip::FEDChannel::offset (  )  const [inline, private]

Definition at line 115 of file SiStripFEDBuffer.h.

References offset_.

Referenced by sistrip::FEDBuffer::checkChannelLengthsMatchBufferLength(), sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), and sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker().

00115 { return offset_; }

uint8_t sistrip::FEDChannel::packetCode (  )  const [inline]

Definition at line 109 of file SiStripFEDBuffer.h.

References data_, and offset_.

00109 { return data_[(offset_+2)^7]; }


Friends And Related Function Documentation

friend class FEDBuffer [friend]

Definition at line 111 of file SiStripFEDBuffer.h.

friend class FEDRawChannelUnpacker [friend]

Definition at line 113 of file SiStripFEDBuffer.h.

friend class FEDZSChannelUnpacker [friend]

Definition at line 112 of file SiStripFEDBuffer.h.


Member Data Documentation

const uint8_t* sistrip::FEDChannel::data_ [private]

Definition at line 116 of file SiStripFEDBuffer.h.

Referenced by data(), FEDChannel(), and packetCode().

uint16_t sistrip::FEDChannel::length_ [private]

Definition at line 117 of file SiStripFEDBuffer.h.

Referenced by FEDChannel(), and length().

size_t sistrip::FEDChannel::offset_ [private]

Definition at line 118 of file SiStripFEDBuffer.h.

Referenced by FEDChannel(), offset(), and packetCode().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:52:35 2009 for CMSSW by  doxygen 1.5.4