QualityControl  1.5.1
O2 Data Quality Control Framework
o2::quality_control_modules::hmpid::HmpidDecodeRawMem Class Reference
Inheritance diagram for o2::quality_control_modules::hmpid::HmpidDecodeRawMem:
Collaboration diagram for o2::quality_control_modules::hmpid::HmpidDecodeRawMem:

Public Member Functions

 HmpidDecodeRawMem (int *EqIds, int *CruIds, int *LinkIds, int numOfEquipments)
 
 HmpidDecodeRawMem (int numOfEquipments)
 
 ~HmpidDecodeRawMem ()
 Destructor.
 
bool setUpStream (void *Buffer, long BufferLen)
 
- Public Member Functions inherited from o2::quality_control_modules::hmpid::HmpidDecoder
 HmpidDecoder (int *EqIds, int *CruIds, int *LinkIds, int numOfEquipments)
 
 HmpidDecoder (int numOfEquipments)
 
 ~HmpidDecoder ()
 Destructor : remove the Equipments instances.
 
void init ()
 Resets to 0 all the class members.
 
void setVerbosity (int Level)
 
int getVerbosity ()
 
int getNumberOfEquipments ()
 
int getEquipmentIndex (int EquipmentId)
 
int getEquipmentIndex (int CruID, int LinkId)
 
int getEquipmentID (int CruId, int LinkId)
 
bool decodeBuffer ()
 
uint16_t getChannelSamples (int Equipment, int Column, int Dilogic, int Channel)
 
double getChannelSum (int Equipment, int Column, int Dilogic, int Channel)
 
double getChannelSquare (int Equipment, int Column, int Dilogic, int Channel)
 
uint16_t getPadSamples (int Module, int Column, int Row)
 
double getPadSum (int Module, int Column, int Row)
 
double getPadSquares (int Module, int Column, int Row)
 
void dumpErrors (int Equipment)
 
void dumpPads (int Equipment, int type=0)
 
void writeSummaryFile (char *summaryFileName)
 
float getAverageEventSize (int Equipment)
 
float getAverageBusyTime (int Equipment)
 

Additional Inherited Members

- Public Attributes inherited from o2::quality_control_modules::hmpid::HmpidDecoder
int mVerbose
 
HmpidEquipmentmTheEquipments [MAXEQUIPMENTS]
 
int mNumberOfEquipments
 
int mHeEvent
 
int mHeBusy
 
int mNumberWordToRead
 
int mPayloadTail
 
int mHeFEEID
 
int mHeSize
 
int mHeVer
 
int mHePrior
 
int mHeStop
 
int mHePages
 
int mEquipment
 
int mHeOffsetNewPack
 
int mHeMemorySize
 
int mHeDetectorID
 
int mHeDW
 
int mHeCruID
 
int mHePackNum
 
int mHePAR
 
int mHePageNum
 
int mHeLinkNum
 
int mHeFirmwareVersion
 
int mHeHmpidError
 
int mHeBCDI
 
int mHeORBIT
 
int mHeTType
 
int32_t * mActualStreamPtr
 
int32_t * mEndStreamPtr
 
int32_t * mStartStreamPtr
 
- Static Public Attributes inherited from o2::quality_control_modules::hmpid::HmpidDecoder
static char sErrorDescription [MAXERRORS][MAXDESCRIPTIONLENGHT]
 Decoding Error Messages Definitions. More...
 
static char sHmpidErrorDescription [MAXHMPIDERRORS][MAXDESCRIPTIONLENGHT]
 HMPID Firmware Error Messages Definitions. More...
 
- Protected Member Functions inherited from o2::quality_control_modules::hmpid::HmpidDecoder
int checkType (int32_t wp, int *p1, int *p2, int *p3, int *p4)
 
bool isRowMarker (int32_t wp, int *Err, int *rowSize, int *mark)
 
bool isSegmentMarker (int32_t wp, int *Err, int *segSize, int *Seg, int *mark)
 
bool isPadWord (int32_t wp, int *Err, int *Col, int *Dilogic, int *Channel, int *Charge)
 
bool isEoEmarker (int32_t wp, int *Err, int *Col, int *Dilogic, int *Eoesize)
 
int decodeHeader (int32_t *streamPtrAdr, int *EquipIndex)
 
bool decodeHmpidError (int ErrorField, char *outbuf)
 
void dumpHmpidError (int ErrorField)
 
HmpidEquipmentevaluateHeaderContents (int EquipmentIndex)
 
void updateStatistics (HmpidEquipment *eq)
 
int32_t * getActualStreamPtr ()
 

Constructor & Destructor Documentation

HmpidDecodeRawMem::HmpidDecodeRawMem ( int *  EqIds,
int *  CruIds,
int *  LinkIds,
int  numOfEquipments 
)

Constructor : accepts the number of equipments to define and their complete address map Allocates instances for all defined equipments

The Address map is build from three array

Parameters
[in]numOfEquipments: the number of equipments to define [1..14]
[in]*EqIds: the pointer to the Equipments ID array
[in]*CruIds: the pointer to the CRU ID array
[in]*LinkIds: the pointer to the Link ID array
HmpidDecodeRawMem::HmpidDecodeRawMem ( int  numOfEquipments)

Constructor : accepts the number of equipments to define The mapping is the default at P2 Allocates instances for all defined equipments normally it is equal to 14

Parameters
[in]numOfEquipments: the number of equipments to define [1..14]

Member Function Documentation

bool HmpidDecodeRawMem::setUpStream ( void *  Buffer,
long  BufferLen 
)
virtual

Setup the Input Stream with a Memory Pointer the buffer length is in byte, some controls are done

Parameters
[in]*Buffer: the pointer to Memory buffer
[in]BufferLen: the length of the buffer (bytes)
Returns
True if the stream is set
Exceptions
TH_NULLBUFFERPOINTERThrown if the pointer to the buffer is NULL
TH_BUFFEREMPTYThrown if the buffer is empty
TH_WRONGBUFFERDIMThrown if the buffer len is less then one header

Implements o2::quality_control_modules::hmpid::HmpidDecoder.


The documentation for this class was generated from the following files: