CMS 3D CMS Logo

sistrip::FEDFullDebugHeader Class Reference

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

Inheritance diagram for sistrip::FEDFullDebugHeader:

sistrip::FEDFEHeader

List of all members.

Public Member Functions

bool apvAddressError (uint8_t internalFEUnitNum, uint8_t internalChannelNum, uint8_t apvNum) const
bool apvAddressError (uint8_t internalFEDChannelNum, uint8_t apvNum) const
bool apvAddressErrorFromBit (uint8_t internalFEUnitNum, uint8_t internalChannelNum, uint8_t apvNum) const
bool apvAddressErrorFromBit (uint8_t internalFEDChannelNum, uint8_t apvNum) const
bool apvError (uint8_t internalFEUnitNum, uint8_t internalChannelNum, uint8_t apvNum) const
bool apvError (uint8_t internalFEDChannelNum, uint8_t apvNum) const
bool apvErrorFromBit (uint8_t internalFEUnitNum, uint8_t internalChannelNum, uint8_t apvNum) const
bool apvErrorFromBit (uint8_t internalFEDChannelNum, uint8_t apvNum) const
FEDBackendStatusRegister beStatusRegister () const
virtual bool checkChannelStatusBits (uint8_t internalFEDChannelNum) const
virtual bool checkStatusBits (uint8_t internalFEDChannelNum, uint8_t apvNum) const
uint32_t daqRegister () const
uint32_t daqRegister2 () const
 FEDFullDebugHeader (const uint8_t *headerBuffer)
bool fePresent (uint8_t internalFEUnitNum) const
uint16_t feUnitLength (uint8_t internalFEUnitNum) const
uint8_t feUnitMajorityAddress (uint8_t internalFEUnitNum) const
virtual size_t lengthInBytes () const
bool outOfSync (uint8_t internalFEUnitNum, uint8_t internalChannelNum) const
bool outOfSync (uint8_t internalFEDChannelNum) const
bool outOfSyncFromBit (uint8_t internalFEUnitNum, uint8_t internalChannelNum) const
bool outOfSyncFromBit (uint8_t internalFEDChannelNum) const
virtual void print (std::ostream &os) const
bool unlocked (uint8_t internalFEUnitNum, uint8_t internalChannelNum) const
bool unlocked (uint8_t internalFEDChannelNum) const
bool unlockedFromBit (uint8_t internalFEUnitNum, uint8_t internalChannelNum) const
bool unlockedFromBit (uint8_t internalFEDChannelNum) const
virtual ~FEDFullDebugHeader ()

Private Member Functions

const uint8_t * feWord (uint8_t internalFEUnitNum) const
bool getBitVal (uint8_t internalFEDChannelNum, uint8_t bit) const

Static Private Member Functions

static uint32_t get32BitWordFrom (const uint8_t *startOfWord)

Private Attributes

uint8_t header_ [FULL_DEBUG_HEADER_SIZE_IN_BYTES]

Static Private Attributes

static const size_t FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS = FEUNITS_PER_FED*2
static const size_t FULL_DEBUG_HEADER_SIZE_IN_BYTES = FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS*8


Detailed Description

Definition at line 272 of file SiStripFEDBufferComponents.h.


Constructor & Destructor Documentation

sistrip::FEDFullDebugHeader::FEDFullDebugHeader ( const uint8_t *  headerBuffer  )  [inline]

Definition at line 406 of file SiStripFEDBufferComponents.h.

References FULL_DEBUG_HEADER_SIZE_IN_BYTES, and header_.

00407     {
00408       memcpy(header_,headerBuffer,FULL_DEBUG_HEADER_SIZE_IN_BYTES);
00409     }

sistrip::FEDFullDebugHeader::~FEDFullDebugHeader (  )  [virtual]

Definition at line 400 of file SiStripFEDBufferComponents.cc.

00401   {
00402   }


Member Function Documentation

bool sistrip::FEDFullDebugHeader::apvAddressError ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 316 of file SiStripFEDBufferComponents.h.

References apvAddressError(), and sistrip::internalFEDChannelNum().

00317         { return apvAddressError(internalFEDChannelNum(internalFEUnitNum,internalChannelNum),apvNum); }

