CMS 3D CMS Logo

sistrip::FEDBackendStatusRegister Class Reference

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

List of all members.

Public Member Functions

bool backpressureFlag () const
 FEDBackendStatusRegister (const uint32_t backendStatusRegister)
bool feEventLengthFIFOEmptyFlag () const
bool feEventLengthFIFOFullFlag () const
bool feEventLengthFIFOPartialFullFlag () const
bool feFPGAEmptyFlag () const
bool feFPGAFullFlag () const
bool feFPGAPartialFullFlag () const
bool frameAddressFIFOEmptyFlag () const
bool frameAddressFIFOFullFlag () const
bool frameAddressFIFOPartialFullFlag () const
bool internalFreezeFlag () const
bool l1aBxFIFOEmptyFlag () const
bool l1aBxFIFOFullFlag () const
bool l1aBxFIFOPartialFullFlag () const
void print (std::ostream &os) const
void printFlags (std::ostream &os) const
bool qdrMemoryEmptyFlag () const
bool qdrMemoryFullFlag () const
bool qdrMemoryPartialFullFlag () const
bool slinkDownFlag () const
bool slinkFullFlag () const
bool totalLengthFIFOEmptyFlag () const
bool totalLengthFIFOFullFlag () const
bool totalLengthFIFOPartialFullFlag () const
bool trackerHeaderFIFOEmptyFlag () const
bool trackerHeaderFIFOFullFlag () const
bool trackerHeaderFIFOPartialFullFlag () const
bool trackerHeaderMonitorDataReadyFlag () const
bool ttcReadyFlag () const

Private Member Functions

bool getBit (const uint8_t num) const

Private Attributes

const uint32_t data_


Detailed Description

Definition at line 194 of file SiStripFEDBufferComponents.h.


Constructor & Destructor Documentation

sistrip::FEDBackendStatusRegister::FEDBackendStatusRegister ( const uint32_t  backendStatusRegister  )  [inline]

Definition at line 197 of file SiStripFEDBufferComponents.h.

00198         : data_(backendStatusRegister) { }


Member Function Documentation

bool sistrip::FEDBackendStatusRegister::backpressureFlag (  )  const [inline]

Definition at line 202 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00202 { return getBit(4); }

bool sistrip::FEDBackendStatusRegister::feEventLengthFIFOEmptyFlag (  )  const [inline]

Definition at line 227 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00227 { return getBit(29); }

bool sistrip::FEDBackendStatusRegister::feEventLengthFIFOFullFlag (  )  const [inline]

Definition at line 211 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00211 { return getBit(13); }

bool sistrip::FEDBackendStatusRegister::feEventLengthFIFOPartialFullFlag (  )  const [inline]

Definition at line 219 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00219 { return getBit(21); }

bool sistrip::FEDBackendStatusRegister::feFPGAEmptyFlag (  )  const [inline]

Definition at line 228 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00228 { return getBit(30); }

bool sistrip::FEDBackendStatusRegister::feFPGAFullFlag (  )  const [inline]

Definition at line 212 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00212 { return getBit(14); }

bool sistrip::FEDBackendStatusRegister::feFPGAPartialFullFlag (  )  const [inline]

Definition at line 220 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00220 { return getBit(22); }

bool sistrip::FEDBackendStatusRegister::frameAddressFIFOEmptyFlag (  )  const [inline]

Definition at line 223 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00223 { return getBit(25); }

bool sistrip::FEDBackendStatusRegister::frameAddressFIFOFullFlag (  )  const [inline]

Definition at line 207 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00207 { return getBit(9); }

bool sistrip::FEDBackendStatusRegister::frameAddressFIFOPartialFullFlag (  )  const [inline]

Definition at line 215 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00215 { return getBit(17); }

bool sistrip::FEDBackendStatusRegister::getBit ( const uint8_t  num  )  const [inline, private]

Definition at line 233 of file SiStripFEDBufferComponents.h.

References data_.

