]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliITSRawStreamSDD.h
access to status bits added
[u/mrichter/AliRoot.git] / RAW / AliITSRawStreamSDD.h
1 #ifndef ALIITSRAWSTREAMSDD_H
2 #define ALIITSRAWSTREAMSDD_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 ITS SDD digits in raw data.
11 ///
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include "AliITSRawStream.h"
15
16 class AliRawReader;
17
18
19 class AliITSRawStreamSDD: public AliITSRawStream {
20   public :
21     AliITSRawStreamSDD(AliRawReader* rawReader);
22     virtual ~AliITSRawStreamSDD() {};
23
24     virtual Bool_t   Next();
25
26     Int_t            GetAnode() const {return fCoord1;};
27     Int_t            GetTime() const {return fCoord2;};
28
29     enum {kDDLOffset = 0x200};    // offset for DDL numbers
30     enum {kDDLsNumber = 12};      // number of DDLs in SDD
31     enum {kModulesPerDDL = 22};   // number of modules in each DDL 
32
33     static Int_t     GetModuleNumber(UInt_t iDDL, UInt_t iModule)
34       {return fgkDDLModuleMap[iDDL][iModule];}
35
36   private :
37     static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL];  // mapping DDL/module -> module number
38
39     UInt_t           fData;         // data read for file
40
41     ClassDef(AliITSRawStreamSDD, 0) // class for reading ITS SDD raw digits
42 };
43
44 #endif