AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRawStreamTrackerHP Class Reference

A high performance stream decoder for muon tracking DDL streams. More...

#include <AliMUONRawStreamTrackerHP.h>

Inheritance diagram for AliMUONRawStreamTrackerHP:

Classes

class  AliBlockHeader
 Light weight interface class to the block header data. More...
 
class  AliBusPatch
 Light weight interface class to the bus patch data. More...
 
class  AliDecoderEventHandler
 
class  AliDspHeader
 Light weight interface class to the DSP header data. More...
 

Public Types

enum  EDetailLevel { kLowErrorDetail, kMediumErrorDetail, kHighErrorDetail }
 Values indicating the logging detail level to use for error messages. More...
 

Public Member Functions

 AliMUONRawStreamTrackerHP ()
 Default constructor. More...
 
 AliMUONRawStreamTrackerHP (AliRawReader *rawReader)
 Constructor for setting the raw reader. More...
 
virtual ~AliMUONRawStreamTrackerHP ()
 Default destructor. More...
 
virtual AliRawReader * GetReader ()
 Get object for reading the raw data. More...
 
void SetReader (AliRawReader *reader)
 Set the raw reader. More...
 
virtual void First ()
 Initialize iterator. More...
 
virtual Bool_t NextDDL ()
 DDL iterator. More...
 
virtual Bool_t IsDone () const
 Whether the iteration is finished or not. More...
 
virtual Bool_t Next (Int_t &busPatchId, UShort_t &manuId, UChar_t &manuChannel, UShort_t &adc)
 Advance one step in the iteration. Returns false if finished. More...
 
virtual Bool_t Next (Int_t &busPatchId, UShort_t &manuId, UChar_t &manuChannel, UShort_t &adc, Bool_t skipParityErrors)
 Advance one step in the iteration. Returns false if finished. More...
 
virtual AliMUONDDLTrackerGetDDLTracker () const
 Construct and return a pointer to the DDL payload object. More...
 
const AliBusPatchNext ()
 Returns the next batch of decoded channel data. More...
 
virtual Int_t GetMaxBlock () const
 Return maximum number of blocks per DDL allowed. More...
 
virtual Int_t GetMaxDsp () const
 Return maximum number of Dsp per block allowed. More...
 
virtual Int_t GetMaxBus () const
 Return maximum number of Buspatch per Dsp allowed. More...
 
virtual void SetMaxBlock (Int_t blk)
 Set maximum number of blocks per DDL allowed. More...
 
virtual void SetMaxDsp (Int_t dsp)
 Set maximum number of Dsp per block allowed. More...
 
virtual void SetMaxBus (Int_t bus)
 Set maximum number of Buspatch per Dsp allowed. More...
 
virtual Int_t GetDDL () const
 Return number of the current DDL being processed in the range [0..19] or -1 if no DDL set. More...
 
virtual Bool_t IsErrorMessage () const
 check error/Warning presence More...
 
Int_t GetParityErrors () const
 Get number of parity errors in the DDL last decoded. More...
 
Int_t GetGlitchErrors () const
 Get number of glitch errors in the DDL last decoded. More...
 
Int_t GetPaddingErrors () const
 Get number of padding word errors in the DDL last decoded. More...
 
Int_t GetTokenLostErrors () const
 Get number of token lost errors in the DDL last decoded. More...
 
void DisableWarnings ()
 Set warnings flag to disable warnings on data errors. More...
 
void EnableWarnings ()
 Set warnings flag to enable warnings on data errors. More...
 
Bool_t IsWarningsEnabled () const
 Returns the flag indicating if we should generate a warning for errors. More...
 
Bool_t TryRecover () const
 Returns the "try to recover from errors" flag. More...
 
void TryRecover (Bool_t value)
 
Bool_t AutoDetectTrailer () const
 Returns the auto-detect trailer words flag. More...
 
void AutoDetectTrailer (Bool_t value)
 
Bool_t CheckForTrailer () const
 
void CheckForTrailer (Bool_t value)
 
UInt_t GetBlockCount () const
 Return the number of blocks in the DDL payload. More...
 
const AliBlockHeaderGetFirstBlockHeader () const
 Return the first block header. More...
 
