![]() |
AliRoot Core
a565103 (a565103)
|
Class for decoding the payload for tracker raw data. More...
#include <AliMUONPayloadTracker.h>
Public Member Functions | |
AliMUONPayloadTracker () | |
virtual | ~AliMUONPayloadTracker () |
Int_t | GetMaxBlock () const |
Return maximum number of block per DDL in DATE file. More... | |
Int_t | GetMaxDsp () const |
Return maximum number of Dsp per block in DATE file. More... | |
Int_t | GetMaxBus () const |
Return maximum number of Buspatch per Dsp in DATE file. More... | |
void | SetMaxBlock (Int_t blk) |
void | SetMaxDsp (Int_t dsp) |
Set maximum number of Dsp per block in DATE file does not check, done via BusPatchManager. More... | |
void | SetMaxBus (Int_t bus) |
Set maximum number of Buspatch per Dsp in DATE file does not check, done via BusPatchManager. More... | |
void | ResetDDL () |
Bool_t | Decode (UInt_t *buffer, Int_t datasize) |
AliMUONBusStruct * | GetBusPatchInfo () const |
Return pointer for local structure. More... | |
AliMUONDDLTracker * | GetDDLTracker () const |
Return pointer for buspatch structure. More... | |
Int_t | GetParityErrors () const |
Get number of parity errors. More... | |
Int_t | GetGlitchErrors () const |
Get number of glitch errors. More... | |
Int_t | GetPaddingErrors () const |
Get number of padding word errors. More... | |
AliMUONLogger * | GetErrorLogger () const |
Get Error logger. More... | |
void | DisableWarnings () |
set warnings flag More... | |
Private Member Functions | |
AliMUONPayloadTracker (const AliMUONPayloadTracker &stream) | |
Not implemented. More... | |
AliMUONPayloadTracker & | operator= (const AliMUONPayloadTracker &stream) |
Not implemented. More... | |
Bool_t | CheckDataParity () |
void | AddErrorMessage (const Char_t *msg) |
Private Attributes | |
Int_t | fBusPatchId |
entry of buspatch structure More... | |
Int_t | fDspId |
entry of Dsp header More... | |
Int_t | fBlkId |
entry of Block header More... | |
Int_t | fMaxDDL |
maximum number of DDL in DATE file More... | |
Int_t | fMaxBlock |
maximum number of block per DDL in DATE file More... | |
Int_t | fMaxDsp |
maximum number of Dsp per block in DATE file More... | |
Int_t | fMaxBus |
maximum number of Buspatch per Dsp in DATE file More... | |
AliMUONDDLTracker * | fDDLTracker |
! pointer for buspatch structure More... | |
AliMUONBusStruct * | fBusStruct |
! pointer for local structure More... | |
AliMUONBlockHeader * | fBlockHeader |
! pointer for block structure More... | |
AliMUONDspHeader * | fDspHeader |
! pointer for dsp structure More... | |
AliMUONLogger * | fLog |
! Map of errors msg; More... | |
Int_t | fParityErrors |
! number of parity errors; More... | |
Int_t | fGlitchErrors |
! number of glitch errors; More... | |
Int_t | fPaddingErrors |
! number of padding word errors; More... | |
Bool_t | fWarnings |
! flag to enable/disable warnings More... | |
Class for decoding the payload for tracker raw data.
Decodes rawdata from buffer and stores in TClonesArray. First version implement for Tracker
Definition at line 24 of file AliMUONPayloadTracker.h.
AliMUONPayloadTracker::AliMUONPayloadTracker | ( | ) |
create an object to decode MUON payload
Definition at line 42 of file AliMUONPayloadTracker.cxx.
|
virtual |
clean up
Definition at line 68 of file AliMUONPayloadTracker.cxx.
|
private |
Not implemented.
|
private |
adding message to logger
Definition at line 311 of file AliMUONPayloadTracker.cxx.
Referenced by CheckDataParity(), and Decode().
|
private |
parity check taken from MuTrkBusPatch.cxx (sotfware test for CROCUS) A. Baldisseri
Definition at line 273 of file AliMUONPayloadTracker.cxx.
Referenced by Decode().
Bool_t AliMUONPayloadTracker::Decode | ( | UInt_t * | buffer, |
Int_t | datasize | ||
) |
Each DDL is made with 2 Blocks each of which consists of 5 DSP's at most and each of DSP has at most 5 buspatches. The different structures, Block (CRT), DSP (FRT) and Buspatch, are identified by a key word 0xFC0000FC, 0xF000000F and 0xB000000B respectively. (fBusPatchManager no more needed !)
Definition at line 81 of file AliMUONPayloadTracker.cxx.
Referenced by AliMUONRawStreamTracker::GetNextDDL(), and AliMUONRawStreamTracker::NextDDL().
|
inline |
set warnings flag
Definition at line 66 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::DisableWarnings().
|
inline |
Return pointer for local structure.
Definition at line 51 of file AliMUONPayloadTracker.h.
|
inline |
Return pointer for buspatch structure.
Definition at line 53 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::GetDDLTracker(), and AliMUONRawStreamTracker::GetNextDDL().
|
inline |
Get Error logger.
Definition at line 63 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::AddErrorMessage().
|
inline |
Get number of glitch errors.
Definition at line 58 of file AliMUONPayloadTracker.h.
|
inline |
Return maximum number of block per DDL in DATE file.
Definition at line 30 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::GetMaxBlock().
|
inline |
Return maximum number of Buspatch per Dsp in DATE file.
Definition at line 34 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::GetMaxBus().
|
inline |
Return maximum number of Dsp per block in DATE file.
Definition at line 32 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::GetMaxDsp().
|
inline |
Get number of padding word errors.
Definition at line 60 of file AliMUONPayloadTracker.h.
|
inline |
Get number of parity errors.
Definition at line 56 of file AliMUONPayloadTracker.h.
|
private |
Not implemented.
void AliMUONPayloadTracker::ResetDDL | ( | ) |
reseting TClonesArray after each DDL
Definition at line 252 of file AliMUONPayloadTracker.cxx.
Referenced by AliMUONRawStreamTracker::GetNextDDL(), and AliMUONRawStreamTracker::NextDDL().
void AliMUONPayloadTracker::SetMaxBlock | ( | Int_t | blk | ) |
set regional card number
Definition at line 265 of file AliMUONPayloadTracker.cxx.
Referenced by AliMUONRawStreamTracker::SetMaxBlock().
|
inline |
Set maximum number of Buspatch per Dsp in DATE file does not check, done via BusPatchManager.
Definition at line 44 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::SetMaxBus().
|
inline |
Set maximum number of Dsp per block in DATE file does not check, done via BusPatchManager.
Definition at line 41 of file AliMUONPayloadTracker.h.
Referenced by AliMUONRawStreamTracker::SetMaxDsp().
|
private |
entry of Block header
Definition at line 79 of file AliMUONPayloadTracker.h.
|
private |
! pointer for block structure
Definition at line 88 of file AliMUONPayloadTracker.h.
Referenced by Decode(), and ~AliMUONPayloadTracker().
|
private |
entry of buspatch structure
Definition at line 77 of file AliMUONPayloadTracker.h.
|
private |
! pointer for local structure
Definition at line 87 of file AliMUONPayloadTracker.h.
Referenced by CheckDataParity(), Decode(), GetBusPatchInfo(), and ~AliMUONPayloadTracker().
|
private |
! pointer for buspatch structure
Definition at line 86 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetDDLTracker(), ResetDDL(), and ~AliMUONPayloadTracker().
|
private |
! pointer for dsp structure
Definition at line 89 of file AliMUONPayloadTracker.h.
Referenced by Decode(), and ~AliMUONPayloadTracker().
|
private |
entry of Dsp header
Definition at line 78 of file AliMUONPayloadTracker.h.
|
private |
! number of glitch errors;
Definition at line 93 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetGlitchErrors(), and ResetDDL().
|
private |
! Map of errors msg;
Definition at line 91 of file AliMUONPayloadTracker.h.
Referenced by AddErrorMessage(), GetErrorLogger(), and ~AliMUONPayloadTracker().
|
private |
maximum number of block per DDL in DATE file
Definition at line 82 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetMaxBlock(), and SetMaxBlock().
|
private |
maximum number of Buspatch per Dsp in DATE file
Definition at line 84 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetMaxBus(), and SetMaxBus().
|
private |
maximum number of DDL in DATE file
Definition at line 81 of file AliMUONPayloadTracker.h.
|
private |
maximum number of Dsp per block in DATE file
Definition at line 83 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetMaxDsp(), and SetMaxDsp().
|
private |
! number of padding word errors;
Definition at line 94 of file AliMUONPayloadTracker.h.
Referenced by Decode(), GetPaddingErrors(), and ResetDDL().
|
private |
! number of parity errors;
Definition at line 92 of file AliMUONPayloadTracker.h.
Referenced by CheckDataParity(), Decode(), GetParityErrors(), and ResetDDL().
|
private |
! flag to enable/disable warnings
Definition at line 95 of file AliMUONPayloadTracker.h.
Referenced by CheckDataParity(), Decode(), and DisableWarnings().