]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRawStream.h
Only with TGeo now (A. Gheata)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRawStream.h
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
14 #include "AliAltroRawStream.h"
15
16 class AliRawReader;
17
18
19 class AliPHOSRawStream: public AliAltroRawStream {
20   public :
21     AliPHOSRawStream(AliRawReader* rawReader);
22
23     Int_t            GetModule() const {return fSector;};
24     Int_t            GetPrevModule() const {return fPrevSector;};
25     Bool_t           IsNewModule() const {return fSector != fPrevSector;};
26     Int_t            GetRow() const {return fRow;};
27     Int_t            GetPrevRow() const {return fPrevRow;};
28     Bool_t           IsNewRow() const {return (fRow != fPrevRow) || IsNewModule();};
29     Int_t            GetColumn() const {return fPad;};
30     Int_t            GetPrevColumn() const {return fPrevPad;};
31     Bool_t           IsNewColumn() const {return (fPad != fPrevPad) || IsNewRow();};
32     Int_t            GetTime() const {return fTime;};
33     Int_t            GetSignal() const {return fSignal;};
34
35     ClassDef(AliPHOSRawStream, 0)   // class for reading PHOS raw digits
36 };
37
38 #endif