Modification needed to include PHOS in the global trigger framework
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRawStream.h
CommitLineData
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 18class AliRawReader;
19
20
f88e2313 21class AliPHOSRawStream: public AliAltroRawStream {
b7f3cbac 22
23public :
24
25 AliPHOSRawStream(AliRawReader* rawReader);
26
f88e2313 27 Int_t GetColumn() const {return fPad;}
28 Int_t GetModule() const {return fSector;}
29 Int_t GetPrevColumn() const {return fPrevPad;}
30 Int_t GetPrevModule() const {return fPrevSector;}
31 Int_t GetPrevRow() const {return fPrevRow;}
32 Int_t GetRow() const {return fRow;}
33 Int_t GetSignal() const {return fSignal;}
34 Int_t GetTime() const {return fTime;}
35 Bool_t IsNewColumn() const {return (GetColumn() != GetPrevColumn()) || IsNewRow();}
36 Bool_t IsNewModule() const {return GetModule() != GetPrevModule();}
37 Bool_t IsNewRow() const {return (GetRow() != GetPrevRow()) || IsNewModule();}
38
b7f3cbac 39 ClassDef(AliPHOSRawStream, 0) // class for reading PHOS raw digits
f88e2313 40 };
65792ca0 41
42#endif
f88e2313 43