]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliITSRawStreamSPD.h
93f121c3c2fe03f8003c7c471c648bb8d0c00922
[u/mrichter/AliRoot.git] / RAW / AliITSRawStreamSPD.h
1 #ifndef ALIITSRAWSTREAMSPD_H
2 #define ALIITSRAWSTREAMSPD_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include "AliITSRawStream.h"
7
8
9 class AliITSRawStreamSPD: public AliITSRawStream {
10   public :
11     AliITSRawStreamSPD(AliRawReader* rawReader);
12     virtual ~AliITSRawStreamSPD() {};
13
14     virtual Bool_t   Next();
15
16     Int_t            GetRow() const {return fCoord1;};
17     Int_t            GetColumn() const {return fCoord2;};
18
19     enum {kDDLsNumber = 20};      // number of DDLs in SPD
20     enum {kModulesPerDDL = 12};   // number of modules in each DDL
21
22     static Int_t     GetModuleNumber(UInt_t iDDL, UInt_t iModule)
23       {return fgkDDLModuleMap[iDDL][iModule];}
24
25   private :
26     static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL];  // mapping DDL/module -> module number
27
28     UShort_t         fData;         // data read for file
29     UInt_t           fOffset;       // offset for cell column
30     UInt_t           fHitCount;     // counter of hits
31
32     ClassDef(AliITSRawStreamSPD, 0) // class for reading ITS SPD raw digits
33 };
34
35 #endif