const AliBlockHeaderGetBlockHeader (UInt_t i) const
 Return the i'th block header or NULL if not found. More...
 
UInt_t GetDspCount (UInt_t block) const
 Returns the number of DSPs for the given block number. More...
 
const AliDspHeaderGetDspHeader (UInt_t block, UInt_t i) const
 Returns the i'th DSP header for the given block number or NULL if not found. More...
 
UInt_t GetBusPatchCount (UInt_t block, UInt_t dsp) const
 Returns the number of bus patches for the given block and dsp number. More...
 
const AliBusPatchGetBusPatch (UInt_t block, UInt_t dsp, UInt_t i) const
 Returns the i'th bus patch for the given block and dsp. More...
 
const AliBusPatchCurrentBusPatch () const
 Returns the current bus patch being decoded or NULL if none found. More...
 
const AliDspHeaderCurrentDspHeader () const
 Returns the current DSP being decoded or NULL if none found. More...
 
const AliBlockHeaderCurrentBlockHeader () const
 Returns the current block header being decoded or NULL if none found. More...
 
virtual void EnabbleErrorLogger ()
 Enable error logging to the raw reader. More...
 
void EnableMUONErrorLogger ()
 Enable error info logging to AliMUONLogger. More...
 
void DisableMUONErrorLogger ()
 Disable logging to AliMUONLogger. More...
 
void EnableRawReaderErrorLogger ()
 Enable error info logging to raw reader. More...
 
void DisableRawReaderErrorLogger ()
 Disable logging to the raw reader. More...
 
Bool_t IsMUONErrorLoggerEnabled () const
 Check if the AliMUONLogger is enabled for error logging. More...
 
Bool_t IsRawReaderErrorLoggerEnabled () const
 Check if the AliMUONLogger is enabled for error logging. More...
 
const AliMUONLoggerGetMUONErrorLogger () const
 Returns the logger object. (constant version) More...
 
AliMUONLoggerGetMUONErrorLogger ()
 Returns the logger object. More...
 
void SetMUONErrorLogger (AliMUONLogger *logger)
 Sets the logger object to use. Ownership of the logger object remains with the caller. More...
 
EDetailLevel GetLoggingDetailLevel () const
 Returns the level of detail used in the error messages. More...
 
void SetLoggingDetailLevel (EDetailLevel level)
 Sets the level of detail used in the error messages. More...
 
UInt_t NumberOfGlitchErrors () const
 Number of glitch errors since First() was called. More...
 
UInt_t NumberOfPaddingErrors () const
 Number of padding errors since First() was called. More...
 
UInt_t NumberOfParityErrors () const
 Number of parity errors since First() was called. More...
 
UInt_t NumberOfTokenLostErrors () const
 Number of token lost errors since First() was called. More...
 
Bool_t HasGlitchError () const
 Whether we got glitch errors or not. More...
 
Bool_t HasPaddingError () const
 Whether we got padding errors or not. More...
 
Bool_t HasParityError () const
 Whether we got parity errors or not. More...
 
Bool_t HasTokenLostError () const
 Whether we got token lost errors or not. More...
 

Private Member Functions

 AliMUONRawStreamTrackerHP (const AliMUONRawStreamTrackerHP &stream)
 Not implemented. More...
 
AliMUONRawStreamTrackerHPoperator= (const AliMUONRawStreamTrackerHP &stream)
 Not implemented. More...
 
Int_t GetMaxDDL () const
 Return max number of tracker DDLs. More...
 
virtual void Swap (UInt_t *buffer, Int_t size) const
 swap method for Power PC More...
 

Private Attributes

AliRawReader * fRawReader
 ! Pointer to the raw reader More...
 
AliMUONLoggerfLogger
 ! Logger object to store error messages. More...
 
EDetailLevel fDetailLevel
 ! The logging detail level used in the error messages generated in OnError. More...
 
Bool_t fEnableMUONErrorLogger
 ! whether or not we log errors to AliMUONLogger More...
 
Bool_t fEnableRawReaderErrorLogger
 ! whether or not we log errors to the raw reader. More...
 
