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 */
6 #include "AliITSRawStream.h"
9 class AliITSRawStreamSPD: public AliITSRawStream {
11 AliITSRawStreamSPD(AliRawReader* rawReader);
12 virtual ~AliITSRawStreamSPD() {};
14 virtual Bool_t Next();
16 Int_t GetRow() const {return fCoord1;};
17 Int_t GetColumn() const {return fCoord2;};
19 enum {kDDLsNumber = 20}; // number of DDLs in SPD
20 enum {kModulesPerDDL = 12}; // number of modules in each DDL
22 static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
23 {return fgkDDLModuleMap[iDDL][iModule];}
26 static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
28 UShort_t fData; // data read for file
29 UInt_t fOffset; // offset for cell column
30 UInt_t fHitCount; // counter of hits
32 ClassDef(AliITSRawStreamSPD, 0) // class for reading ITS SPD raw digits