#include <FEDHeader.h>
Public Member Functions | |
int | bxID () |
The bunch crossing number. More... | |
int | bxID () |
The bunch crossing number. More... | |
bool | check () |
Check that the header is OK. More... | |
bool | check () |
Check that the header is OK. More... | |
FEDHeader (const unsigned char *header) | |
Constructor. More... | |
FEDHeader (const unsigned char *header) | |
Constructor. More... | |
int | lvl1ID () |
Level-1 event number generated by the TTC system. More... | |
int | lvl1ID () |
Level-1 event number generated by the TTC system. More... | |
bool | moreHeaders () |
bool | moreHeaders () |
int | sourceID () |
Identifier of the FED. More... | |
int | sourceID () |
Identifier of the FED. More... | |
int | triggerType () |
Event Trigger type identifier. More... | |
int | triggerType () |
Event Trigger type identifier. More... | |
int | version () |
Version identifier of the FED data format. More... | |
int | version () |
Version identifier of the FED data format. More... | |
~FEDHeader () | |
Destructor. More... | |
~FEDHeader () | |
Destructor. More... | |
Static Public Member Functions | |
static void | set (unsigned char *header, int evt_ty, int lvl1_ID, int bx_ID, int source_ID, int version=0, bool H=false) |
Set all fields in the header. More... | |
static void | set (unsigned char *header, int evt_ty, int lvl1_ID, int bx_ID, int source_ID, int version=0, bool H=false) |
Set all fields in the header. More... | |
Private Attributes | |
const fedh_t * | theHeader |
const fedh_struct * | theHeader |
TEMPORARY helper class to interpret/create FED header words. FIXME: will be replaced by the xdaq implementation.
TEMPORARY helper class to interpret/create FED header words.
Definition at line 13 of file FEDHeader.h.
FEDHeader::FEDHeader | ( | const unsigned char * | header | ) |
FEDHeader::~FEDHeader | ( | ) |
FEDHeader::FEDHeader | ( | const unsigned char * | header | ) |
Constructor.
FEDHeader::~FEDHeader | ( | ) |
Destructor.
int FEDHeader::bxID | ( | ) |
The bunch crossing number.
int FEDHeader::bxID | ( | ) |
The bunch crossing number.
Definition at line 24 of file FEDHeader.cc.
References FED_BXID_MASK, FED_BXID_SHIFT, fedh_struct::sourceid, and theHeader.
Referenced by BxTiming::analyze(), HcalTBWriter::extractEventInfo(), TMTFilter::filter(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
bool FEDHeader::check | ( | ) |
Check that the header is OK.
bool FEDHeader::check | ( | ) |
Check that the header is OK.
Definition at line 64 of file FEDHeader.cc.
References fedh_struct::eventid, FED_HCTRLID, FED_HCTRLID_MASK, mps_fire::result, and theHeader.
Referenced by ErrorChecker::checkHeader(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDDUFileReader::isHeader(), DTSpyReader::isHeader(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), and RctRawToDigi::unpack().
int FEDHeader::lvl1ID | ( | ) |
Level-1 event number generated by the TTC system.
int FEDHeader::lvl1ID | ( | ) |
Level-1 event number generated by the TTC system.
Definition at line 20 of file FEDHeader.cc.
References fedh_struct::eventid, FED_LVL1_MASK, and theHeader.
Referenced by ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), DQMHcalPhiSymAlCaReco::analyze(), HcalTBWriter::extractEventInfo(), L1TValidationEventFilter::filter(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
bool FEDHeader::moreHeaders | ( | ) |
0 -> the current header word is the last one. 1-> other header words can follow (always 1 for ECAL)
bool FEDHeader::moreHeaders | ( | ) |
0 -> the current header word is the last one. 1-> other header words can follow (always 1 for ECAL)
Definition at line 36 of file FEDHeader.cc.
References FED_MORE_HEADERS, fedh_struct::sourceid, and theHeader.
Referenced by ErrorChecker::checkHeader(), ESUnpacker::interpretRawData(), RPCUnpackingModule::produce(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
|
static |
Set all fields in the header.
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
|
static |
Set all fields in the header.
Definition at line 40 of file FEDHeader.cc.
References fedh_struct::eventid, FED_BXID_MASK, FED_BXID_SHIFT, FED_EVTY_MASK, FED_EVTY_SHIFT, FED_HCTRLID, FED_HCTRLID_MASK, FED_LVL1_MASK, FED_LVL1_SHIFT, FED_MORE_HEADERS, FED_SOID_MASK, FED_SOID_SHIFT, FED_VERSION_MASK, FED_VERSION_SHIFT, h, 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(), betterConfigParser.BetterConfigParser::getGeneral(), L1GTEvmDigiToRaw::packHeader(), L1GTDigiToRaw::packHeader(), DTDigiToRawModule::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), l1t::L1TDigiToRaw::produce(), and RPCPackingModule::rawData().
int FEDHeader::sourceID | ( | ) |
Identifier of the FED.
int FEDHeader::sourceID | ( | ) |
Identifier of the FED.
Definition at line 28 of file FEDHeader.cc.
References FED_SOID_MASK, FED_SOID_SHIFT, fedh_struct::sourceid, and theHeader.
Referenced by DTDataIntegrityTask::analyze(), ErrorChecker::checkHeader(), ESUnpacker::interpretRawData(), DTDDUFileReader::isHeader(), DTSpyReader::isHeader(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
int FEDHeader::triggerType | ( | ) |
Event Trigger type identifier.
int FEDHeader::triggerType | ( | ) |
Event Trigger type identifier.
Definition at line 16 of file FEDHeader.cc.
References fedh_struct::eventid, FED_EVTY_MASK, FED_EVTY_SHIFT, and theHeader.
Referenced by DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
int FEDHeader::version | ( | ) |
Version identifier of the FED data format.
Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().
int FEDHeader::version | ( | ) |
Version identifier of the FED data format.
Definition at line 32 of file FEDHeader.cc.
References FED_VERSION_MASK, FED_VERSION_SHIFT, fedh_struct::sourceid, and theHeader.
Referenced by validation.Sample::datasetpattern(), validation.Sample::filename(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackHeader(), and L1GlobalTriggerRawToDigi::unpackHeader().
|
private |
Definition at line 53 of file FEDHeader.h.
|
private |
Definition at line 54 of file FEDHeader.h.
Referenced by bxID(), check(), lvl1ID(), moreHeaders(), sourceID(), triggerType(), and version().