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 Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
sistrip::FEDZSChannelUnpacker Class Reference

#include <SiStripFEDBuffer.h>

Public Member Functions

uint8_t adc () const
 
uint16_t adcPreMix () const
 
 FEDZSChannelUnpacker ()
 
bool hasData () const
 
FEDZSChannelUnpackeroperator++ ()
 
FEDZSChannelUnpackeroperator++ (int)
 
uint8_t sampleNumber () const
 

Static Public Member Functions

static FEDZSChannelUnpacker preMixRawModeUnpacker (const FEDChannel &channel)
 
static FEDZSChannelUnpacker zeroSuppressedLiteModeUnpacker (const FEDChannel &channel)
 
static FEDZSChannelUnpacker zeroSuppressedModeUnpacker (const FEDChannel &channel)
 

Private Member Functions

 FEDZSChannelUnpacker (const uint8_t *payload, const uint16_t channelPayloadOffset, const int16_t channelPayloadLength, const uint16_t offsetIncrement=1)
 
void readNewClusterInfo ()
 
void throwBadClusterLength ()
 

Static Private Member Functions

static void throwBadChannelLength (const uint16_t length)
 
static void throwUnorderedData (const uint8_t currentStrip, const uint8_t firstStripOfNewCluster)
 

Private Attributes

uint16_t channelPayloadLength_
 
uint16_t channelPayloadOffset_
 
uint16_t currentOffset_
 
uint8_t currentStrip_
 
const uint8_t * data_
 
uint16_t offsetIncrement_
 
uint8_t valuesLeftInCluster_
 

Detailed Description

Definition at line 86 of file SiStripFEDBuffer.h.

Constructor & Destructor Documentation

sistrip::FEDZSChannelUnpacker::FEDZSChannelUnpacker ( )
inline

Definition at line 349 of file SiStripFEDBuffer.h.

sistrip::FEDZSChannelUnpacker::FEDZSChannelUnpacker ( const uint8_t *  payload,
const uint16_t  channelPayloadOffset,
const int16_t  channelPayloadLength,
const uint16_t  offsetIncrement = 1 
)
inlineprivate

Definition at line 357 of file SiStripFEDBuffer.h.

Member Function Documentation

uint8_t sistrip::FEDZSChannelUnpacker::adc ( ) const
inline

Definition at line 399 of file SiStripFEDBuffer.h.

Referenced by ThreeThresholdAlgorithm::addFed().

uint16_t sistrip::FEDZSChannelUnpacker::adcPreMix ( ) const
inline

Definition at line 404 of file SiStripFEDBuffer.h.

bool sistrip::FEDZSChannelUnpacker::hasData ( ) const
inline

Definition at line 409 of file SiStripFEDBuffer.h.

Referenced by ThreeThresholdAlgorithm::addFed().

FEDZSChannelUnpacker & sistrip::FEDZSChannelUnpacker::operator++ ( void  )
inline

Definition at line 414 of file SiStripFEDBuffer.h.

FEDZSChannelUnpacker & sistrip::FEDZSChannelUnpacker::operator++ ( int  )
inline

Definition at line 431 of file SiStripFEDBuffer.h.

FEDZSChannelUnpacker sistrip::FEDZSChannelUnpacker::preMixRawModeUnpacker ( const FEDChannel channel)
inlinestatic

Definition at line 385 of file SiStripFEDBuffer.h.

void sistrip::FEDZSChannelUnpacker::readNewClusterInfo ( )
inlineprivate

Definition at line 436 of file SiStripFEDBuffer.h.

uint8_t sistrip::FEDZSChannelUnpacker::sampleNumber ( ) const
inline

Definition at line 394 of file SiStripFEDBuffer.h.

Referenced by ThreeThresholdAlgorithm::addFed().

void sistrip::FEDZSChannelUnpacker::throwBadChannelLength ( const uint16_t  length)
staticprivate

Definition at line 452 of file SiStripFEDBuffer.cc.

void sistrip::FEDZSChannelUnpacker::throwBadClusterLength ( )
private

Definition at line 461 of file SiStripFEDBuffer.cc.

void sistrip::FEDZSChannelUnpacker::throwUnorderedData ( const uint8_t  currentStrip,
const uint8_t  firstStripOfNewCluster 
)
staticprivate

Definition at line 470 of file SiStripFEDBuffer.cc.

FEDZSChannelUnpacker sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker ( const FEDChannel channel)
inlinestatic

Definition at line 377 of file SiStripFEDBuffer.h.

FEDZSChannelUnpacker sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker ( const FEDChannel channel)
inlinestatic

Definition at line 369 of file SiStripFEDBuffer.h.

Member Data Documentation

uint16_t sistrip::FEDZSChannelUnpacker::channelPayloadLength_
private

Definition at line 112 of file SiStripFEDBuffer.h.

uint16_t sistrip::FEDZSChannelUnpacker::channelPayloadOffset_
private

Definition at line 111 of file SiStripFEDBuffer.h.

uint16_t sistrip::FEDZSChannelUnpacker::currentOffset_
private

Definition at line 107 of file SiStripFEDBuffer.h.

uint8_t sistrip::FEDZSChannelUnpacker::currentStrip_
private

Definition at line 109 of file SiStripFEDBuffer.h.

const uint8_t* sistrip::FEDZSChannelUnpacker::data_
private

Definition at line 106 of file SiStripFEDBuffer.h.

uint16_t sistrip::FEDZSChannelUnpacker::offsetIncrement_
private

Definition at line 108 of file SiStripFEDBuffer.h.

uint8_t sistrip::FEDZSChannelUnpacker::valuesLeftInCluster_
private

Definition at line 110 of file SiStripFEDBuffer.h.