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

Class for reading MUON raw digits. More...

#include <AliMUONRawStreamTracker.h>

Inheritance diagram for AliMUONRawStreamTracker:

Public Types

enum  rawStreamTrackerError { kGlitchErr = 1, kPaddingWordErr = 2, kParityErr = 3 }
 error numbers More...
 
- Public Types inherited from AliMUONVRawStreamTracker
enum  rawStreamTrackerError { kGlitchErr = 1, kPaddingWordErr = 2, kParityErr = 3 }
 error numbers More...
 

Public Member Functions

 AliMUONRawStreamTracker ()
 
 AliMUONRawStreamTracker (TRootIOCtor *dummy)
 
 AliMUONRawStreamTracker (AliRawReader *rawReader)
 
virtual ~AliMUONRawStreamTracker ()
 
void First ()
 Initialize iterator. More...
 
AliMUONDDLTrackerCurrentDDL () const
 Returns current DDL object during iteration. More...
 
AliMUONBlockHeaderCurrentBlockHeader () const
 Returns current BlockHeader object during iteration. More...
 
AliMUONDspHeaderCurrentDspHeader () const
 Returns current DspHeader object during iteration. More...
 
AliMUONBusStructCurrentBusStruct () const
 Returns current BusStruct object during iteration. 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 NextDDL ()
 DDL iterator. More...
 
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)
 Set maximum number of blocks per DDL allowed. More...
 
void SetMaxDsp (Int_t dsp)
 
void SetMaxBus (Int_t bus)
 
AliMUONDDLTrackerGetDDLTracker () const
 Return pointer for DDL. More...
 
Int_t GetDDL () const
 Return number of DDL. More...
 
Int_t GetCurentDDL () const
 Return current DDL index. More...
 
AliMUONPayloadTrackerGetPayLoad () const
 Return pointer for payload. More...
 
Bool_t IsDone () const
 Whether the iteration is finished or not. More...
 
void AddErrorMessage ()
 add error message into error logger More...
 
void DisableWarnings ()
 Disable Warnings. More...
 
Bool_t IsErrorMessage () const
 check error/Warning presence More...
 
- Public Member Functions inherited from AliMUONVRawStreamTracker
 AliMUONVRawStreamTracker ()
 Default constructor. More...
 
 AliMUONVRawStreamTracker (AliRawReader *rawReader)
 Constructor setting the raw reader. More...
 
virtual ~AliMUONVRawStreamTracker ()
 Default destructor. More...
 
- Public Member Functions inherited from AliMUONRawStream
 AliMUONRawStream ()
 
 AliMUONRawStream (AliRawReader *rawReader)
 
virtual ~AliMUONRawStream ()
 
virtual void SetReader (AliRawReader *rawReader)
 Set object for reading the raw data. More...
 
virtual AliRawReader * GetReader ()
 Get object for reading the raw data. More...
 
virtual void EnabbleErrorLogger ()
 Enable error info logger. More...
 
virtual Bool_t IsErrorLogger () const
 Check if error info logger enable. More...
 
virtual void Swap (UInt_t *buffer, Int_t size) const
 swap method for Power PC More...
 

Private Member Functions

 AliMUONRawStreamTracker (const AliMUONRawStreamTracker &stream)
 Not implemented. More...
 
AliMUONRawStreamTrackeroperator= (const AliMUONRawStreamTracker &stream)
 Not implemented. More...
 
Bool_t GetNextDDL ()
 
Bool_t GetNextBlockHeader ()
 
Bool_t GetNextDspHeader ()
 
Bool_t GetNextBusStruct ()
 

Private Attributes

AliMUONPayloadTrackerfPayload
 pointer to payload decoder More...
 
AliMUONDDLTrackerfCurrentDDL
 ! for iterator: current ddl ptr More...
 
Int_t fCurrentDDLIndex
 ! for iterator: current ddl index More...
 
