CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
RawDataUnpacker Class Reference

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...
 

Detailed Description

Collection of code for unpacking of TOTEM raw-data.

Definition at line 23 of file RawDataUnpacker.h.

Member Typedef Documentation

typedef uint64_t RawDataUnpacker::word

Definition at line 26 of file RawDataUnpacker.h.

Member Enumeration Documentation

anonymous enum

VFAT transmission modes.

Enumerator
vmCluster 
vmRaw 

Definition at line 29 of file RawDataUnpacker.h.

Constructor & Destructor Documentation

RawDataUnpacker::RawDataUnpacker ( )
inline

Definition at line 31 of file RawDataUnpacker.h.

31 {}
RawDataUnpacker::RawDataUnpacker ( const edm::ParameterSet conf)

Definition at line 20 of file RawDataUnpacker.cc.

Member Function Documentation

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.

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.

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.

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.

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.