bool sistrip::FEDFullDebugHeader::apvAddressError ( uint8_t  internalFEDChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 310 of file SiStripFEDBufferComponents.h.

References apvAddressErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().

Referenced by SiStripFEDMonitorPlugin::analyzeChannels(), apvAddressError(), and checkStatusBits().

bool sistrip::FEDFullDebugHeader::apvAddressErrorFromBit ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 332 of file SiStripFEDBufferComponents.h.

References apvAddressErrorFromBit(), and sistrip::internalFEDChannelNum().

00333         { return apvAddressErrorFromBit(internalFEDChannelNum(internalFEUnitNum,internalChannelNum),apvNum); }

bool sistrip::FEDFullDebugHeader::apvAddressErrorFromBit ( uint8_t  internalFEDChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 331 of file SiStripFEDBufferComponents.h.

References getBitVal().

Referenced by apvAddressError(), apvAddressErrorFromBit(), and checkChannelStatusBits().

00331 { return !getBitVal(internalFEDChannelNum,1+2*apvNum); }

bool sistrip::FEDFullDebugHeader::apvError ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 307 of file SiStripFEDBufferComponents.h.

References apvError(), and sistrip::internalFEDChannelNum().

00308         { return apvError(internalFEDChannelNum(internalFEUnitNum,internalChannelNum),apvNum); }

bool sistrip::FEDFullDebugHeader::apvError ( uint8_t  internalFEDChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 301 of file SiStripFEDBufferComponents.h.

References apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().

Referenced by SiStripFEDMonitorPlugin::analyzeChannels(), apvError(), and checkStatusBits().

bool sistrip::FEDFullDebugHeader::apvErrorFromBit ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 329 of file SiStripFEDBufferComponents.h.

References apvErrorFromBit(), and sistrip::internalFEDChannelNum().

00330         { return apvErrorFromBit(internalFEDChannelNum(internalFEUnitNum,internalChannelNum),apvNum); }

bool sistrip::FEDFullDebugHeader::apvErrorFromBit ( uint8_t  internalFEDChannelNum,
uint8_t  apvNum 
) const [inline]

Definition at line 328 of file SiStripFEDBufferComponents.h.

References getBitVal().

Referenced by apvError(), apvErrorFromBit(), and checkChannelStatusBits().

00328 { return !getBitVal(internalFEDChannelNum,0+2*apvNum); }

FEDBackendStatusRegister sistrip::FEDFullDebugHeader::beStatusRegister (  )  const [inline]

Definition at line 283 of file SiStripFEDBufferComponents.h.

References feWord(), and get32BitWordFrom().

00283 { return FEDBackendStatusRegister(get32BitWordFrom(feWord(0)+10)); }

bool sistrip::FEDFullDebugHeader::checkChannelStatusBits ( uint8_t  internalFEDChannelNum  )  const [virtual]

Implements sistrip::FEDFEHeader.

Definition at line 422 of file SiStripFEDBufferComponents.cc.

References apvAddressErrorFromBit(), apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().

bool sistrip::FEDFullDebugHeader::checkStatusBits ( uint8_t  internalFEDChannelNum,
uint8_t  apvNum 
) const [virtual]

Implements sistrip::FEDFEHeader.

Definition at line 414 of file SiStripFEDBufferComponents.cc.

References apvAddressError(), apvError(), outOfSyncFromBit(), and unlockedFromBit().

uint32_t sistrip::FEDFullDebugHeader::daqRegister (  )  const [inline]

Definition at line 284 of file SiStripFEDBufferComponents.h.

References feWord(), and get32BitWordFrom().

00284 { return get32BitWordFrom(feWord(7)+10); }

uint32_t sistrip::FEDFullDebugHeader::daqRegister2 (  )  const [inline]

Definition at line 285 of file SiStripFEDBufferComponents.h.

References feWord(), and get32BitWordFrom().

00285 { return get32BitWordFrom(feWord(6)+10); }

bool sistrip::FEDFullDebugHeader::fePresent ( uint8_t  internalFEUnitNum  )  const [inline]

Definition at line 287 of file SiStripFEDBufferComponents.h.

References feUnitLength().

Referenced by sistrip::FEDBuffer::FEDBuffer().

00287 { return (feUnitLength(internalFEUnitNum) != 0); }

uint16_t sistrip::FEDFullDebugHeader::feUnitLength ( uint8_t  internalFEUnitNum  )  const [inline]

Definition at line 286 of file SiStripFEDBufferComponents.h.

References feWord().

Referenced by sistrip::FEDBuffer::checkFEUnitLengths(), sistrip::FEDBuffer::checkSummary(), and fePresent().

00286 { return ( (feWord(internalFEUnitNum)[15]<<8) | (feWord(internalFEUnitNum)[14]) ); }

uint8_t sistrip::FEDFullDebugHeader::feUnitMajorityAddress ( uint8_t  internalFEUnitNum  )  const [inline]

Definition at line 282 of file SiStripFEDBufferComponents.h.

References feWord().

Referenced by sistrip::FEDBuffer::checkFEUnitAPVAddresses(), and sistrip::FEDBuffer::checkSummary().

00282 { return feWord(internalFEUnitNum)[9]; }

const uint8_t* sistrip::FEDFullDebugHeader::feWord ( uint8_t  internalFEUnitNum  )  const [inline, private]

Definition at line 337 of file SiStripFEDBufferComponents.h.

References header_.

Referenced by beStatusRegister(), daqRegister(), daqRegister2(), feUnitLength(), feUnitMajorityAddress(), and getBitVal().

00337 { return header_+internalFEUnitNum*2*8; }

uint32_t sistrip::FEDFullDebugHeader::get32BitWordFrom ( const uint8_t *  startOfWord  )  [inline, static, private]

Definition at line 418 of file SiStripFEDBufferComponents.h.

Referenced by beStatusRegister(), daqRegister(), and daqRegister2().

00419     {
00420       return ( startOfWord[0] | (startOfWord[1]<<8) | (startOfWord[2]<<16) | (startOfWord[3]<<24) );
00421     }

bool sistrip::FEDFullDebugHeader::getBitVal ( uint8_t  internalFEDChannelNum,
uint8_t  bit 
) const [inline, private]

Definition at line 411 of file SiStripFEDBufferComponents.h.

References sistrip::FEDCH_PER_FEUNIT, and feWord().

Referenced by apvAddressErrorFromBit(), apvErrorFromBit(), outOfSyncFromBit(), and unlockedFromBit().

00412     {
00413       const uint8_t* pFEWord = feWord(internalFEDChannelNum / FEDCH_PER_FEUNIT);
00414       const uint8_t bitInFeWord = (internalFEDChannelNum % FEDCH_PER_FEUNIT) * 6 + bit;
00415       return ( pFEWord[bitInFeWord/8] & (0x1 << bitInFeWord%8) );
00416     }

size_t sistrip::FEDFullDebugHeader::lengthInBytes (  )  const [virtual]

Implements sistrip::FEDFEHeader.

Definition at line 404 of file SiStripFEDBufferComponents.cc.

References FULL_DEBUG_HEADER_SIZE_IN_BYTES.

00405   {
00406     return FULL_DEBUG_HEADER_SIZE_IN_BYTES;
00407   }

bool sistrip::FEDFullDebugHeader::outOfSync ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum 
) const [inline]

Definition at line 298 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum(), and outOfSync().

00299         { return outOfSync(internalFEDChannelNum(internalFEUnitNum,internalChannelNum)); }

bool sistrip::FEDFullDebugHeader::outOfSync ( uint8_t  internalFEDChannelNum  )  const [inline]

Definition at line 296 of file SiStripFEDBufferComponents.h.

References outOfSyncFromBit(), and unlocked().

Referenced by SiStripFEDMonitorPlugin::analyzeChannels(), and outOfSync().

bool sistrip::FEDFullDebugHeader::outOfSyncFromBit ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum 
) const [inline]

Definition at line 326 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum(), and outOfSyncFromBit().

00327         { return outOfSyncFromBit(internalFEDChannelNum(internalFEUnitNum,internalChannelNum)); }

bool sistrip::FEDFullDebugHeader::outOfSyncFromBit ( uint8_t  internalFEDChannelNum  )  const [inline]

Definition at line 325 of file SiStripFEDBufferComponents.h.

References getBitVal().

Referenced by apvAddressError(), apvError(), checkChannelStatusBits(), checkStatusBits(), outOfSync(), and outOfSyncFromBit().

00325 { return !getBitVal(internalFEDChannelNum,4); }

void sistrip::FEDFullDebugHeader::print ( std::ostream &  os  )  const [virtual]

Implements sistrip::FEDFEHeader.

Definition at line 409 of file SiStripFEDBufferComponents.cc.

References FULL_DEBUG_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().

bool sistrip::FEDFullDebugHeader::unlocked ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum 
) const [inline]

