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 23 of file RawDataUnpacker.h.
typedef uint64_t pps::RawDataUnpacker::word |
Definition at line 25 of file RawDataUnpacker.h.
anonymous enum |
VFAT transmission modes.
Enumerator | |
---|---|
vmCluster | |
vmRaw | |
vmDiamondCompact |
Definition at line 28 of file RawDataUnpacker.h.
|
inline |
Definition at line 37 of file RawDataUnpacker.h.
RawDataUnpacker::RawDataUnpacker | ( | const edm::ParameterSet & | conf | ) |
Definition at line 18 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 38 of file RawDataUnpacker.cc.
References visDQMUpload::buf, simKBmtfDigis_cfi::bx, 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 178 of file RawDataUnpacker.cc.
References visDQMUpload::buf, l1ctLayer2EG_cff::nWords, hltrates_dqm_sourceclient-live_cfg::offset, jetsAK4_Puppi_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 415 of file RawDataUnpacker.cc.
References visDQMUpload::buf, personalPlayback::fp, amptDefault_cfi::frame, mps_fire::i, SimpleVFATFrameCollection::Insert(), LogDebug, and l1ctLayer2EG_cff::nWords.
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 100 of file RawDataUnpacker.cc.
References visDQMUpload::buf, HltBtagPostValidation_cff::c, personalPlayback::fp, VFATFrame::getData(), mps_fire::i, heavyIonCSV_trainingSettings::idx, SimpleVFATFrameCollection::InsertEmptyFrame(), MainPageGenerator::l, LogDebug, AlCaHLTBitMon_ParallelJobs::p, verbosity, and w().
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 206 of file RawDataUnpacker.cc.
References visDQMUpload::buf, f, ztee::fd, personalPlayback::fp, mps_fire::i, SimpleVFATFrameCollection::Insert(), 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 21 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 75 of file RawDataUnpacker.h.
Referenced by processOptoRxFrame(), processOptoRxFrameSerial(), processVFATDataParallel(), and run().
|
static |
Definition at line 31 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
static |
Definition at line 32 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
static |
Definition at line 33 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
static |
Definition at line 34 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().
|
static |
Definition at line 35 of file RawDataUnpacker.h.
Referenced by processVFATDataParallel().