Bool_t fWarnings
 ! Flag indicating if we should generate a warning for errors. More...
 
AliMUONTrackerDDLDecoder
< AliDecoderEventHandler
fDecoder
 ! The decoder for the DDL payload. More...
 
Int_t fDDL
 ! The current DDL number being handled. More...
 
Int_t fBufferSize
 ! This is the buffer size in bytes of fBuffer. More...
 
UChar_t * fBuffer
 ! This is the buffer in which we store the DDL payload read from AliRawReader. More...
 
const AliBusPatchfkCurrentBusPatch
 ! The current bus patch being handled by Next(). More...
 
const UInt_t * fkCurrentData
 ! The current data word to return by Next(). More...
 
const UInt_t * fkEndOfData
 ! The last data word in the current bus patch. More...
 
Bool_t fHadError
 ! Flag indicating if there was a decoding error or not. More...
 
Bool_t fDone
 ! Flag indicating if the iteration is done or not. More...
 
AliMUONDDLTrackerfDDLObject
 ! Temporary DDL object used by GetDDLTracker() for caching. More...
 
UInt_t fTotalNumberOfGlitchErrors
 ! number of glitch errors since First() was called More...
 
UInt_t fTotalNumberOfParityErrors
 ! number of parity errors since First() was called More...
 
UInt_t fTotalNumberOfPaddingErrors
 ! number of padding errors since First() was called More...
 
UInt_t fTotalNumberOfTokenLostErrors
 ! number of token lost errors since First() was called More...
 

Static Private Attributes

static const Int_t fgkMaxDDL = 20
 ! max number of tracker DDLs More...
 

Detailed Description

A high performance stream decoder for muon tracking DDL streams.

This is the raw stream class which interfaces between the high performance core decoder and the AliRawReader class. To gain the most out of the decoder, the Next() method which returns batches of decoded digit / channel information should be used. That is:

const AliBusPatch* Next();

This decoder tries to implement as similar an interface as possible to AliMUONRawStreamTracker where possible. However certain constructs which would slow us down too much are avoided.

Author
Artur Szostak artur.nosp@m.sz@i.nosp@m.afric.nosp@m.a.co.nosp@m.m

Definition at line 27 of file AliMUONRawStreamTrackerHP.h.

Member Enumeration Documentation

Values indicating the logging detail level to use for error messages.

Enumerator
kLowErrorDetail 
kMediumErrorDetail 

Logs minimal information in the error messages.

kHighErrorDetail 

Logs a medium level of detail in the error messages.

Logs maximum information in the error messages.

Definition at line 34 of file AliMUONRawStreamTrackerHP.h.

Constructor & Destructor Documentation

AliMUONRawStreamTrackerHP::AliMUONRawStreamTrackerHP ( )

Default constructor.

Default constructor.

Definition at line 70 of file AliMUONRawStreamTrackerHP.cxx.

AliMUONRawStreamTrackerHP::AliMUONRawStreamTrackerHP ( AliRawReader *  rawReader)

Constructor for setting the raw reader.

Constructor with AliRawReader as argument.

Definition at line 112 of file AliMUONRawStreamTrackerHP.cxx.

AliMUONRawStreamTrackerHP::~AliMUONRawStreamTrackerHP ( )
virtual

Default destructor.

Default destructor.

Definition at line 154 of file AliMUONRawStreamTrackerHP.cxx.

AliMUONRawStreamTrackerHP::AliMUONRawStreamTrackerHP ( const AliMUONRawStreamTrackerHP stream)
private

Not implemented.

Member Function Documentation

Bool_t AliMUONRawStreamTrackerHP::AutoDetectTrailer ( ) const
inline

Returns the auto-detect trailer words flag.

Definition at line 144 of file AliMUONRawStreamTrackerHP.h.

void AliMUONRawStreamTrackerHP::AutoDetectTrailer ( Bool_t  value)
inline

Sets the auto-detect trailer words flag. When set to true the decoder will try to detect if the end of DDL keys are in the trailer words or not. These are generated by the detector but not the older versions of AliRoot simulations.

Definition at line 150 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::CheckForTrailer ( ) const
inline

