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

Class for reading MUON raw digits. More...

#include <AliMUONRawStreamTrigger.h>

Inheritance diagram for AliMUONRawStreamTrigger:

Public Types

enum  rawStreamTriggerError { kDarcEoWErr = 6, kGlobalEoWErr = 7, kRegEoWErr = 8, kLocalEoWErr = 9 }
 error numbers More...
 
- Public Types inherited from AliMUONVRawStreamTrigger
enum  rawStreamTriggerError { kDarcEoWErr = 6, kGlobalEoWErr = 7, kRegEoWErr = 8, kLocalEoWErr = 9 }
 error numbers More...
 

Public Member Functions

 AliMUONRawStreamTrigger ()
 
 AliMUONRawStreamTrigger (TRootIOCtor *dummy)
 
 AliMUONRawStreamTrigger (AliRawReader *rawReader)
 
virtual ~AliMUONRawStreamTrigger ()
 
void First ()
 Initialize iterator. More...
 
AliMUONDDLTriggerCurrentDDL () const
 Returns current DDL object during iteration. More...
 
AliMUONDarcHeaderCurrentDarcHeader () const
 Returns current DarcHeader object during iteration. More...
 
AliMUONRegHeaderCurrentRegHeader () const
 Returns current RegHeader object during iteration. More...
 
AliMUONLocalStructCurrentLocalStruct () const
 Returns current LocalStruct object during iteration. More...
 
virtual Bool_t Next (UChar_t &id, UChar_t &dec, Bool_t &trigY, UChar_t &yPos, UChar_t &sXDev, UChar_t &xDev, UChar_t &xPos, Bool_t &triggerY, Bool_t &triggerX, TArrayS &xPattern, TArrayS &yPattern)
 Advance one step in the iteration. Returns false if finished. More...
 
virtual Bool_t NextDDL ()
 DDL iterator. More...
 
Int_t GetMaxDDL () const
 Return maximum number of DDLs. More...
 
Int_t GetMaxReg () const
 Return maximum number of regional cards in DATE file. More...
 
Int_t GetMaxLoc () const
 Return maximum number of local cards in DATE file. More...
 
void SetMaxLoc (Int_t loc)
 Should set the maximum number of local cards expected in the DDL stream. More...
 
AliMUONDDLTriggerGetDDLTrigger () const
 Return pointer for DDL structure. More...
 
Int_t GetDDL () const
 Return number of DDL. More...
 
AliMUONPayloadTriggerGetPayLoad () 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...
 
- Public Member Functions inherited from AliMUONVRawStreamTrigger
 AliMUONVRawStreamTrigger ()
 
 AliMUONVRawStreamTrigger (AliRawReader *rawReader)
 
virtual ~AliMUONVRawStreamTrigger ()
 
- 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

 AliMUONRawStreamTrigger (const AliMUONRawStreamTrigger &stream)
 Not implemented. More...
 
AliMUONRawStreamTriggeroperator= (const AliMUONRawStreamTrigger &stream)
 Not implemented. More...
 
Bool_t GetNextDDL ()
 
Bool_t GetNextRegHeader ()
 
Bool_t GetNextLocalStruct ()
 

Private Attributes

AliMUONPayloadTriggerfPayload
 pointer to payload decoder More...
 
AliMUONDDLTriggerfCurrentDDL
 ! for iterator: current ddl ptr More...
 
Int_t fCurrentDDLIndex
 ! for iterator: current ddl index More...
 
AliMUONDarcHeaderfCurrentDarcHeader
 ! for iterator: current darc ptr More...
 
AliMUONRegHeaderfCurrentRegHeader
 ! for iterator: current reg ptr More...
 
Int_t fCurrentRegHeaderIndex
 ! for iterator: current reg index More...
 
AliMUONLocalStructfCurrentLocalStruct
 ! for iterator: current local ptr More...
 
Int_t fCurrentLocalStructIndex
 ! for iterator: current local index More...
 
Bool_t fLocalStructRead
 ! flag for read out local structure More...
 
Int_t fDDL
 ! number of DDL More...
 
Bool_t fNextDDL
 flag for next DDL to be read More...
 

Static Private Attributes

static const Int_t fgkMaxDDL = 2
 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 local response. If there are no local response left it returns kFALSE. It can loop also over DDL and store the decoded rawdata in TClonesArrays in payload class.

Version implement for Trigger

Author
Christian Finck

Definition at line 25 of file AliMUONRawStreamTrigger.h.

Member Enumeration Documentation

error numbers

Enumerator
kDarcEoWErr 

end of Darc word error

kGlobalEoWErr 

end of Global word error

kRegEoWErr 

end of Regional word error

kLocalEoWErr 

end of local word error

Definition at line 85 of file AliMUONRawStreamTrigger.h.

