1 #ifndef ALIITSRAWSTREAMSSD_H
2 #define ALIITSRAWSTREAMSSD_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 ITS SSD digits in raw data.
12 ///////////////////////////////////////////////////////////////////////////////
14 #include "AliITSRawStream.h"
19 class AliITSRawStreamSSD: public AliITSRawStream {
21 AliITSRawStreamSSD(AliRawReader* rawReader);
22 virtual ~AliITSRawStreamSSD() {};
24 virtual Bool_t Next();
26 Int_t GetSideFlag() const {return fCoord1;};
27 Int_t GetStrip() const {return fCoord2;};
29 enum {kDDLOffset = 0x300}; // offset for DDL numbers
30 enum {kDDLsNumber = 16}; // number of DDLs in SSD
31 enum {kModulesPerDDL = 109}; // number of modules in each DDL
33 static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
34 {return fgkDDLModuleMap[iDDL][iModule];}
37 static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
39 UInt_t fData; // data read for file
41 ClassDef(AliITSRawStreamSSD, 0) // class for reading ITS SSD raw digits