Definition at line 293 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum(), and unlocked().

00294         { return unlocked(internalFEDChannelNum(internalFEUnitNum,internalChannelNum)); }

bool sistrip::FEDFullDebugHeader::unlocked ( uint8_t  internalFEDChannelNum  )  const [inline]

Definition at line 292 of file SiStripFEDBufferComponents.h.

References unlockedFromBit().

Referenced by SiStripFEDMonitorPlugin::analyzeChannels(), outOfSync(), and unlocked().

bool sistrip::FEDFullDebugHeader::unlockedFromBit ( uint8_t  internalFEUnitNum,
uint8_t  internalChannelNum 
) const [inline]

Definition at line 323 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum(), and unlockedFromBit().

00324         { return unlockedFromBit(internalFEDChannelNum(internalFEUnitNum,internalChannelNum)); }

bool sistrip::FEDFullDebugHeader::unlockedFromBit ( uint8_t  internalFEDChannelNum  )  const [inline]

Definition at line 322 of file SiStripFEDBufferComponents.h.

References getBitVal().

Referenced by apvAddressError(), apvError(), checkChannelStatusBits(), checkStatusBits(), unlocked(), and unlockedFromBit().

00322 { return !getBitVal(internalFEDChannelNum,5); }


Member Data Documentation

const size_t sistrip::FEDFullDebugHeader::FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS = FEUNITS_PER_FED*2 [static, private]

Definition at line 338 of file SiStripFEDBufferComponents.h.

const size_t sistrip::FEDFullDebugHeader::FULL_DEBUG_HEADER_SIZE_IN_BYTES = FULL_DEBUG_HEADER_SIZE_IN_64BIT_WORDS*8 [static, private]

Definition at line 339 of file SiStripFEDBufferComponents.h.

Referenced by FEDFullDebugHeader(), lengthInBytes(), and print().

uint8_t sistrip::FEDFullDebugHeader::header_[FULL_DEBUG_HEADER_SIZE_IN_BYTES] [private]

Definition at line 340 of file SiStripFEDBufferComponents.h.

Referenced by FEDFullDebugHeader(), feWord(), and print().


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