Constructor & Destructor Documentation

AliMUONRawStreamTrigger::AliMUONRawStreamTrigger ( )

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

Definition at line 77 of file AliMUONRawStreamTrigger.cxx.

AliMUONRawStreamTrigger::AliMUONRawStreamTrigger ( TRootIOCtor *  dummy)

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

Definition at line 56 of file AliMUONRawStreamTrigger.cxx.

AliMUONRawStreamTrigger::AliMUONRawStreamTrigger ( AliRawReader *  rawReader)

ctor with AliRawReader as argument for reconstruction purpose

Definition at line 100 of file AliMUONRawStreamTrigger.cxx.

AliMUONRawStreamTrigger::~AliMUONRawStreamTrigger ( )
virtual

clean up

Definition at line 122 of file AliMUONRawStreamTrigger.cxx.

AliMUONRawStreamTrigger::AliMUONRawStreamTrigger ( const AliMUONRawStreamTrigger stream)
private

Not implemented.

Member Function Documentation

void AliMUONRawStreamTrigger::AddErrorMessage ( )
virtual

add error message into error logger

add message into logger of AliRawReader per event

Implements AliMUONRawStream.

Definition at line 435 of file AliMUONRawStreamTrigger.cxx.

Referenced by GetNextDDL(), and NextDDL().

AliMUONDarcHeader* AliMUONRawStreamTrigger::CurrentDarcHeader ( ) const
inline

Returns current DarcHeader object during iteration.

Definition at line 39 of file AliMUONRawStreamTrigger.h.

AliMUONDDLTrigger* AliMUONRawStreamTrigger::CurrentDDL ( ) const
inline

Returns current DDL object during iteration.

Definition at line 36 of file AliMUONRawStreamTrigger.h.

AliMUONLocalStruct* AliMUONRawStreamTrigger::CurrentLocalStruct ( ) const
inline

Returns current LocalStruct object during iteration.

Definition at line 45 of file AliMUONRawStreamTrigger.h.

AliMUONRegHeader* AliMUONRawStreamTrigger::CurrentRegHeader ( ) const
inline

Returns current RegHeader object during iteration.

Definition at line 42 of file AliMUONRawStreamTrigger.h.

void AliMUONRawStreamTrigger::DisableWarnings ( )
inlinevirtual

Disable Warnings.

Implements AliMUONVRawStreamTrigger.

Definition at line 82 of file AliMUONRawStreamTrigger.h.

void AliMUONRawStreamTrigger::First ( )
virtual

Initialize iterator.

Initialize the iteration process.

Reimplemented from AliMUONRawStream.

Definition at line 181 of file AliMUONRawStreamTrigger.cxx.

Referenced by MUONRawStreamTriggerSimple(), and TimeUsingOldDecoder().

Int_t AliMUONRawStreamTrigger::GetDDL ( ) const
inlinevirtual

Return number of DDL.

Implements AliMUONVRawStreamTrigger.

Definition at line 70 of file AliMUONRawStreamTrigger.h.

Referenced by MUONRawStreamTrigger().

AliMUONDDLTrigger* AliMUONRawStreamTrigger::GetDDLTrigger ( ) const
inlinevirtual

Return pointer for DDL structure.

Implements AliMUONVRawStreamTrigger.

Definition at line 67 of file AliMUONRawStreamTrigger.h.

Referenced by MUONRawStreamTrigger().

Int_t AliMUONRawStreamTrigger::GetMaxDDL ( ) const
inlinevirtual

Return maximum number of DDLs.

Implements AliMUONVRawStreamTrigger.

Definition at line 57 of file AliMUONRawStreamTrigger.h.

Int_t AliMUONRawStreamTrigger::GetMaxLoc ( ) const
inlinevirtual

Return maximum number of local cards in DATE file.

Implements AliMUONVRawStreamTrigger.

Definition at line 61 of file AliMUONRawStreamTrigger.h.

Int_t AliMUONRawStreamTrigger::GetMaxReg ( ) const
inlinevirtual

Return maximum number of regional cards in DATE file.

Implements AliMUONVRawStreamTrigger.

Definition at line 59 of file AliMUONRawStreamTrigger.h.

Bool_t AliMUONRawStreamTrigger::GetNextDDL ( )
private

Returns the next DDL present

Definition at line 202 of file AliMUONRawStreamTrigger.cxx.

Referenced by First(), and GetNextRegHeader().

Bool_t AliMUONRawStreamTrigger::GetNextLocalStruct ( )
private

Find the next non-empty local structure

Definition at line 322 of file AliMUONRawStreamTrigger.cxx.

Referenced by First(), and Next().

Bool_t AliMUONRawStreamTrigger::GetNextRegHeader ( )
private

Returns the next Reg Header present

