AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRawStream.h
Go to the documentation of this file.
1 #ifndef ALIMUONRAWSTREAM_H
2 #define ALIMUONRAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 // $Id$
7 
12 // Author: Christian Finck
13 
14 #include <TObject.h>
15 
16 class AliRawReader;
17 
18 class AliMUONRawStream: public TObject {
19  public :
21  AliMUONRawStream(AliRawReader* rawReader);
22  virtual ~AliMUONRawStream();
23 
25  virtual void First() {return;} // not yet virtual pure, waiting for trigger
26 
28  virtual Bool_t NextDDL() = 0;
29 
31  virtual Bool_t IsDone() const {return kTRUE;} // not yet virtual pure, waiting for trigger
32 
34  virtual void AddErrorMessage() = 0;
35 
37  virtual void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;}
38 
40  virtual AliRawReader* GetReader() {return fRawReader;}
41 
43  virtual void EnabbleErrorLogger() {fEnableErrorLogger = kTRUE;}
44 
46  virtual Bool_t IsErrorLogger() const {return fEnableErrorLogger;}
47 
49  virtual void Swap(UInt_t *buffer, Int_t size) const;
50 
51 
52  private :
54  AliMUONRawStream(const AliMUONRawStream& stream);
57 
58  typedef struct {
59  UInt_t fB1:8;
60  UInt_t fB2:8;
61  UInt_t fB3:8;
62  UInt_t fB4:8;
63  } RawWord;
64 
65  AliRawReader* fRawReader;
67 
68  ClassDef(AliMUONRawStream, 1) // base class for reading MUON raw digits
69 };
70 
71 #endif
virtual void SetReader(AliRawReader *rawReader)
Set object for reading the raw data.
AliRawReader * fRawReader
! object for reading the raw data
virtual void Swap(UInt_t *buffer, Int_t size) const
swap method for Power PC
virtual void First()
Initialize iterator.
virtual Bool_t IsErrorLogger() const
Check if error info logger enable.
virtual Bool_t NextDDL()=0
DDL iterator.
virtual Bool_t IsDone() const
Whether the iteration is finished or not.
AliMUONRawStream & operator=(const AliMUONRawStream &stream)
Not implemented.
virtual void AddErrorMessage()=0
add error message into error logger
virtual void EnabbleErrorLogger()
Enable error info logger.
virtual ~AliMUONRawStream()
Bool_t fEnableErrorLogger
! flag to enable the error info logger
Base class for reading MUON raw digits.
virtual AliRawReader * GetReader()
Get object for reading the raw data.