Collection of code for unpacking of TOTEM raw-data. More...
#include <RawDataUnpacker.h>
Public Types | |
enum | { vmCluster = 0x80, vmRaw = 0x90 } |
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 | 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 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... | |
Collection of code for unpacking of TOTEM raw-data.
Definition at line 23 of file RawDataUnpacker.h.
typedef uint64_t RawDataUnpacker::word |
Definition at line 26 of file RawDataUnpacker.h.
anonymous enum |
VFAT transmission modes.
Enumerator | |
---|---|
vmCluster | |
vmRaw |
Definition at line 29 of file RawDataUnpacker.h.
|
inline |
Definition at line 31 of file RawDataUnpacker.h.
RawDataUnpacker::RawDataUnpacker | ( | const edm::ParameterSet & | conf | ) |
Definition at line 20 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 43 of file RawDataUnpacker.cc.
References rpcdqm::BX, TotemFEDInfo::setFooter(), and TotemFEDInfo::setHeader().
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 176 of file RawDataUnpacker.cc.
References hltrates_dqm_sourceclient-live_cfg::offset, and TotemFEDInfo::setOrbitCounter().
int RawDataUnpacker::ProcessOptoRxFrameSerial | ( | const word * | buffer, |
unsigned int | frameSize, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx frame in serial (old) format.
Definition at line 93 of file RawDataUnpacker.cc.
References EnergyCorrector::c, personalPlayback::fp, VFATFrame::getData(), i, customizeTrackingMonitorSeedNumber::idx, SimpleVFATFrameCollection::InsertEmptyFrame(), alignCSCRings::r, contentValuesCheck::ss, and w.
int RawDataUnpacker::ProcessVFATDataParallel | ( | const uint16_t * | buf, |
unsigned int | OptoRxId, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process data from one VFAT in parallel (new) format.
Definition at line 205 of file RawDataUnpacker.cc.
References f, ztee::fd, personalPlayback::fp, VFATFrame::getData(), i, SimpleVFATFrameCollection::Insert(), VFATFrame::setDAQErrorFlags(), VFATFrame::setNumberOfClusters(), VFATFrame::setPresenceFlags(), and w.
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 26 of file RawDataUnpacker.cc.
References coll, FEDRawData::data(), and FEDRawData::size().
Referenced by TotemVFATRawToDigi::run().