]>
Commit | Line | Data |
---|---|---|
65792ca0 | 1 | #ifndef ALIPHOSRAWSTREAM_H |
2 | #define ALIPHOSRAWSTREAM_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 PHOS digits in raw data. | |
11 | /// | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
b7f3cbac | 14 | // --- ROOT system --- |
65792ca0 | 15 | |
b7f3cbac | 16 | // --- AliRoot header files --- |
17 | #include "AliAltroRawStream.h" | |
65792ca0 | 18 | class AliRawReader; |
19 | ||
20 | ||
f88e2313 | 21 | class AliPHOSRawStream: public AliAltroRawStream { |
b7f3cbac | 22 | |
23 | public : | |
b7f3cbac | 24 | AliPHOSRawStream(AliRawReader* rawReader); |
7b916e14 | 25 | virtual ~AliPHOSRawStream(); |
26 | ||
27 | virtual void Reset(); | |
28 | virtual Bool_t Next(); | |
b7f3cbac | 29 | |
7b916e14 | 30 | Int_t GetColumn() const {return fColumn;} |
31 | Int_t GetModule() const {return fModule;} | |
32 | Int_t GetPrevColumn() const {return fPrevColumn;} | |
33 | Int_t GetPrevModule() const {return fPrevModule;} | |
f88e2313 | 34 | Int_t GetPrevRow() const {return fPrevRow;} |
35 | Int_t GetRow() const {return fRow;} | |
f88e2313 | 36 | Bool_t IsNewColumn() const {return (GetColumn() != GetPrevColumn()) || IsNewRow();} |
37 | Bool_t IsNewModule() const {return GetModule() != GetPrevModule();} | |
38 | Bool_t IsNewRow() const {return (GetRow() != GetPrevRow()) || IsNewModule();} | |
7b916e14 | 39 | |
40 | protected: | |
41 | AliPHOSRawStream(const AliPHOSRawStream& stream); | |
42 | AliPHOSRawStream& operator = (const AliPHOSRawStream& stream); | |
43 | ||
44 | virtual void ApplyAltroMapping(); | |
45 | ||
46 | Int_t fModule; // index of current module | |
47 | Int_t fPrevModule; // index of previous module | |
48 | Int_t fRow; // index of current row | |
49 | Int_t fPrevRow; // index of previous row | |
50 | Int_t fColumn; // index of current column | |
51 | Int_t fPrevColumn; // index of previous column | |
f88e2313 | 52 | |
b7f3cbac | 53 | ClassDef(AliPHOSRawStream, 0) // class for reading PHOS raw digits |
f88e2313 | 54 | }; |
65792ca0 | 55 | |
56 | #endif | |
f88e2313 | 57 |