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

Light weight interface class to the bus patch data. More...

#include <AliMUONRawStreamTrackerHP.h>

Public Member Functions

 AliBusPatch (const AliDspHeader *dsp=NULL, const AliMUONBusPatchHeaderStruct *header=NULL, const UInt_t *data=NULL, const Bool_t *parityOk=NULL)
 Default constructor. More...
 
 AliBusPatch (const AliBusPatch &o)
 Implement shallow copying in the copy constructor. More...
 
AliBusPatchoperator= (const AliBusPatch &object)
 Implement shallow copying in the assignment operator. More...
 
 ~AliBusPatch ()
 Default destructor. More...
 
Int_t GetDataKey () const
 Return Data key word for bus patch header. More...
 
Int_t GetTotalLength () const
 Return total length of buspatch structure. More...
 
Int_t GetLength () const
 Return length of raw data. More...
 
Int_t GetBusPatchId () const
 Return bus patch id. More...
 
const AliMUONBusPatchHeaderStructGetHeader () const
 Return raw data of header. More...
 
const UInt_t * GetData () const
 Return raw digit data. More...
 
UInt_t GetDataCount () const
 Returns the number of raw data words within this bus patch. More...
 
Char_t GetParity (UInt_t n) const
 Returns the parity bit of the n'th raw data word. More...
 
UShort_t GetManuId (UInt_t n) const
 Returns the MANU ID of the n'th raw data word. More...
 
UChar_t GetChannelId (UInt_t n) const
 Returns the channel ID of the n'th raw data word. More...
 
UShort_t GetCharge (UInt_t n) const
 Returns the charge/signal of the n'th raw data word. More...
 
UInt_t GetData (UInt_t n) const
 Returns the n'th raw data word. More...
 
Bool_t IsParityOk (UInt_t n) const
 
Bool_t GetData (UInt_t n, UShort_t &manuId, UChar_t &channelId, UShort_t &adc) const
 
const AliDspHeaderGetDspHeader () const
 Return the parent block header. More...
 
const AliBusPatchNext () const
 Return the next bus patch header. More...
 
void SetNext (const AliBusPatch *next)
 Sets the next bus patch. More...
 
void Print (const Option_t *opt="") const
 Print the contents of the bus patch to screen. More...
 

Private Attributes

const AliDspHeaderfDSP
 The DSP this bus patch belongs to. More...
 
const AliBusPatchfNext
 Next bus patch object in the DSP. More...
 
const AliMUONBusPatchHeaderStructfHeader
 Pointer to bus patch in DDL payload. More...
 
const UInt_t * fData
 Pointer to the bus patch data. More...
 
const Bool_t * fParityOk
 Array of flags indicating if the parity of the given data word in fData is good or not. More...
 

Detailed Description

Light weight interface class to the bus patch data.

Definition at line 335 of file AliMUONRawStreamTrackerHP.h.

Constructor & Destructor Documentation

AliMUONRawStreamTrackerHP::AliBusPatch::AliBusPatch ( const AliDspHeader dsp = NULL,
const AliMUONBusPatchHeaderStruct header = NULL,
const UInt_t *  data = NULL,
const Bool_t *  parityOk = NULL 
)
inline

Default constructor.

Definition at line 339 of file AliMUONRawStreamTrackerHP.h.

AliMUONRawStreamTrackerHP::AliBusPatch::AliBusPatch ( const AliBusPatch o)
inline

Implement shallow copying in the copy constructor.

Definition at line 354 of file AliMUONRawStreamTrackerHP.h.

AliMUONRawStreamTrackerHP::AliBusPatch::~AliBusPatch ( )
inline

Default destructor.

Definition at line 371 of file AliMUONRawStreamTrackerHP.h.

Member Function Documentation

Int_t AliMUONRawStreamTrackerHP::AliBusPatch::GetBusPatchId ( ) const
inline
UChar_t AliMUONRawStreamTrackerHP::AliBusPatch::GetChannelId ( UInt_t  n) const
inline

Returns the channel ID of the n'th raw data word.

Definition at line 404 of file AliMUONRawStreamTrackerHP.h.

Referenced by MUONRawStreamTrackerExpert(), MUONRawStreamTrackerExpert2(), and MUONRawStreamTrackerExpert3().

UShort_t AliMUONRawStreamTrackerHP::AliBusPatch::GetCharge ( UInt_t  n) const
inline

Returns the charge/signal of the n'th raw data word.

Definition at line 411 of file AliMUONRawStreamTrackerHP.h.

Referenced by MUONRawStreamTrackerExpert(), MUONRawStreamTrackerExpert2(), and MUONRawStreamTrackerExpert3().

