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 */
8 ///////////////////////////////////////////////////////////////////////////////
10 /// This class provides access to PHOS digits in raw data.
12 ///////////////////////////////////////////////////////////////////////////////
14 #include "AliAltroRawStream.h"
19 class AliPHOSRawStream: public AliAltroRawStream {
21 AliPHOSRawStream(AliRawReader* rawReader);
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;};
35 ClassDef(AliPHOSRawStream, 0) // class for reading PHOS raw digits