AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPayloadTracker Class Reference

Class for decoding the payload for tracker raw data. More...

#include <AliMUONPayloadTracker.h>

Inheritance diagram for AliMUONPayloadTracker:

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)
 
AliMUONBusStructGetBusPatchInfo () const
 Return pointer for local structure. More...
 
AliMUONDDLTrackerGetDDLTracker () 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...
 
AliMUONLoggerGetErrorLogger () const
 Get Error logger. More...
 
void DisableWarnings ()
 set warnings flag More...
 

Private Member Functions

 AliMUONPayloadTracker (const AliMUONPayloadTracker &stream)
 Not implemented. More...
 
AliMUONPayloadTrackeroperator= (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...
 
AliMUONDDLTrackerfDDLTracker
 ! pointer for buspatch structure More...
 
AliMUONBusStructfBusStruct
 ! pointer for local structure More...
 
AliMUONBlockHeaderfBlockHeader
 ! pointer for block structure More...
 
AliMUONDspHeaderfDspHeader
 ! pointer for dsp structure More...
 
AliMUONLoggerfLog
 ! 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...
 

Detailed Description

Class for decoding the payload for tracker raw data.

Decodes rawdata from buffer and stores in TClonesArray. First version implement for Tracker

Author
Christian Finck

Definition at line 24 of file AliMUONPayloadTracker.h.

Constructor & Destructor Documentation

AliMUONPayloadTracker::AliMUONPayloadTracker ( )

create an object to decode MUON payload

Definition at line 42 of file AliMUONPayloadTracker.cxx.

AliMUONPayloadTracker::~AliMUONPayloadTracker ( )
virtual

clean up

Definition at line 68 of file AliMUONPayloadTracker.cxx.

AliMUONPayloadTracker::AliMUONPayloadTracker ( const AliMUONPayloadTracker stream)
private

Not implemented.

Member Function Documentation

void AliMUONPayloadTracker::AddErrorMessage ( const Char_t *  msg)
private

adding message to logger

Definition at line 311 of file AliMUONPayloadTracker.cxx.

Referenced by CheckDataParity(), and Decode().

Bool_t AliMUONPayloadTracker::CheckDataParity ( )
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().

void AliMUONPayloadTracker::DisableWarnings ( )
inline

set warnings flag

Definition at line 66 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::DisableWarnings().

AliMUONBusStruct* AliMUONPayloadTracker::GetBusPatchInfo ( ) const
inline

Return pointer for local structure.

Definition at line 51 of file AliMUONPayloadTracker.h.

AliMUONDDLTracker* AliMUONPayloadTracker::GetDDLTracker ( ) const
inline

Return pointer for buspatch structure.

Definition at line 53 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::GetDDLTracker(), and AliMUONRawStreamTracker::GetNextDDL().

AliMUONLogger* AliMUONPayloadTracker::GetErrorLogger ( ) const
inline

Get Error logger.

Definition at line 63 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::AddErrorMessage().

Int_t AliMUONPayloadTracker::GetGlitchErrors ( ) const
inline

Get number of glitch errors.

Definition at line 58 of file AliMUONPayloadTracker.h.

Int_t AliMUONPayloadTracker::GetMaxBlock ( ) const
inline

Return maximum number of block per DDL in DATE file.

Definition at line 30 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::GetMaxBlock().

Int_t AliMUONPayloadTracker::GetMaxBus ( ) const
inline

Return maximum number of Buspatch per Dsp in DATE file.

Definition at line 34 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::GetMaxBus().

Int_t AliMUONPayloadTracker::GetMaxDsp ( ) const
inline

Return maximum number of Dsp per block in DATE file.

Definition at line 32 of file AliMUONPayloadTracker.h.

Referenced by AliMUONRawStreamTracker::GetMaxDsp().

Int_t AliMUONPayloadTracker::GetPaddingErrors ( ) const
inline

Get number of padding word errors.

Definition at line 60 of file AliMUONPayloadTracker.h.

Int_t AliMUONPayloadTracker::GetParityErrors ( ) const
inline

Get number of parity errors.

Definition at line 56 of file AliMUONPayloadTracker.h.

AliMUONPayloadTracker& AliMUONPayloadTracker::operator= ( const AliMUONPayloadTracker stream)
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().

void AliMUONPayloadTracker::SetMaxBus ( Int_t  bus)
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().

void AliMUONPayloadTracker::SetMaxDsp ( Int_t  dsp)
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().

Member Data Documentation

Int_t AliMUONPayloadTracker::fBlkId
private

entry of Block header

Definition at line 79 of file AliMUONPayloadTracker.h.

AliMUONBlockHeader* AliMUONPayloadTracker::fBlockHeader
private

! pointer for block structure

Definition at line 88 of file AliMUONPayloadTracker.h.

Referenced by Decode(), and ~AliMUONPayloadTracker().

Int_t AliMUONPayloadTracker::fBusPatchId
private

entry of buspatch structure

Definition at line 77 of file AliMUONPayloadTracker.h.

AliMUONBusStruct* AliMUONPayloadTracker::fBusStruct
private

! pointer for local structure

Definition at line 87 of file AliMUONPayloadTracker.h.

Referenced by CheckDataParity(), Decode(), GetBusPatchInfo(), and ~AliMUONPayloadTracker().

AliMUONDDLTracker* AliMUONPayloadTracker::fDDLTracker
private

! pointer for buspatch structure

Definition at line 86 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetDDLTracker(), ResetDDL(), and ~AliMUONPayloadTracker().

AliMUONDspHeader* AliMUONPayloadTracker::fDspHeader
private

! pointer for dsp structure

Definition at line 89 of file AliMUONPayloadTracker.h.

Referenced by Decode(), and ~AliMUONPayloadTracker().

Int_t AliMUONPayloadTracker::fDspId
private

entry of Dsp header

Definition at line 78 of file AliMUONPayloadTracker.h.

Int_t AliMUONPayloadTracker::fGlitchErrors
private

! number of glitch errors;

Definition at line 93 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetGlitchErrors(), and ResetDDL().

AliMUONLogger* AliMUONPayloadTracker::fLog
private

! Map of errors msg;

Definition at line 91 of file AliMUONPayloadTracker.h.

Referenced by AddErrorMessage(), GetErrorLogger(), and ~AliMUONPayloadTracker().

Int_t AliMUONPayloadTracker::fMaxBlock
private

maximum number of block per DDL in DATE file

Definition at line 82 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetMaxBlock(), and SetMaxBlock().

Int_t AliMUONPayloadTracker::fMaxBus
private

maximum number of Buspatch per Dsp in DATE file

Definition at line 84 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetMaxBus(), and SetMaxBus().

Int_t AliMUONPayloadTracker::fMaxDDL
private

maximum number of DDL in DATE file

Definition at line 81 of file AliMUONPayloadTracker.h.

Int_t AliMUONPayloadTracker::fMaxDsp
private

maximum number of Dsp per block in DATE file

Definition at line 83 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetMaxDsp(), and SetMaxDsp().

Int_t AliMUONPayloadTracker::fPaddingErrors
private

! number of padding word errors;

Definition at line 94 of file AliMUONPayloadTracker.h.

Referenced by Decode(), GetPaddingErrors(), and ResetDDL().

Int_t AliMUONPayloadTracker::fParityErrors
private

! number of parity errors;

Definition at line 92 of file AliMUONPayloadTracker.h.

Referenced by CheckDataParity(), Decode(), GetParityErrors(), and ResetDDL().

Bool_t AliMUONPayloadTracker::fWarnings
private

! flag to enable/disable warnings

Definition at line 95 of file AliMUONPayloadTracker.h.

Referenced by CheckDataParity(), Decode(), and DisableWarnings().


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