]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliITSRawStream.h
add custom error handler that prepends the error message with the date
[u/mrichter/AliRoot.git] / RAW / AliITSRawStream.h
1 #ifndef ALIITSRAWSTREAM_H
2 #define ALIITSRAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include <TObject.h>
7
8 class AliRawReader;
9
10
11 class AliITSRawStream: public TObject {
12   public :
13     AliITSRawStream(AliRawReader* rawReader);
14     AliITSRawStream(const AliITSRawStream& stream);
15     AliITSRawStream& operator = (const AliITSRawStream& stream);
16     virtual ~AliITSRawStream() {};
17
18     virtual Bool_t   Next() = 0;
19
20     Int_t            GetModuleID() const {return fModuleID;};
21     Int_t            GetPrevModuleID() const {return fPrevModuleID;};
22     Bool_t           IsNewModule() const {return fModuleID != fPrevModuleID;};
23     Int_t            GetCoord1() const {return fCoord1;};
24     Int_t            GetCoord2() const {return fCoord2;};
25     Int_t            GetSignal() const {return fSignal;};
26
27   protected :
28     AliRawReader*    fRawReader;    // object for reading the raw data
29
30     Int_t            fModuleID;     // index of current module
31     Int_t            fPrevModuleID; // index of previous module
32     Int_t            fCoord1;       // current 1st coordinate
33                                     //  SPD: column cell number (z)
34                                     //  SDD: anode cell number (z)
35                                     //  SSD: N/P, flag for side
36     Int_t            fCoord2;       // current 2nd coordinate
37                                     //  SPD: row cell number (y)
38                                     //  SDD: time bin number (y)
39                                     //  SSD: strip number
40     Int_t            fSignal;       // signal in ADC counts
41
42     ClassDef(AliITSRawStream, 0) // base class for reading ITS raw digits
43 };
44
45 #endif