1 #ifndef ALIVZERORAWSTREAM_H
2 #define ALIVZERORAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ///////////////////////////////////////////////////////////////////////////////
8 /// This is a class for reading the VZERO DDL raw data
9 /// The format of the raw data corresponds to the one
10 /// implemented in AliVZEROBuffer class.
12 ///////////////////////////////////////////////////////////////////////////////
18 class AliVZERORawStream: public TObject {
20 AliVZERORawStream(AliRawReader* rawReader);
21 virtual ~AliVZERORawStream();
24 virtual Bool_t Next();
26 Int_t GetCell() { return fCell; }
27 Int_t GetADC() { return fADC; }
28 Int_t GetTime() { return fTime; }
30 enum EVZERORawStreamError {
36 AliVZERORawStream(const AliVZERORawStream& stream);
37 AliVZERORawStream& operator = (const AliVZERORawStream& stream);
41 Int_t fCell; // current VZERO cell
42 Int_t fADC; // current ADC count
43 Int_t fTime; // current time
45 Int_t fPosition; // current position in raw-data stream
47 AliRawReader* fRawReader; // object for reading the raw data
49 UChar_t* fData; // pointer to raw data payload
51 ClassDef(AliVZERORawStream, 0) // class for reading VZERO DDL raw data