#include <FEDHeader.h>
Public Member Functions | |
uint16_t | bxID () const |
The bunch crossing number. More... | |
bool | check () const |
Check that the header is OK. More... | |
FEDHeader (const unsigned char *header) | |
Constructor. More... | |
uint32_t | lvl1ID () const |
Level-1 event number generated by the TTC system. More... | |
bool | moreHeaders () const |
uint16_t | sourceID () const |
Identifier of the FED. More... | |
uint8_t | triggerType () const |
Event Trigger type identifier. More... | |
uint8_t | version () const |
Version identifier of the FED data format. More... | |
~FEDHeader () | |
Destructor. More... | |
Static Public Member Functions | |
static void | set (unsigned char *header, uint8_t triggerType, uint32_t lvl1ID, uint16_t bxID, uint16_t sourceID, uint8_t version=0, bool moreHeaders=false) |
Set all fields in the header. More... | |
Static Public Attributes | |
static const uint32_t | length = sizeof(fedh_t) |
Private Attributes | |
const fedh_struct * | theHeader |
Helper class to interpret/create FED header words.
Definition at line 14 of file FEDHeader.h.
FEDHeader::FEDHeader | ( | const unsigned char * | header | ) |
FEDHeader::~FEDHeader | ( | ) |
uint16_t FEDHeader::bxID | ( | ) | const |
The bunch crossing number.
Definition at line 27 of file FEDHeader.cc.
References FED_BXID_EXTRACT, fedh_struct::sourceid, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), HcalTBWriter::extractEventInfo(), TMTFilter::filter(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
bool FEDHeader::check | ( | ) | const |
Check that the header is OK.
Definition at line 72 of file FEDHeader.cc.
References fedh_struct::eventid, FED_HCTRLID_EXTRACT, FED_SLINK_START_MARKER, length, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), ErrorChecker::checkHeader(), RPixErrorChecker::checkHeader(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDDUFileReader::isHeader(), DTSpyReader::isHeader(), RPCAMCRawToDigi::processCDFHeaders(), RPCTwinMuxRawToDigi::processCDFHeaders(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), and RctRawToDigi::unpack().
uint32_t FEDHeader::lvl1ID | ( | ) | const |
Level-1 event number generated by the TTC system.
Definition at line 22 of file FEDHeader.cc.
References fedh_struct::eventid, FED_LVL1_EXTRACT, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), DQMHcalPhiSymAlCaReco::analyze(), HcalTBWriter::extractEventInfo(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
bool FEDHeader::moreHeaders | ( | ) | const |
0 -> the current header word is the last one. 1-> other header words can follow (always 1 for ECAL)
Definition at line 42 of file FEDHeader.cc.
References FED_MORE_HEADERS_EXTRACT, fedh_struct::sourceid, and theHeader.
Referenced by ErrorChecker::checkHeader(), RPixErrorChecker::checkHeader(), ESUnpacker::interpretRawData(), RPCUnpackingModule::produce(), omtf::OmtfUnpacker::produce(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
|
static |
Set all fields in the header.
Definition at line 47 of file FEDHeader.cc.
References fedh_struct::eventid, FED_BXID_MASK, FED_BXID_SHIFT, FED_EVTY_MASK, FED_EVTY_SHIFT, FED_HCTRLID_SHIFT, FED_LVL1_MASK, FED_LVL1_SHIFT, FED_MORE_HEADERS_SHIFT, FED_MORE_HEADERS_WIDTH, FED_SLINK_START_MARKER, FED_SOID_MASK, FED_SOID_SHIFT, FED_VERSION_MASK, FED_VERSION_SHIFT, h, RecoTauValidation_cfi::header, and fedh_struct::sourceid.
Referenced by CSCDCCHeader::CSCDCCHeader(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), PixelDataFormatter::formatRawData(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), DTDigiToRawModule::produce(), RPCTwinMuxDigiToRaw::produce(), CSCTFPacker::produce(), HcalDigiToRawuHTR::produce(), GctDigiToRaw::produce(), omtf::OmtfPacker::produce(), l1t::L1TDigiToRaw::produce(), and RPCPackingModule::rawData().
uint16_t FEDHeader::sourceID | ( | ) | const |
Identifier of the FED.
Definition at line 32 of file FEDHeader.cc.
References FED_SOID_EXTRACT, fedh_struct::sourceid, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), DTDataIntegrityTask::analyze(), ErrorChecker::checkHeader(), RPixErrorChecker::checkHeader(), FedRawDataInputSource::fillFEDRawDataCollection(), ESUnpacker::interpretRawData(), DTDDUFileReader::isHeader(), DTSpyReader::isHeader(), RPCAMCRawToDigi::processCDFHeaders(), RPCTwinMuxRawToDigi::processCDFHeaders(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), FRDStreamSource::setRunAndEventInfo(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
uint8_t FEDHeader::triggerType | ( | ) | const |
Event Trigger type identifier.
Definition at line 17 of file FEDHeader.cc.
References fedh_struct::eventid, FED_EVTY_EXTRACT, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), FedRawDataInputSource::read(), FRDStreamSource::setRunAndEventInfo(), TCDSRecord::TCDSRecord(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
uint8_t FEDHeader::version | ( | ) | const |
Version identifier of the FED data format.
Definition at line 37 of file FEDHeader.cc.
References FED_VERSION_EXTRACT, fedh_struct::sourceid, and theHeader.
Referenced by L1TMP7ZeroSupp::analyze(), validation.Sample::datasetpattern(), validation.Sample::filename(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), omtf::OmtfUnpacker::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
|
static |
Definition at line 54 of file FEDHeader.h.
Referenced by Vispa.Views.LineDecayView.DecayLine::arrowBoundingRect(), check(), evf::evtn::daq_board_sense(), evf::evtn::evm_board_sense(), evf::evtn::evm_tcs_board_sense(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillGTPFED(), evf::evtn::getevtyp(), evf::evtn::getfdlbx(), evf::evtn::getfdlpsc(), evf::evtn::getfdlta1(), evf::evtn::getfdlta2(), evf::evtn::getfdlttr(), evf::evtn::getgpshigh(), evf::evtn::getgpslow(), evf::evtn::getlbn(), evf::evtn::getorbit(), Vispa.Views.LineDecayView.DecayLine::labelBoundingRect(), evf::evtn::offset(), Vispa.Views.LineDecayView.DecayLine::paint(), OnlineMetaDataRawToDigi::produce(), FedRawDataInputSource::read(), FRDStreamSource::setRunAndEventInfo(), TCDSRecord::TCDSRecord(), and sistrip::RawToDigiUnpacker::triggerFed().
|
private |
Definition at line 57 of file FEDHeader.h.
Referenced by bxID(), check(), lvl1ID(), moreHeaders(), sourceID(), triggerType(), and version().