]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliITSRawStreamSSD.h
fix coding convention violations
[u/mrichter/AliRoot.git] / RAW / AliITSRawStreamSSD.h
index ba1697563560ebdf7823c4e671c4e4c8a3b14f06..79e15ec61701a730001bd02cf5d52e360371c89f 100644 (file)
@@ -3,6 +3,14 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+///
+/// This class provides access to ITS SSD digits in raw data.
+///
+///////////////////////////////////////////////////////////////////////////////
+
 #include "AliITSRawStream.h"
 
 class AliRawReader;
@@ -18,10 +26,15 @@ class AliITSRawStreamSSD: public AliITSRawStream {
     Int_t            GetSideFlag() const {return fCoord1;};
     Int_t            GetStrip() const {return fCoord2;};
 
+    enum {kDDLOffset = 0x300};    // offset for DDL numbers
+    enum {kDDLsNumber = 16};      // number of DDLs in SSD
+    enum {kModulesPerDDL = 109};  // number of modules in each DDL
+
+    static Int_t     GetModuleNumber(UInt_t iDDL, UInt_t iModule)
+      {return fgkDDLModuleMap[iDDL][iModule];}
+
   private :
-    static const Int_t fgkDDLsNumber = 16;      // number of DDLs in SSD
-    static const Int_t fgkModulesPerDDL = 109;  // number of modules in each DDL 
-    static const Int_t fgkDDLModuleMap[fgkDDLsNumber][fgkModulesPerDDL];  // mapping DDL/module -> module number
+    static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL];  // mapping DDL/module -> module number
 
     UInt_t           fData;         // data read for file