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... | |
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 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.
References edmScanValgrind::buffer, coll, data, benchmark_cfg::fc, l1t::stage2::layer2::fedId, ProcessOptoRxFrame(), ProcessOptoRxFrameParallel(), ProcessOptoRxFrameSerial(), ProcessVFATDataParallel(), and Run().
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 45 of file RawDataUnpacker.cc.
References rpcdqm::BX, ProcessOptoRxFrameParallel(), ProcessOptoRxFrameSerial(), TotemFEDInfo::setFooter(), TotemFEDInfo::setHeader(), and verbosity.
Referenced by RawDataUnpacker(), and 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 181 of file RawDataUnpacker.cc.
References PFRecoTauDiscriminationByIsolation_cfi::offset, jetCorrFactors_cfi::payload, ProcessVFATDataParallel(), and TotemFEDInfo::setOrbitCounter().
Referenced by ProcessOptoRxFrame(), and RawDataUnpacker().
int RawDataUnpacker::ProcessOptoRxFrameSerial | ( | const word * | buffer, |
unsigned int | frameSize, | ||
SimpleVFATFrameCollection * | fc | ||
) | const |
Process one Opto-Rx frame in serial (old) format.
Definition at line 97 of file RawDataUnpacker.cc.
References EnergyCorrector::c, VFATFrame::getData(), mps_fire::i, training_settings::idx, SimpleVFATFrameCollection::InsertEmptyFrame(), alignCSCRings::r, verbosity, and w.
Referenced by ProcessOptoRxFrame(), and RawDataUnpacker().
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 210 of file RawDataUnpacker.cc.
References f, VFATFrame::getData(), mps_fire::i, SimpleVFATFrameCollection::Insert(), VFATFrame::setDAQErrorFlags(), VFATFrame::setNumberOfClusters(), VFATFrame::setPresenceFlags(), verbosity, vmCluster, vmRaw, and w.
Referenced by ProcessOptoRxFrameParallel(), and RawDataUnpacker().
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 27 of file RawDataUnpacker.cc.
References coll, FEDRawData::data(), ProcessOptoRxFrame(), FEDRawData::size(), and verbosity.
Referenced by RawDataUnpacker(), and TotemVFATRawToDigi::run().
|
private |
Definition at line 51 of file RawDataUnpacker.h.
Referenced by ProcessOptoRxFrame(), ProcessOptoRxFrameSerial(), ProcessVFATDataParallel(), and Run().