AliMUONBlockHeaderfCurrentBlockHeader
 ! for iterator: current block ptr More...
 
Int_t fCurrentBlockHeaderIndex
 ! for iterator: current block index More...
 
AliMUONDspHeaderfCurrentDspHeader
 ! for iterator: current dsp ptr More...
 
Int_t fCurrentDspHeaderIndex
 ! for iterator: current dsp index More...
 
AliMUONBusStructfCurrentBusStruct
 ! for iterator: current bus ptr More...
 
Int_t fCurrentBusStructIndex
 ! for iterator: current bus index More...
 
Int_t fCurrentDataIndex
 ! for iterator: current data index More...
 
Int_t fDDL
 ! number of DDL More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVRawStreamTracker
static Int_t GetMaxDDL ()
 Return maximum number of DDLs. More...
 
- Static Protected Attributes inherited from AliMUONVRawStreamTracker
static const Int_t fgkMaxDDL = 20
 ! maximum number of DDLs More...
 

Detailed Description

Class for reading MUON raw digits.

This class provides access to MUON digits in raw data.

It loops over all MUON digits in the raw data given by the AliRawReader. The Next method goes to the next digit. If there are no digits left it returns kFALSE It can loop also over DDL and store the decoded rawdata in TClonesArray in Payload class.

Implement for Tracker

Author
Christian Finck & Laurent Aphecetche

Definition at line 24 of file AliMUONRawStreamTracker.h.

Member Enumeration Documentation

error numbers

Enumerator
kGlitchErr 

glitch error

kPaddingWordErr 

padding word error

kParityErr 

parity error

Definition at line 95 of file AliMUONRawStreamTracker.h.

Constructor & Destructor Documentation

AliMUONRawStreamTracker::AliMUONRawStreamTracker ( )

create an object to read MUON raw digits Default ctor for monitoring purposes

Definition at line 75 of file AliMUONRawStreamTracker.cxx.

AliMUONRawStreamTracker::AliMUONRawStreamTracker ( TRootIOCtor *  dummy)

create an object to read MUON raw digits Default ctor with no memory allocation for I/O

Definition at line 54 of file AliMUONRawStreamTracker.cxx.

AliMUONRawStreamTracker::AliMUONRawStreamTracker ( AliRawReader *  rawReader)

ctor with AliRawReader as argument for reconstruction purpose

Definition at line 98 of file AliMUONRawStreamTracker.cxx.

AliMUONRawStreamTracker::~AliMUONRawStreamTracker ( )
virtual

clean up

Definition at line 121 of file AliMUONRawStreamTracker.cxx.

AliMUONRawStreamTracker::AliMUONRawStreamTracker ( const AliMUONRawStreamTracker stream)
private

Not implemented.

Member Function Documentation

void AliMUONRawStreamTracker::AddErrorMessage ( )
virtual

add error message into error logger

add message into logger of AliRawReader per event

Implements AliMUONRawStream.

Definition at line 434 of file AliMUONRawStreamTracker.cxx.

Referenced by GetNextDDL(), and NextDDL().

AliMUONBlockHeader* AliMUONRawStreamTracker::CurrentBlockHeader ( ) const
inline

Returns current BlockHeader object during iteration.

Definition at line 38 of file AliMUONRawStreamTracker.h.

AliMUONBusStruct* AliMUONRawStreamTracker::CurrentBusStruct ( ) const
inline

Returns current BusStruct object during iteration.

Definition at line 44 of file AliMUONRawStreamTracker.h.

AliMUONDDLTracker* AliMUONRawStreamTracker::CurrentDDL ( ) const
inline

Returns current DDL object during iteration.

Definition at line 35 of file AliMUONRawStreamTracker.h.

AliMUONDspHeader* AliMUONRawStreamTracker::CurrentDspHeader ( ) const
inline

Returns current DspHeader object during iteration.

Definition at line 41 of file AliMUONRawStreamTracker.h.

void AliMUONRawStreamTracker::DisableWarnings ( )
inline

