![]() |
![]() |
#include <EventFilter/SiStripRawToDigi/interface/SiStripFEDBufferComponents.h>
Public Member Functions | |
uint8_t | boeNibble () const |
uint16_t | bxID () const |
FEDDAQEventType | eventType () const |
uint8_t | eventTypeNibble () const |
FEDDAQHeader (const uint8_t *header) | |
FEDDAQHeader () | |
bool | hBit () const |
uint32_t | l1ID () const |
bool | lastHeader () const |
void | print (std::ostream &os) const |
uint16_t | sourceID () const |
uint8_t | version () const |
Private Attributes | |
uint8_t | header_ [8] |
Definition at line 90 of file SiStripFEDBufferComponents.h.
sistrip::FEDDAQHeader::FEDDAQHeader | ( | ) | [inline] |
sistrip::FEDDAQHeader::FEDDAQHeader | ( | const uint8_t * | header | ) | [inline] |
uint8_t sistrip::FEDDAQHeader::boeNibble | ( | ) | const [inline] |
Definition at line 430 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by sistrip::FEDBufferBase::checkNoExtraHeadersOrTrailers().
00431 { 00432 return ( (header_[7] & 0xF0) >> 4 ); 00433 }
uint16_t sistrip::FEDDAQHeader::bxID | ( | ) | const [inline] |
Definition at line 445 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by sistrip::FEDBufferBase::daqBXID().
FEDDAQEventType sistrip::FEDDAQHeader::eventType | ( | ) | const |
Definition at line 334 of file SiStripFEDBufferComponents.cc.
References sistrip::DAQ_EVENT_TYPE_CALIBRATION, sistrip::DAQ_EVENT_TYPE_ERROR, sistrip::DAQ_EVENT_TYPE_INVALID, sistrip::DAQ_EVENT_TYPE_PHYSICS, sistrip::DAQ_EVENT_TYPE_SIMULATED, sistrip::DAQ_EVENT_TYPE_TECHNICAL, sistrip::DAQ_EVENT_TYPE_TEST, sistrip::DAQ_EVENT_TYPE_TRACED, and eventTypeNibble().
Referenced by sistrip::FEDBufferBase::daqEventType().
00335 { 00336 switch(eventTypeNibble()) { 00337 case DAQ_EVENT_TYPE_PHYSICS: 00338 case DAQ_EVENT_TYPE_CALIBRATION: 00339 case DAQ_EVENT_TYPE_TEST: 00340 case DAQ_EVENT_TYPE_TECHNICAL: 00341 case DAQ_EVENT_TYPE_SIMULATED: 00342 case DAQ_EVENT_TYPE_TRACED: 00343 case DAQ_EVENT_TYPE_ERROR: 00344 return FEDDAQEventType(eventTypeNibble()); 00345 default: 00346 return DAQ_EVENT_TYPE_INVALID; 00347 } 00348 }
uint8_t sistrip::FEDDAQHeader::eventTypeNibble | ( | ) | const [inline] |
Definition at line 435 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by eventType().
00436 { 00437 return (header_[7] & 0x0F); 00438 }
bool sistrip::FEDDAQHeader::hBit | ( | ) | const [inline] |
Definition at line 460 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by lastHeader().
00461 { 00462 return (header_[0] & 0x8); 00463 }
uint32_t sistrip::FEDDAQHeader::l1ID | ( | ) | const [inline] |
Definition at line 440 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by sistrip::FEDBufferBase::daqLvl1ID().
bool sistrip::FEDDAQHeader::lastHeader | ( | ) | const [inline] |
Definition at line 465 of file SiStripFEDBufferComponents.h.
References hBit().
00466 { 00467 return !hBit(); 00468 }
void sistrip::FEDDAQHeader::print | ( | std::ostream & | os | ) | const [inline] |
Definition at line 470 of file SiStripFEDBufferComponents.h.
References header_, and sistrip::printHex().
Referenced by sistrip::operator<<().
uint16_t sistrip::FEDDAQHeader::sourceID | ( | ) | const [inline] |
Definition at line 450 of file SiStripFEDBufferComponents.h.
References header_.
Referenced by sistrip::FEDBufferBase::daqSourceID().
uint8_t sistrip::FEDDAQHeader::version | ( | ) | const [inline] |
Definition at line 455 of file SiStripFEDBufferComponents.h.
References header_.
00456 { 00457 return ( (header_[0] & 0xF0) >> 4 ); 00458 }
uint8_t sistrip::FEDDAQHeader::header_[8] [private] |
Definition at line 108 of file SiStripFEDBufferComponents.h.
Referenced by boeNibble(), bxID(), eventTypeNibble(), FEDDAQHeader(), hBit(), l1ID(), print(), sourceID(), and version().