Returns the flag indicating if the data is expected to have the end of DDL keys in the trailer. This flag is ignored if AutoDetectTrailer() was set to true.

Definition at line 155 of file AliMUONRawStreamTrackerHP.h.

void AliMUONRawStreamTrackerHP::CheckForTrailer ( Bool_t  value)
inline

Sets the flag indicating if the trailer words should contain the end of DDL key.

Definition at line 159 of file AliMUONRawStreamTrackerHP.h.

const AliBlockHeader* AliMUONRawStreamTrackerHP::CurrentBlockHeader ( ) const
inline

Returns the current block header being decoded or NULL if none found.

Definition at line 523 of file AliMUONRawStreamTrackerHP.h.

const AliBusPatch* AliMUONRawStreamTrackerHP::CurrentBusPatch ( ) const
inline

Returns the current bus patch being decoded or NULL if none found.

Definition at line 509 of file AliMUONRawStreamTrackerHP.h.

Referenced by CurrentDspHeader().

const AliDspHeader* AliMUONRawStreamTrackerHP::CurrentDspHeader ( ) const
inline

Returns the current DSP being decoded or NULL if none found.

Definition at line 516 of file AliMUONRawStreamTrackerHP.h.

Referenced by CurrentBlockHeader().

void AliMUONRawStreamTrackerHP::DisableMUONErrorLogger ( )
inline

Disable logging to AliMUONLogger.

Definition at line 536 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONRawStreamTrackerHP::DisableRawReaderErrorLogger ( )
inline

Disable logging to the raw reader.

Definition at line 542 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONRawStreamTrackerHP::DisableWarnings ( )
inline

Set warnings flag to disable warnings on data errors.

Definition at line 128 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONDigitMaker::AliMUONDigitMaker(), main(), and AliMUONTrackerDataMaker::ProcessEvent().

virtual void AliMUONRawStreamTrackerHP::EnabbleErrorLogger ( )
inlinevirtual

Enable error logging to the raw reader.

Note
Kept for backward compatibility.

Definition at line 530 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONDigitMaker::AliMUONDigitMaker(), and main().

void AliMUONRawStreamTrackerHP::EnableMUONErrorLogger ( )
inline

Enable error info logging to AliMUONLogger.

Definition at line 533 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONRawStreamTrackerHP::EnableRawReaderErrorLogger ( )
inline

Enable error info logging to raw reader.

Definition at line 539 of file AliMUONRawStreamTrackerHP.h.

Referenced by EnabbleErrorLogger().

void AliMUONRawStreamTrackerHP::EnableWarnings ( )
inline

Set warnings flag to enable warnings on data errors.

Definition at line 130 of file AliMUONRawStreamTrackerHP.h.

void AliMUONRawStreamTrackerHP::First ( )
virtual

Initialize iterator.

Initialise or reset the iterator. The first DDL will be found and decoded.

Definition at line 171 of file AliMUONRawStreamTrackerHP.cxx.

Referenced by main(), MUONTimeRawStreamTrackerDumb(), AliMUONTrackerDataMaker::ProcessEvent(), AliMUONDigitMaker::ReadTrackerDDL(), TimeDecoderBusPatchIteration(), and TimeDecoderChannelIteration().

UInt_t AliMUONRawStreamTrackerHP::GetBlockCount ( ) const
inline

Return the number of blocks in the DDL payload.

Definition at line 463 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetDDLTracker(), and main().

const AliBlockHeader* AliMUONRawStreamTrackerHP::GetBlockHeader ( UInt_t  i) const
inline

Return the i'th block header or NULL if not found.

Definition at line 475 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetDDLTracker(), GetDspCount(), GetDspHeader(), and main().

const AliBusPatch* AliMUONRawStreamTrackerHP::GetBusPatch ( UInt_t  block,
UInt_t  dsp,
UInt_t  i 
) const
inline

Returns the i'th bus patch for the given block and dsp.

Definition at line 502 of file AliMUONRawStreamTrackerHP.h.

UInt_t AliMUONRawStreamTrackerHP::GetBusPatchCount ( UInt_t  block,
UInt_t  dsp 
) const
inline

Returns the number of bus patches for the given block and dsp number.