Disable Warnings.

Definition at line 89 of file AliMUONRawStreamTracker.h.

void AliMUONRawStreamTracker::First ( )
virtual

Initialize iterator.

Initialize the iteration process.

Reimplemented from AliMUONRawStream.

Definition at line 173 of file AliMUONRawStreamTracker.cxx.

Int_t AliMUONRawStreamTracker::GetCurentDDL ( ) const
inline

Return current DDL index.

Definition at line 77 of file AliMUONRawStreamTracker.h.

Int_t AliMUONRawStreamTracker::GetDDL ( ) const
inlinevirtual

Return number of DDL.

Implements AliMUONVRawStreamTracker.

Definition at line 74 of file AliMUONRawStreamTracker.h.

AliMUONDDLTracker* AliMUONRawStreamTracker::GetDDLTracker ( ) const
inlinevirtual

Return pointer for DDL.

Implements AliMUONVRawStreamTracker.

Definition at line 71 of file AliMUONRawStreamTracker.h.

Int_t AliMUONRawStreamTracker::GetMaxBlock ( ) const
inlinevirtual

Return maximum number of block per DDL in DATE file.

Implements AliMUONVRawStreamTracker.

Definition at line 54 of file AliMUONRawStreamTracker.h.

Int_t AliMUONRawStreamTracker::GetMaxBus ( ) const
inlinevirtual

Return maximum number of Buspatch per Dsp in DATE file.

Implements AliMUONVRawStreamTracker.

Definition at line 58 of file AliMUONRawStreamTracker.h.

Int_t AliMUONRawStreamTracker::GetMaxDsp ( ) const
inlinevirtual

Return maximum number of Dsp per block in DATE file.

Implements AliMUONVRawStreamTracker.

Definition at line 56 of file AliMUONRawStreamTracker.h.

Bool_t AliMUONRawStreamTracker::GetNextBlockHeader ( )
private

Returns the next block Header present

Definition at line 264 of file AliMUONRawStreamTracker.cxx.

Referenced by First(), and GetNextDspHeader().

Bool_t AliMUONRawStreamTracker::GetNextBusStruct ( )
private

Find the next non-empty busPatch structure

Definition at line 340 of file AliMUONRawStreamTracker.cxx.

Referenced by First(), and Next().

Bool_t AliMUONRawStreamTracker::GetNextDDL ( )
private

Returns the next DDL present

Definition at line 199 of file AliMUONRawStreamTracker.cxx.

Referenced by First(), and GetNextBlockHeader().

Bool_t AliMUONRawStreamTracker::GetNextDspHeader ( )
private

Returns the next Dsp Header present

Definition at line 302 of file AliMUONRawStreamTracker.cxx.

Referenced by First(), and GetNextBusStruct().

AliMUONPayloadTracker* AliMUONRawStreamTracker::GetPayLoad ( ) const
inline

Return pointer for payload.

Definition at line 80 of file AliMUONRawStreamTracker.h.

Referenced by IsErrorMessage().

Bool_t AliMUONRawStreamTracker::IsDone ( ) const
virtual

Whether the iteration is finished or not.

Whether the iteration is finished or not

Reimplemented from AliMUONRawStream.

Definition at line 165 of file AliMUONRawStreamTracker.cxx.

Referenced by Next().

Bool_t AliMUONRawStreamTracker::IsErrorMessage ( ) const
virtual

check error/Warning presence

true if there is any error/warning

Implements AliMUONVRawStreamTracker.

Definition at line 460 of file AliMUONRawStreamTracker.cxx.

Bool_t AliMUONRawStreamTracker::Next ( Int_t &  busPatchId,
UShort_t &  manuId,
UChar_t &  manuChannel,
UShort_t &  adc 
)
virtual

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

read the next raw digit (buspatch structure) returns kFALSE if there is no digit left Should call First() before this method to start the iteration.

Implements AliMUONVRawStreamTracker.