Definition at line 284 of file AliMUONRawStreamTrigger.cxx.

Referenced by First(), and GetNextLocalStruct().

AliMUONPayloadTrigger* AliMUONRawStreamTrigger::GetPayLoad ( ) const
inline

Return pointer for payload.

Definition at line 73 of file AliMUONRawStreamTrigger.h.

Bool_t AliMUONRawStreamTrigger::IsDone ( ) const
virtual

Whether the iteration is finished or not.

Whether the iteration is finished or not

Reimplemented from AliMUONRawStream.

Definition at line 174 of file AliMUONRawStreamTrigger.cxx.

Referenced by Next().

Bool_t AliMUONRawStreamTrigger::Next ( UChar_t &  id,
UChar_t &  dec,
Bool_t &  trigY,
UChar_t &  yPos,
UChar_t &  sXDev,
UChar_t &  xDev,
UChar_t &  xPos,
Bool_t &  triggerY,
Bool_t &  triggerX,
TArrayS &  xPattern,
TArrayS &  yPattern 
)
virtual

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

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

Implements AliMUONVRawStreamTrigger.

Definition at line 131 of file AliMUONRawStreamTrigger.cxx.

Referenced by MUONRawStreamTriggerSimple(), and TimeUsingOldDecoder().

Bool_t AliMUONRawStreamTrigger::NextDDL ( )
virtual

DDL iterator.

reading tracker DDL store local info into Array store only non-empty structures

Implements AliMUONRawStream.

Definition at line 359 of file AliMUONRawStreamTrigger.cxx.

Referenced by MUONRawStreamTrigger().

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

Not implemented.

void AliMUONRawStreamTrigger::SetMaxLoc ( Int_t  loc)
virtual

Should set the maximum number of local cards expected in the DDL stream.

set local card number

Implements AliMUONVRawStreamTrigger.

Definition at line 428 of file AliMUONRawStreamTrigger.cxx.

Member Data Documentation

AliMUONDarcHeader* AliMUONRawStreamTrigger::fCurrentDarcHeader
private

! for iterator: current darc ptr

Definition at line 108 of file AliMUONRawStreamTrigger.h.

Referenced by CurrentDarcHeader(), First(), GetNextDDL(), and GetNextRegHeader().

AliMUONDDLTrigger* AliMUONRawStreamTrigger::fCurrentDDL
private

! for iterator: current ddl ptr

Definition at line 106 of file AliMUONRawStreamTrigger.h.

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

Int_t AliMUONRawStreamTrigger::fCurrentDDLIndex
private

! for iterator: current ddl index

Definition at line 107 of file AliMUONRawStreamTrigger.h.

Referenced by First(), and GetNextDDL().

AliMUONLocalStruct* AliMUONRawStreamTrigger::fCurrentLocalStruct
private

! for iterator: current local ptr

Definition at line 111 of file AliMUONRawStreamTrigger.h.

Referenced by CurrentLocalStruct(), First(), GetNextLocalStruct(), IsDone(), and Next().

Int_t AliMUONRawStreamTrigger::fCurrentLocalStructIndex
private

! for iterator: current local index

Definition at line 112 of file AliMUONRawStreamTrigger.h.

Referenced by GetNextLocalStruct(), and GetNextRegHeader().

AliMUONRegHeader* AliMUONRawStreamTrigger::fCurrentRegHeader
private

! for iterator: current reg ptr

Definition at line 109 of file AliMUONRawStreamTrigger.h.

Referenced by CurrentRegHeader(), First(), GetNextLocalStruct(), and GetNextRegHeader().

Int_t AliMUONRawStreamTrigger::fCurrentRegHeaderIndex
private

! for iterator: current reg index

Definition at line 110 of file AliMUONRawStreamTrigger.h.

Referenced by GetNextDDL(), and GetNextRegHeader().

Int_t AliMUONRawStreamTrigger::fDDL
private

! number of DDL

Definition at line 114 of file AliMUONRawStreamTrigger.h.

Referenced by GetDDL(), and NextDDL().

const Int_t AliMUONRawStreamTrigger::fgkMaxDDL = 2
staticprivate

maximum number of DDLs

Definition at line 119 of file AliMUONRawStreamTrigger.h.

Referenced by GetMaxDDL(), GetNextDDL(), and NextDDL().

Bool_t AliMUONRawStreamTrigger::fLocalStructRead
private

! flag for read out local structure

Definition at line 113 of file AliMUONRawStreamTrigger.h.

Referenced by GetNextLocalStruct(), and Next().

Bool_t AliMUONRawStreamTrigger::fNextDDL
private

flag for next DDL to be read

Definition at line 117 of file AliMUONRawStreamTrigger.h.

AliMUONPayloadTrigger* AliMUONRawStreamTrigger::fPayload
private

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