Definition at line 495 of file AliMUONRawStreamTrackerHP.h.

virtual Int_t AliMUONRawStreamTrackerHP::GetDDL ( ) const
inlinevirtual

Return number of the current DDL being processed in the range [0..19] or -1 if no DDL set.

Definition at line 98 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

AliMUONDDLTracker * AliMUONRawStreamTrackerHP::GetDDLTracker ( ) const
virtual

Construct and return a pointer to the DDL payload object.

Construct and return a pointer to the DDL payload object.

Returns
Pointer to internally constructed AliMUONDDLTracker object. The object is owned by this class and should not be deleted by the caller.
Note
This method should not be used just to gain access to the DDL payload, unless there is a good reason to have the AliMUONDDLTracker object. For example, if you want to modify the data and then save it to another DDL stream. Otherwise it can be an order of magnitude faster to access the DDL headers and data with the GetBlockHeader, GetDspHeader and GetBusPatch methods for example. Refer to the MUONRawStreamTracker.C macro to see how to use the fast decoder interface optimally.

Definition at line 377 of file AliMUONRawStreamTrackerHP.cxx.

UInt_t AliMUONRawStreamTrackerHP::GetDspCount ( UInt_t  block) const
inline

Returns the number of DSPs for the given block number.

Definition at line 481 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

const AliDspHeader* AliMUONRawStreamTrackerHP::GetDspHeader ( UInt_t  block,
UInt_t  i 
) const
inline

Returns the i'th DSP header for the given block number or NULL if not found.

Definition at line 488 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetBusPatch(), and GetBusPatchCount().

const AliBlockHeader* AliMUONRawStreamTrackerHP::GetFirstBlockHeader ( ) const
inline

Return the first block header.

Definition at line 469 of file AliMUONRawStreamTrackerHP.h.

Int_t AliMUONRawStreamTrackerHP::GetGlitchErrors ( ) const
inline

Get number of glitch errors in the DDL last decoded.

Definition at line 110 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

EDetailLevel AliMUONRawStreamTrackerHP::GetLoggingDetailLevel ( ) const
inline

Returns the level of detail used in the error messages.

Definition at line 560 of file AliMUONRawStreamTrackerHP.h.

virtual Int_t AliMUONRawStreamTrackerHP::GetMaxBlock ( ) const
inlinevirtual

Return maximum number of blocks per DDL allowed.

Definition at line 84 of file AliMUONRawStreamTrackerHP.h.

virtual Int_t AliMUONRawStreamTrackerHP::GetMaxBus ( ) const
inlinevirtual

Return maximum number of Buspatch per Dsp allowed.

Definition at line 88 of file AliMUONRawStreamTrackerHP.h.

Int_t AliMUONRawStreamTrackerHP::GetMaxDDL ( ) const
inlineprivate

Return max number of tracker DDLs.

Definition at line 598 of file AliMUONRawStreamTrackerHP.h.

Referenced by NextDDL().

virtual Int_t AliMUONRawStreamTrackerHP::GetMaxDsp ( ) const
inlinevirtual

Return maximum number of Dsp per block allowed.

Definition at line 86 of file AliMUONRawStreamTrackerHP.h.

const AliMUONLogger* AliMUONRawStreamTrackerHP::GetMUONErrorLogger ( ) const
inline

Returns the logger object. (constant version)

Definition at line 551 of file AliMUONRawStreamTrackerHP.h.

AliMUONLogger* AliMUONRawStreamTrackerHP::GetMUONErrorLogger ( )
inline

Returns the logger object.

Definition at line 554 of file AliMUONRawStreamTrackerHP.h.

Int_t AliMUONRawStreamTrackerHP::GetPaddingErrors ( ) const
inline

Get number of padding word errors in the DDL last decoded.

Definition at line 116 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

Int_t AliMUONRawStreamTrackerHP::GetParityErrors ( ) const
inline

Get number of parity errors in the DDL last decoded.

Definition at line 104 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

virtual AliRawReader* AliMUONRawStreamTrackerHP::GetReader ( )
inlinevirtual

Get object for reading the raw data.

Definition at line 51 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), and NextDDL().