Definition at line 131 of file AliMUONRawStreamTracker.cxx.

Bool_t AliMUONRawStreamTracker::NextDDL ( )
virtual

DDL iterator.

reading tracker DDL

Implements AliMUONRawStream.

Definition at line 377 of file AliMUONRawStreamTracker.cxx.

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

Not implemented.

void AliMUONRawStreamTracker::SetMaxBlock ( Int_t  blk)
virtual

Set maximum number of blocks per DDL allowed.

set regional card number

Implements AliMUONVRawStreamTracker.

Definition at line 427 of file AliMUONRawStreamTracker.cxx.

void AliMUONRawStreamTracker::SetMaxBus ( Int_t  bus)
inlinevirtual

Set maximum number of Buspatch per Dsp in DATE file does not check, done via BusPatchManager

Implements AliMUONVRawStreamTracker.

Definition at line 68 of file AliMUONRawStreamTracker.h.

void AliMUONRawStreamTracker::SetMaxDsp ( Int_t  dsp)
inlinevirtual

Set maximum number of Dsp per block in DATE file does not check, done via BusPatchManager

Implements AliMUONVRawStreamTracker.

Definition at line 65 of file AliMUONRawStreamTracker.h.

Member Data Documentation

AliMUONBlockHeader* AliMUONRawStreamTracker::fCurrentBlockHeader
private

! for iterator: current block ptr

Definition at line 118 of file AliMUONRawStreamTracker.h.

Referenced by CurrentBlockHeader(), First(), GetNextBlockHeader(), and GetNextDspHeader().

Int_t AliMUONRawStreamTracker::fCurrentBlockHeaderIndex
private

! for iterator: current block index

Definition at line 119 of file AliMUONRawStreamTracker.h.

Referenced by GetNextBlockHeader(), and GetNextDDL().

AliMUONBusStruct* AliMUONRawStreamTracker::fCurrentBusStruct
private

! for iterator: current bus ptr

Definition at line 122 of file AliMUONRawStreamTracker.h.

Referenced by CurrentBusStruct(), First(), GetNextBusStruct(), IsDone(), and Next().

Int_t AliMUONRawStreamTracker::fCurrentBusStructIndex
private

! for iterator: current bus index

Definition at line 123 of file AliMUONRawStreamTracker.h.

Referenced by GetNextBusStruct(), and GetNextDspHeader().

Int_t AliMUONRawStreamTracker::fCurrentDataIndex
private

! for iterator: current data index

Definition at line 124 of file AliMUONRawStreamTracker.h.

Referenced by GetNextBusStruct(), and Next().

AliMUONDDLTracker* AliMUONRawStreamTracker::fCurrentDDL
private

! for iterator: current ddl ptr

Definition at line 116 of file AliMUONRawStreamTracker.h.

Referenced by CurrentDDL(), First(), GetNextBlockHeader(), and GetNextDDL().

Int_t AliMUONRawStreamTracker::fCurrentDDLIndex
private

! for iterator: current ddl index

Definition at line 117 of file AliMUONRawStreamTracker.h.

Referenced by First(), GetCurentDDL(), and GetNextDDL().

AliMUONDspHeader* AliMUONRawStreamTracker::fCurrentDspHeader
private

! for iterator: current dsp ptr

Definition at line 120 of file AliMUONRawStreamTracker.h.

Referenced by CurrentDspHeader(), First(), GetNextBusStruct(), and GetNextDspHeader().

Int_t AliMUONRawStreamTracker::fCurrentDspHeaderIndex
private

! for iterator: current dsp index

Definition at line 121 of file AliMUONRawStreamTracker.h.

Referenced by GetNextBlockHeader(), and GetNextDspHeader().

Int_t AliMUONRawStreamTracker::fDDL
private

! number of DDL

Definition at line 125 of file AliMUONRawStreamTracker.h.

Referenced by GetDDL(), and NextDDL().


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