const UInt_t* AliMUONRawStreamTrackerHP::AliBusPatch::GetData ( ) const
inline
UInt_t AliMUONRawStreamTrackerHP::AliBusPatch::GetData ( UInt_t  n) const
inline

Returns the n'th raw data word.

Definition at line 418 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::AliBusPatch::GetData ( UInt_t  n,
UShort_t &  manuId,
UChar_t &  channelId,
UShort_t &  adc 
) const
inline

Unpacks and returns the fields of the n'th raw data word. kTRUE is returned if the data word's parity was OK and kFALSE otherwise.

Definition at line 434 of file AliMUONRawStreamTrackerHP.h.

UInt_t AliMUONRawStreamTrackerHP::AliBusPatch::GetDataCount ( ) const
inline
Int_t AliMUONRawStreamTrackerHP::AliBusPatch::GetDataKey ( ) const
inline

Return Data key word for bus patch header.

Definition at line 374 of file AliMUONRawStreamTrackerHP.h.

const AliDspHeader* AliMUONRawStreamTrackerHP::AliBusPatch::GetDspHeader ( ) const
inline

Return the parent block header.

Definition at line 442 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONRawStreamTrackerHP::CurrentDspHeader().

const AliMUONBusPatchHeaderStruct* AliMUONRawStreamTrackerHP::AliBusPatch::GetHeader ( ) const
inline

Return raw data of header.

Definition at line 383 of file AliMUONRawStreamTrackerHP.h.

Referenced by AliMUONRawStreamTrackerHP::GetDDLTracker().

Int_t AliMUONRawStreamTrackerHP::AliBusPatch::GetLength ( ) const
inline
UShort_t AliMUONRawStreamTrackerHP::AliBusPatch::GetManuId ( UInt_t  n) const
inline

Returns the MANU ID of the n'th raw data word.

Definition at line 397 of file AliMUONRawStreamTrackerHP.h.

Referenced by MUONRawStreamTrackerExpert(), MUONRawStreamTrackerExpert2(), and MUONRawStreamTrackerExpert3().

Char_t AliMUONRawStreamTrackerHP::AliBusPatch::GetParity ( UInt_t  n) const
inline

Returns the parity bit of the n'th raw data word.

Definition at line 390 of file AliMUONRawStreamTrackerHP.h.

Int_t AliMUONRawStreamTrackerHP::AliBusPatch::GetTotalLength ( ) const
inline

Return total length of buspatch structure.

Definition at line 376 of file AliMUONRawStreamTrackerHP.h.

Bool_t AliMUONRawStreamTrackerHP::AliBusPatch::IsParityOk ( UInt_t  n) const
inline

Returns kTRUE if the parity of the n'th raw data word is OK and kFALSE otherwise.

Definition at line 426 of file AliMUONRawStreamTrackerHP.h.

Referenced by main(), and AliMUONRawStreamTrackerHP::Next().

const AliBusPatch* AliMUONRawStreamTrackerHP::AliBusPatch::Next ( ) const
inline
AliBusPatch& AliMUONRawStreamTrackerHP::AliBusPatch::operator= ( const AliBusPatch object)
inline

Implement shallow copying in the assignment operator.

Definition at line 364 of file AliMUONRawStreamTrackerHP.h.

void AliMUONRawStreamTrackerHP::AliBusPatch::Print ( const Option_t *  opt = "") const

Print the contents of the bus patch to screen.

Print header to screen.

Definition at line 517 of file AliMUONRawStreamTrackerHP.cxx.

void AliMUONRawStreamTrackerHP::AliBusPatch::SetNext ( const AliBusPatch next)
inline

Sets the next bus patch.

Definition at line 448 of file AliMUONRawStreamTrackerHP.h.

Member Data Documentation

const UInt_t* AliMUONRawStreamTrackerHP::AliBusPatch::fData
private

Pointer to the bus patch data.

Definition at line 458 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetChannelId(), GetCharge(), GetData(), GetManuId(), and GetParity().

const AliDspHeader* AliMUONRawStreamTrackerHP::AliBusPatch::fDSP
private

The DSP this bus patch belongs to.

Definition at line 455 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetDspHeader().

const AliMUONBusPatchHeaderStruct* AliMUONRawStreamTrackerHP::AliBusPatch::fHeader
private
const AliBusPatch* AliMUONRawStreamTrackerHP::AliBusPatch::fNext
private

Next bus patch object in the DSP.

Definition at line 456 of file AliMUONRawStreamTrackerHP.h.

Referenced by Next(), and SetNext().

const Bool_t* AliMUONRawStreamTrackerHP::AliBusPatch::fParityOk
private

Array of flags indicating if the parity of the given data word in fData is good or not.

Definition at line 459 of file AliMUONRawStreamTrackerHP.h.

Referenced by GetData(), and IsParityOk().


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