Int_t AliMUONRawStreamTrackerHP::GetTokenLostErrors ( ) const
inline

Get number of token lost errors in the DDL last decoded.

Definition at line 122 of file AliMUONRawStreamTrackerHP.h.

Referenced by main().

Bool_t AliMUONRawStreamTrackerHP::HasGlitchError ( ) const
inline

Whether we got glitch errors or not.

Definition at line 578 of file AliMUONRawStreamTrackerHP.h.

Referenced by main(), and AliMUONTrackerDataMaker::ProcessEvent().

Bool_t AliMUONRawStreamTrackerHP::HasPaddingError ( ) const
inline

Whether we got padding errors or not.

Definition at line 581 of file AliMUONRawStreamTrackerHP.h.

Referenced by main(), and AliMUONTrackerDataMaker::ProcessEvent().

Bool_t AliMUONRawStreamTrackerHP::HasParityError ( ) const
inline

Whether we got parity errors or not.

Definition at line 584 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::HasTokenLostError ( ) const
inline

Whether we got token lost errors or not.

Definition at line 587 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::IsDone ( ) const
virtual

Whether the iteration is finished or not.

Indicates whether the iteration is finished or not.

Returns
kTRUE if we already read all the digits and kFALSE if not.

Definition at line 306 of file AliMUONRawStreamTrackerHP.cxx.

virtual Bool_t AliMUONRawStreamTrackerHP::IsErrorMessage ( ) const
inlinevirtual

check error/Warning presence

Definition at line 101 of file AliMUONRawStreamTrackerHP.h.

Referenced by main(), and AliMUONDigitMaker::ReadTrackerDDL().

Bool_t AliMUONRawStreamTrackerHP::IsMUONErrorLoggerEnabled ( ) const
inline

Check if the AliMUONLogger is enabled for error logging.

Definition at line 545 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::IsRawReaderErrorLoggerEnabled ( ) const
inline

Check if the AliMUONLogger is enabled for error logging.

Definition at line 548 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::IsWarningsEnabled ( ) const
inline

Returns the flag indicating if we should generate a warning for errors.

Definition at line 133 of file AliMUONRawStreamTrackerHP.h.

virtual Bool_t AliMUONRawStreamTrackerHP::Next ( Int_t &  busPatchId,
UShort_t &  manuId,
UChar_t &  manuChannel,
UShort_t &  adc 
)
inlinevirtual
Bool_t AliMUONRawStreamTrackerHP::Next ( Int_t &  busPatchId,
UShort_t &  manuId,
UChar_t &  manuChannel,
UShort_t &  adc,
Bool_t  skipParityErrors 
)
virtual

Advance one step in the iteration. Returns false if finished.

Advance one step in the iteration. Returns false if finished. [out]

Parameters
busPatchIdThis is filled with the bus patch ID of the digit. [out]
manuIdThis is filled with the MANU ID of the digit. [out]
manuChannelThis is filled with the MANU channel ID of the digit. [out]
adcThis is filled with the ADC signal value of the digit. [in]
skipParityErrorsIf this is kTRUE, we'll skip the buspatches that have some parity errors
Returns
kTRUE if we read another digit and kFALSE if we have read all the digits already, i.e. at the end of the iteration.

Definition at line 315 of file AliMUONRawStreamTrackerHP.cxx.

const AliMUONRawStreamTrackerHP::AliBusPatch * AliMUONRawStreamTrackerHP::Next ( )
inline

Returns the next batch of decoded channel data.

Returns the next batch of decoded channel data.

Definition at line 739 of file AliMUONRawStreamTrackerHP.h.

Referenced by Next().

Bool_t AliMUONRawStreamTrackerHP::NextDDL ( )
virtual

DDL iterator.

Reading the next tracker DDL and decode the payload with the high performance decoder.

Returns
kTRUE if the next DDL was successfully read and kFALSE otherwise.

Definition at line 188 of file AliMUONRawStreamTrackerHP.cxx.

Referenced by First(), main(), and Next().

UInt_t AliMUONRawStreamTrackerHP::NumberOfGlitchErrors ( ) const
inline

Number of glitch errors since First() was called.