Referenced by backpressureFlag(), feEventLengthFIFOEmptyFlag(), feEventLengthFIFOFullFlag(), feEventLengthFIFOPartialFullFlag(), feFPGAEmptyFlag(), feFPGAFullFlag(), feFPGAPartialFullFlag(), frameAddressFIFOEmptyFlag(), frameAddressFIFOFullFlag(), frameAddressFIFOPartialFullFlag(), internalFreezeFlag(), l1aBxFIFOEmptyFlag(), l1aBxFIFOFullFlag(), l1aBxFIFOPartialFullFlag(), qdrMemoryEmptyFlag(), qdrMemoryFullFlag(), qdrMemoryPartialFullFlag(), slinkDownFlag(), slinkFullFlag(), totalLengthFIFOEmptyFlag(), totalLengthFIFOFullFlag(), totalLengthFIFOPartialFullFlag(), trackerHeaderFIFOEmptyFlag(), trackerHeaderFIFOFullFlag(), trackerHeaderFIFOPartialFullFlag(), trackerHeaderMonitorDataReadyFlag(), and ttcReadyFlag().

00233 { return ( (0x1<<num) & (data_) ); }

bool sistrip::FEDBackendStatusRegister::internalFreezeFlag (  )  const [inline]

Definition at line 199 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00199 { return getBit(1); }

bool sistrip::FEDBackendStatusRegister::l1aBxFIFOEmptyFlag (  )  const [inline]

Definition at line 226 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00226 { return getBit(28); }

bool sistrip::FEDBackendStatusRegister::l1aBxFIFOFullFlag (  )  const [inline]

Definition at line 210 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00210 { return getBit(12); }

bool sistrip::FEDBackendStatusRegister::l1aBxFIFOPartialFullFlag (  )  const [inline]

Definition at line 218 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00218 { return getBit(20); }

void sistrip::FEDBackendStatusRegister::print ( std::ostream &  os  )  const [inline]

Definition at line 230 of file SiStripFEDBufferComponents.h.

References data_, and sistrip::printHex().

00230 { printHex(&data_,4,os); }

void sistrip::FEDBackendStatusRegister::printFlags ( std::ostream &  os  )  const

Definition at line 232 of file SiStripFEDBufferComponents.cc.

References backpressureFlag(), feEventLengthFIFOEmptyFlag(), feEventLengthFIFOFullFlag(), feEventLengthFIFOPartialFullFlag(), feFPGAEmptyFlag(), feFPGAFullFlag(), feFPGAPartialFullFlag(), frameAddressFIFOEmptyFlag(), frameAddressFIFOFullFlag(), frameAddressFIFOPartialFullFlag(), internalFreezeFlag(), l1aBxFIFOEmptyFlag(), l1aBxFIFOFullFlag(), l1aBxFIFOPartialFullFlag(), qdrMemoryEmptyFlag(), qdrMemoryFullFlag(), qdrMemoryPartialFullFlag(), slinkDownFlag(), slinkFullFlag(), totalLengthFIFOEmptyFlag(), totalLengthFIFOFullFlag(), totalLengthFIFOPartialFullFlag(), trackerHeaderFIFOEmptyFlag(), trackerHeaderFIFOFullFlag(), trackerHeaderFIFOPartialFullFlag(), trackerHeaderMonitorDataReadyFlag(), and ttcReadyFlag().

