#include <FEDTrailer.h>
Public Member Functions | |
bool | check () |
bool | check () |
int | crc () |
Cyclic Redundancy Code of the event fragment including header and trailer. More... | |
int | crc () |
Cyclic Redundancy Code of the event fragment including header and trailer. More... | |
int | evtStatus () |
Event fragment status information. More... | |
int | evtStatus () |
Event fragment status information. More... | |
FEDTrailer (const unsigned char *trailer) | |
Constructor. More... | |
FEDTrailer (const unsigned char *trailer) | |
Constructor. More... | |
int | lenght () |
The length of the event fragment counted in 64-bit words including header and trailer. More... | |
int | lenght () |
The length of the event fragment counted in 64-bit words including header and trailer. More... | |
bool | moreTrailers () |
bool | moreTrailers () |
int | ttsBits () |
Current value of the Trigger Throttling System bitsAQ). More... | |
int | ttsBits () |
Current value of the Trigger Throttling System bitsAQ). More... | |
virtual | ~FEDTrailer () |
Destructor. More... | |
virtual | ~FEDTrailer () |
Destructor. More... | |
Static Public Member Functions | |
static void | set (unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false) |
Set all fields in the trailer. More... | |
static void | set (unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false) |
Set all fields in the trailer. More... | |
Private Attributes | |
const fedt_struct * | theTrailer |
const fedt_t * | theTrailer |
TEMPORARY helper class to interpret/create FED trailer words. FIXME: will be replaced by the xdaq implementation
Definition at line 13 of file FEDTrailer.h.
FEDTrailer::FEDTrailer | ( | const unsigned char * | trailer | ) |
|
virtual |
FEDTrailer::FEDTrailer | ( | const unsigned char * | trailer | ) |
Constructor.
|
virtual |
Destructor.
bool FEDTrailer::check | ( | ) |
Definition at line 64 of file FEDTrailer.cc.
References fedt_struct::eventsize, FED_TCTRLID, FED_TCTRLID_MASK, mps_fire::result, and theTrailer.
Referenced by ErrorChecker::checkTrailer(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDDUFileReader::isTrailer(), DTSpyReader::isTrailer(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), HcalDataIntegrityTask::unpack(), HcalRawDataMonitor::unpack(), and RctRawToDigi::unpack().
bool FEDTrailer::check | ( | ) |
int FEDTrailer::crc | ( | ) |
Cyclic Redundancy Code of the event fragment including header and trailer.
Definition at line 22 of file FEDTrailer.cc.
References fedt_struct::conscheck, FED_CRCS_MASK, FED_CRCS_SHIFT, and theTrailer.
Referenced by RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().
int FEDTrailer::crc | ( | ) |
Cyclic Redundancy Code of the event fragment including header and trailer.
int FEDTrailer::evtStatus | ( | ) |
Event fragment status information.
Definition at line 27 of file FEDTrailer.cc.
References fedt_struct::conscheck, FED_STAT_MASK, FED_STAT_SHIFT, and theTrailer.
Referenced by RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().
int FEDTrailer::evtStatus | ( | ) |
Event fragment status information.
int FEDTrailer::lenght | ( | ) |
The length of the event fragment counted in 64-bit words including header and trailer.
Definition at line 17 of file FEDTrailer.cc.
References fedt_struct::eventsize, FED_EVSZ_MASK, FED_EVSZ_SHIFT, and theTrailer.
Referenced by ErrorChecker::checkTrailer(), DTDDUUnpacker::interpretRawData(), ESUnpacker::interpretRawData(), DTDDUFileReader::isTrailer(), DTSpyReader::isTrailer(), DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), HcalDataIntegrityTask::unpack(), HcalRawDataMonitor::unpack(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().
int FEDTrailer::lenght | ( | ) |
The length of the event fragment counted in 64-bit words including header and trailer.
bool FEDTrailer::moreTrailers | ( | ) |
0 -> the current trailer word is the last one. 1-> other trailer words can follow (always 0 for ECAL)
Definition at line 37 of file FEDTrailer.cc.
References fedt_struct::conscheck, FED_MORE_TRAILERS, and theTrailer.
Referenced by ErrorChecker::checkTrailer(), ESUnpacker::interpretRawData(), RPCUnpackingModule::produce(), HcalDataIntegrityTask::unpack(), HcalRawDataMonitor::unpack(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().
bool FEDTrailer::moreTrailers | ( | ) |
0 -> the current trailer word is the last one. 1-> other trailer words can follow (always 0 for ECAL)
|
static |
Set all fields in the trailer.
Definition at line 42 of file FEDTrailer.cc.
References fedt_struct::conscheck, fedt_struct::eventsize, FED_CRCS_SHIFT, FED_EVSZ_SHIFT, FED_MORE_TRAILERS, FED_STAT_SHIFT, FED_TCTRLID, FED_TTSI_SHIFT, and lumiQTWidget::t.
Referenced by ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), PixelDataFormatter::formatRawData(), betterConfigParser.BetterConfigParser::getGeneral(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), L1GTEvmDigiToRaw::packTrailer(), L1GTDigiToRaw::packTrailer(), DTDigiToRawModule::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), l1t::L1TDigiToRaw::produce(), and RPCPackingModule::rawData().
|
static |
Set all fields in the trailer.
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
int FEDTrailer::ttsBits | ( | ) |
Current value of the Trigger Throttling System bitsAQ).
Definition at line 32 of file FEDTrailer.cc.
References fedt_struct::conscheck, FED_TTSI_MASK, FED_TTSI_SHIFT, and theTrailer.
Referenced by DTDataIntegrityTask::processFED(), RPCUnpackingModule::produce(), l1t::L1TRawToDigi::produce(), HcalRawDataMonitor::unpack(), RctRawToDigi::unpack(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().
int FEDTrailer::ttsBits | ( | ) |
Current value of the Trigger Throttling System bitsAQ).
|
private |
Definition at line 50 of file FEDTrailer.h.
Referenced by check(), crc(), evtStatus(), lenght(), moreTrailers(), and ttsBits().
|
private |
Definition at line 52 of file FEDTrailer.h.