Definition at line 566 of file AliMUONRawStreamTrackerHP.h.

Referenced by HasGlitchError().

UInt_t AliMUONRawStreamTrackerHP::NumberOfPaddingErrors ( ) const
inline

Number of padding errors since First() was called.

Definition at line 569 of file AliMUONRawStreamTrackerHP.h.

Referenced by HasPaddingError().

UInt_t AliMUONRawStreamTrackerHP::NumberOfParityErrors ( ) const
inline

Number of parity errors since First() was called.

Definition at line 572 of file AliMUONRawStreamTrackerHP.h.

Referenced by HasParityError().

UInt_t AliMUONRawStreamTrackerHP::NumberOfTokenLostErrors ( ) const
inline

Number of token lost errors since First() was called.

Definition at line 575 of file AliMUONRawStreamTrackerHP.h.

Referenced by HasTokenLostError().

AliMUONRawStreamTrackerHP& AliMUONRawStreamTrackerHP::operator= ( const AliMUONRawStreamTrackerHP stream)
private

Not implemented.

void AliMUONRawStreamTrackerHP::SetLoggingDetailLevel ( EDetailLevel  level)
inline

Sets the level of detail used in the error messages.

Definition at line 563 of file AliMUONRawStreamTrackerHP.h.

Referenced by main(), and AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONRawStreamTrackerHP::SetMaxBlock ( Int_t  blk)
virtual

Set maximum number of blocks per DDL allowed.

Set maximum number of blocks per DDL allowed.

Definition at line 433 of file AliMUONRawStreamTrackerHP.cxx.

void AliMUONRawStreamTrackerHP::SetMaxBus ( Int_t  bus)
virtual

Set maximum number of Buspatch per Dsp allowed.

Set maximum number of Buspatch per Dsp allowed.

Definition at line 459 of file AliMUONRawStreamTrackerHP.cxx.

void AliMUONRawStreamTrackerHP::SetMaxDsp ( Int_t  dsp)
virtual

Set maximum number of Dsp per block allowed.

Set maximum number of Dsp per block allowed.

Definition at line 446 of file AliMUONRawStreamTrackerHP.cxx.

void AliMUONRawStreamTrackerHP::SetMUONErrorLogger ( AliMUONLogger logger)
inline

Sets the logger object to use. Ownership of the logger object remains with the caller.

Definition at line 557 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONRawStreamTrackerHP::SetReader ( AliRawReader *  reader)
inline

Set the raw reader.

Definition at line 54 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONDigitMaker::ReadTrackerDDL().

void AliMUONRawStreamTrackerHP::Swap ( UInt_t *  buffer,
Int_t  size 
) const
privatevirtual

swap method for Power PC

< first byte word

< second byte word

< third byte word

< fourth byte word

Definition at line 663 of file AliMUONRawStreamTrackerHP.cxx.

Referenced by NextDDL().

Bool_t AliMUONRawStreamTrackerHP::TryRecover ( ) const
inline

Returns the "try to recover from errors" flag.

Definition at line 136 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONTrackerDataMaker::ProcessEvent(), and AliMUONDigitMaker::SetTryRecover().

void AliMUONRawStreamTrackerHP::TryRecover ( Bool_t  value)
inline

Sets the "try to recover from errors" flag. i.e. should the decoder try to recover from errors found in the payload headers.

Definition at line 141 of file AliMUONRawStreamTrackerHP.h.

Member Data Documentation

UChar_t* AliMUONRawStreamTrackerHP::fBuffer
private

! This is the buffer in which we store the DDL payload read from AliRawReader.

Definition at line 720 of file AliMUONRawStreamTrackerHP.h.

Referenced by NextDDL(), and ~AliMUONRawStreamTrackerHP().

Int_t AliMUONRawStreamTrackerHP::fBufferSize
private

! This is the buffer size in bytes of fBuffer.

Definition at line 719 of file AliMUONRawStreamTrackerHP.h.

Referenced by NextDDL().

Int_t AliMUONRawStreamTrackerHP::fDDL
private

! The current DDL number being handled.

Definition at line 718 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), GetDDL(), and NextDDL().