00233   {
00234     if (internalFreezeFlag()) os << "INTERNAL_FREEZE ";
00235     if (slinkDownFlag()) os << "SLINK_DOWN ";
00236     if (slinkFullFlag()) os << "SLINK_FULL ";
00237     if (backpressureFlag()) os << "BACKPRESSURE ";
00238     if (ttcReadyFlag()) os << "TTC_READY ";
00239     if (trackerHeaderMonitorDataReadyFlag()) os << "HEADER_MONITOR_READY ";
00240     if (qdrMemoryFullFlag()) os << "QDR_FULL ";
00241     if (qdrMemoryPartialFullFlag()) os << "QDR_PARTIAL_FULL ";
00242     if (qdrMemoryEmptyFlag()) os << "QDR_EMPTY ";
00243     if (frameAddressFIFOFullFlag()) os << "FRAME_ADDRESS_FULL ";
00244     if (frameAddressFIFOPartialFullFlag()) os << "FRAME_ADDRESS_PARTIAL_FULL ";
00245     if (frameAddressFIFOEmptyFlag()) os << "FRAME_ADDRESS_EMPTY ";
00246     if (totalLengthFIFOFullFlag()) os << "TOTAL_LENGTH_FULL ";
00247     if (totalLengthFIFOPartialFullFlag()) os << "TOTAL_LENGTH_PARTIAL_FULL ";
00248     if (totalLengthFIFOEmptyFlag()) os << "TOTAL_LENGTH_EMPTY ";
00249     if (trackerHeaderFIFOFullFlag()) os << "TRACKER_HEADER_FULL ";
00250     if (trackerHeaderFIFOPartialFullFlag()) os << "TRACKER_HEADER_PARTIAL_FULL ";
00251     if (trackerHeaderFIFOEmptyFlag()) os << "TRACKER_HEADER_EMPTY ";
00252     if (l1aBxFIFOFullFlag()) os << "L1A_FULL ";
00253     if (l1aBxFIFOPartialFullFlag()) os << "L1A_PARTIAL_FULL ";
00254     if (l1aBxFIFOEmptyFlag()) os << "L1A_EMPTY ";
00255     if (feEventLengthFIFOFullFlag()) os << "FE_LENGTH_FULL ";
00256     if (feEventLengthFIFOPartialFullFlag()) os << "FE_LENGTH_PARTIAL_FULL ";
00257     if (feEventLengthFIFOEmptyFlag()) os << "FE_LENGTH_EMPTY ";
00258     if (feFPGAFullFlag()) os << "FE_FPGA_FULL ";
00259     if (feFPGAPartialFullFlag()) os << "FE_FPGA_PARTIAL_FULL ";
00260     if (feFPGAEmptyFlag()) os << "FE_FPGA_EMPTY ";
00261   }

bool sistrip::FEDBackendStatusRegister::qdrMemoryEmptyFlag (  )  const [inline]

Definition at line 222 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00222 { return getBit(24); }

bool sistrip::FEDBackendStatusRegister::qdrMemoryFullFlag (  )  const [inline]

Definition at line 206 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00206 { return getBit(8); }

bool sistrip::FEDBackendStatusRegister::qdrMemoryPartialFullFlag (  )  const [inline]

Definition at line 214 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00214 { return getBit(16); }

bool sistrip::FEDBackendStatusRegister::slinkDownFlag (  )  const [inline]

Definition at line 200 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00200 { return getBit(2); }

bool sistrip::FEDBackendStatusRegister::slinkFullFlag (  )  const [inline]

Definition at line 201 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00201 { return getBit(3); }

bool sistrip::FEDBackendStatusRegister::totalLengthFIFOEmptyFlag (  )  const [inline]

Definition at line 224 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00224 { return getBit(26); }

bool sistrip::FEDBackendStatusRegister::totalLengthFIFOFullFlag (  )  const [inline]

Definition at line 208 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00208 { return getBit(10); }

bool sistrip::FEDBackendStatusRegister::totalLengthFIFOPartialFullFlag (  )  const [inline]

Definition at line 216 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00216 { return getBit(18); }

bool sistrip::FEDBackendStatusRegister::trackerHeaderFIFOEmptyFlag (  )  const [inline]

Definition at line 225 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00225 { return getBit(27); }

bool sistrip::FEDBackendStatusRegister::trackerHeaderFIFOFullFlag (  )  const [inline]

Definition at line 209 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00209 { return getBit(11); }

bool sistrip::FEDBackendStatusRegister::trackerHeaderFIFOPartialFullFlag (  )  const [inline]

Definition at line 217 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00217 { return getBit(19); }

bool sistrip::FEDBackendStatusRegister::trackerHeaderMonitorDataReadyFlag (  )  const [inline]

Definition at line 205 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00205 { return getBit(7); }

bool sistrip::FEDBackendStatusRegister::ttcReadyFlag (  )  const [inline]

Definition at line 204 of file SiStripFEDBufferComponents.h.

References getBit().

Referenced by printFlags().

00204 { return getBit(6); }


Member Data Documentation

const uint32_t sistrip::FEDBackendStatusRegister::data_ [private]

Definition at line 234 of file SiStripFEDBufferComponents.h.

Referenced by getBit(), and print().


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