]>
Commit | Line | Data |
---|---|---|
8309c1ab | 1 | #ifndef ALIZDCRAWSTREAM_H |
2 | #define ALIZDCRAWSTREAM_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 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | /// | |
10 | /// This class provides access to ZDC digits in raw data. | |
11 | /// | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include <TObject.h> | |
15 | ||
16 | class AliRawReader; | |
17 | ||
18 | ||
19 | class AliZDCRawStream: public TObject { | |
20 | public : | |
cc2abffd | 21 | AliZDCRawStream(AliRawReader* rawReader); |
8309c1ab | 22 | virtual ~AliZDCRawStream(); |
8309c1ab | 23 | virtual Bool_t Next(); |
24 | ||
25 | Int_t GetSector(Int_t i) const {return fSector[i];}; | |
26 | Int_t GetADCValue() const {return fADCValue;}; | |
27 | UInt_t GetADCRaw() const {return fRawADC;}; | |
28 | Int_t GetADCGain() const {return fADCGain;}; | |
29 | Bool_t IsADCDataWord() const {return fIsADCDataWord;}; | |
8309c1ab | 30 | |
4d560383 | 31 | enum EZDCRawStreamError { |
32 | kInvalidADCModule = 1 | |
33 | }; | |
34 | ||
8309c1ab | 35 | private : |
36 | AliZDCRawStream(const AliZDCRawStream& stream); | |
37 | AliZDCRawStream& operator = (const AliZDCRawStream& stream); | |
38 | ||
cc2abffd | 39 | AliRawReader* fRawReader; // object for reading the raw data |
8309c1ab | 40 | |
cc2abffd | 41 | UInt_t fRawADC; // raw ADC |
42 | Int_t fSector[2]; // index of current sector | |
43 | Int_t fADCModule; // ADC module; | |
44 | Int_t fADCValue; // ADC value; | |
45 | Int_t fADCGain; // ADC gain (0=high range; 1=low range) | |
8309c1ab | 46 | Bool_t fIsADCDataWord; //True when data word |
47 | ||
abf60186 | 48 | ClassDef(AliZDCRawStream, 2) // class for reading ZDC raw digits |
8309c1ab | 49 | }; |
50 | ||
51 | #endif |