1 #ifndef ALIACORDERAWSTREAM_H
2 #define ALIACORDERAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliACORDERawStream.h 20210 2007-08-18 08:41:30Z hristov $ */
8 ///////////////////////////////////////////////////////////////////////////////
10 // Reads ACORDE DDL raw data from raw data stream //
12 ///////////////////////////////////////////////////////////////////////////////
18 class AliACORDERawStream : public TObject {
22 AliACORDERawStream(AliRawReader*);
23 virtual ~AliACORDERawStream();
24 // AliACORDERawStream &operator=(const AliACORDERawStream &r);
27 virtual Bool_t Next();
29 Int_t DataSize() const { return fDataSize; }
30 UInt_t GetWord(Int_t index) const;
32 enum EACORDERawStreamError {
39 UShort_t GetNextShort();
42 AliRawReader* fRawReader; // object for reading the raw data
43 Int_t fPosition; // current position in the raw-data payload
44 UChar_t* fData; // pointer to raw data payload
46 Int_t fDataSize; // data size
48 UInt_t fWord[4]; // data vector
50 ClassDef(AliACORDERawStream,0) // class for reading ACORDE DDL raw data
54 typedef AliACORDERawStream AliCRTRawStream; // for backward compatibility