Collection of code for unpacking of TOTEM raw-data. More...
#include <RawDataUnpacker.h>
Public Types | |
enum | { vmCluster = 0x80, vmRaw = 0x90, vmDiamondCompact = 0xB0 } |
VFAT transmission modes. More... | |
typedef uint64_t | word |
Public Member Functions | |
int | processOptoRxFrame (const word *buf, unsigned int frameSize, TotemFEDInfo &fedInfo, SimpleVFATFrameCollection *fc) const |
Process one Opto-Rx (or LoneG) frame. More... | |
int | processOptoRxFrameParallel (const word *buffer, unsigned int frameSize, TotemFEDInfo &fedInfo, SimpleVFATFrameCollection *fc) const |
Process one Opto-Rx frame in parallel (new) format. More... | |
int | processOptoRxFrameSampic (const word *buffer, unsigned int frameSize, TotemFEDInfo &fedInfo, SimpleVFATFrameCollection *fc) const |
Process one Opto-Rx frame that contains SAMPIC frames. More... | |
int | processOptoRxFrameSerial (const word *buffer, unsigned int frameSize, SimpleVFATFrameCollection *fc) const |
Process one Opto-Rx frame in serial (old) format. More... | |
int | processVFATDataParallel (const uint16_t *buf, unsigned int maxWords, unsigned int OptoRxId, SimpleVFATFrameCollection *fc) const |
Process data from one VFAT in parallel (new) format. More... | |
RawDataUnpacker () | |
RawDataUnpacker (const edm::ParameterSet &conf) | |
int | run (int fedId, const FEDRawData &data, std::vector< TotemFEDInfo > &fedInfoColl, SimpleVFATFrameCollection &coll) const |
Unpack data from FED with fedId into ‘coll’ collection. More... | |
Static Public Attributes | |
static constexpr unsigned int | VFAT_DIAMOND_HEADER_OF_WORD_2 = 0x7800 |
static constexpr unsigned int | VFAT_DIAMOND_HEADER_OF_WORD_3 = 0x7000 |
static constexpr unsigned int | VFAT_DIAMOND_HEADER_OF_WORD_5 = 0x6800 |
static constexpr unsigned int | VFAT_DIAMOND_HEADER_OF_WORD_7 = 0x6000 |
static constexpr unsigned int | VFAT_HEADER_OF_EC = 0xC000 |
Private Attributes | |
unsigned char | verbosity |
Collection of code for unpacking of TOTEM raw-data.
Definition at line 29 of file RawDataUnpacker.h.
typedef uint64_t pps::RawDataUnpacker::word |
Definition at line 37 of file RawDataUnpacker.h.
anonymous enum |
VFAT transmission modes.
Enumerator | |
---|---|
vmCluster | |
vmRaw | |
vmDiamondCompact |
Definition at line 40 of file RawDataUnpacker.h.
|
inline |
Definition at line 49 of file RawDataUnpacker.h.
RawDataUnpacker::RawDataUnpacker | ( | const edm::ParameterSet & | conf | ) |
Definition at line 17 of file RawDataUnpacker.cc.
int RawDataUnpacker::processOptoRxFrame | ( | const word * | buf, |
unsigned int | frameSize, | ||
TotemFEDInfo & | fedInfo, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx (or LoneG) frame.
Definition at line 37 of file RawDataUnpacker.cc.
References visDQMUpload::buf, l1GtPatternGenerator_cfi::bx, benchmark_cfg::fc, LogDebug, FEDNumbering::MAXTotemRPTimingVerticalFEDID, FEDNumbering::MINTotemRPTimingVerticalFEDID, processOptoRxFrameParallel(), processOptoRxFrameSampic(), processOptoRxFrameSerial(), TotemFEDInfo::setFooter(), TotemFEDInfo::setHeader(), and verbosity.
Referenced by run().
int RawDataUnpacker::processOptoRxFrameParallel | ( | const word * | buffer, |
unsigned int | frameSize, | ||
TotemFEDInfo & | fedInfo, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx frame in parallel (new) format.
Definition at line 177 of file RawDataUnpacker.cc.
References visDQMUpload::buf, benchmark_cfg::fc, hltrates_dqm_sourceclient-live_cfg::offset, jets_cff::payload, processVFATDataParallel(), and TotemFEDInfo::setOrbitCounter().
Referenced by processOptoRxFrame().
int RawDataUnpacker::processOptoRxFrameSampic | ( | const word * | buffer, |
unsigned int | frameSize, | ||
TotemFEDInfo & | fedInfo, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx frame that contains SAMPIC frames.
Definition at line 414 of file RawDataUnpacker.cc.
References visDQMUpload::buf, benchmark_cfg::fc, personalPlayback::fp, amptDefault_cfi::frame, mps_fire::i, and LogDebug.
Referenced by processOptoRxFrame().
int RawDataUnpacker::processOptoRxFrameSerial | ( | const word * | buffer, |
unsigned int | frameSize, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx frame in serial (old) format.
Definition at line 99 of file RawDataUnpacker.cc.
References visDQMUpload::buf, c, benchmark_cfg::fc, personalPlayback::fp, mps_fire::i, heavyIonCSV_trainingSettings::idx, cmsLHEtoEOSManager::l, LogDebug, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, verbosity, w, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by processOptoRxFrame().
int RawDataUnpacker::processVFATDataParallel | ( | const uint16_t * | buf, |
unsigned int | maxWords, | ||
unsigned int | OptoRxId, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process data from one VFAT in parallel (new) format.
Definition at line 205 of file RawDataUnpacker.cc.
References visDQMUpload::buf, f, benchmark_cfg::fc, ztee::fd, personalPlayback::fp, mps_fire::i, verbosity, VFAT_DIAMOND_HEADER_OF_WORD_2, VFAT_DIAMOND_HEADER_OF_WORD_3, VFAT_DIAMOND_HEADER_OF_WORD_5, VFAT_DIAMOND_HEADER_OF_WORD_7, VFAT_HEADER_OF_EC, vmCluster, vmDiamondCompact, vmRaw, and w.
Referenced by processOptoRxFrameParallel().
int RawDataUnpacker::run | ( | int | fedId, |
const FEDRawData & | data, | ||
std::vector< TotemFEDInfo > & | fedInfoColl, | ||
SimpleVFATFrameCollection & | coll | ||
) | const |
Unpack data from FED with fedId into ‘coll’ collection.
Definition at line 20 of file RawDataUnpacker.cc.
References data, l1tstage2_dqm_sourceclient-live_cfg::fedId, processOptoRxFrame(), and verbosity.
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and TotemVFATRawToDigi::run().
|
private |
Definition at line 87 of file RawDataUnpacker.h.
Referenced by processOptoRxFrame(), processOptoRxFrameSerial(), processVFATDataParallel(), and run().
|
staticconstexpr |
Definition at line 43 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
staticconstexpr |
Definition at line 44 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
staticconstexpr |
Definition at line 45 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
staticconstexpr |
Definition at line 46 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
staticconstexpr |
Definition at line 47 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().