AliMUONDDLTracker* AliMUONRawStreamTrackerHP::fDDLObject
mutableprivate

! Temporary DDL object used by GetDDLTracker() for caching.

Definition at line 726 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetDDLTracker(), NextDDL(), and ~AliMUONRawStreamTrackerHP().

EDetailLevel AliMUONRawStreamTrackerHP::fDetailLevel
private

! The logging detail level used in the error messages generated in OnError.

Definition at line 713 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetLoggingDetailLevel(), and SetLoggingDetailLevel().

Bool_t AliMUONRawStreamTrackerHP::fDone
private

! Flag indicating if the iteration is done or not.

Definition at line 725 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), IsDone(), and NextDDL().

Bool_t AliMUONRawStreamTrackerHP::fEnableMUONErrorLogger
private

! whether or not we log errors to AliMUONLogger

Definition at line 714 of file AliMUONRawStreamTrackerHP.h.

Referenced by DisableMUONErrorLogger(), EnableMUONErrorLogger(), and IsMUONErrorLoggerEnabled().

Bool_t AliMUONRawStreamTrackerHP::fEnableRawReaderErrorLogger
private

! whether or not we log errors to the raw reader.

Definition at line 715 of file AliMUONRawStreamTrackerHP.h.

Referenced by DisableRawReaderErrorLogger(), EnableRawReaderErrorLogger(), and IsRawReaderErrorLoggerEnabled().

const Int_t AliMUONRawStreamTrackerHP::fgkMaxDDL = 20
staticprivate

! max number of tracker DDLs

Definition at line 732 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetMaxDDL().

Bool_t AliMUONRawStreamTrackerHP::fHadError
private

! Flag indicating if there was a decoding error or not.

Definition at line 724 of file AliMUONRawStreamTrackerHP.h.

Referenced by IsErrorMessage(), and NextDDL().

const AliBusPatch* AliMUONRawStreamTrackerHP::fkCurrentBusPatch
private

! The current bus patch being handled by Next().

Definition at line 721 of file AliMUONRawStreamTrackerHP.h.

Referenced by CurrentBusPatch(), Next(), and NextDDL().

const UInt_t* AliMUONRawStreamTrackerHP::fkCurrentData
private

! The current data word to return by Next().

Definition at line 722 of file AliMUONRawStreamTrackerHP.h.

Referenced by Next(), and NextDDL().

const UInt_t* AliMUONRawStreamTrackerHP::fkEndOfData
private

! The last data word in the current bus patch.

Definition at line 723 of file AliMUONRawStreamTrackerHP.h.

Referenced by Next(), and NextDDL().

AliMUONLogger* AliMUONRawStreamTrackerHP::fLogger
private

! Logger object to store error messages.

Definition at line 712 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetMUONErrorLogger(), and SetMUONErrorLogger().

AliRawReader* AliMUONRawStreamTrackerHP::fRawReader
private

! Pointer to the raw reader

Definition at line 711 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetReader(), and SetReader().

UInt_t AliMUONRawStreamTrackerHP::fTotalNumberOfGlitchErrors
private

! number of glitch errors since First() was called

Definition at line 727 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), NextDDL(), and NumberOfGlitchErrors().

UInt_t AliMUONRawStreamTrackerHP::fTotalNumberOfPaddingErrors
private

! number of padding errors since First() was called

Definition at line 729 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), NextDDL(), and NumberOfPaddingErrors().

UInt_t AliMUONRawStreamTrackerHP::fTotalNumberOfParityErrors
private

! number of parity errors since First() was called

Definition at line 728 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), NextDDL(), and NumberOfParityErrors().

UInt_t AliMUONRawStreamTrackerHP::fTotalNumberOfTokenLostErrors
private

! number of token lost errors since First() was called

Definition at line 730 of file AliMUONRawStreamTrackerHP.h.

Referenced by First(), NextDDL(), and NumberOfTokenLostErrors().

Bool_t AliMUONRawStreamTrackerHP::fWarnings
private

! Flag indicating if we should generate a warning for errors.

Definition at line 716 of file AliMUONRawStreamTrackerHP.h.

Referenced by DisableWarnings(), EnableWarnings(), and IsWarningsEnabled().


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