]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRawStreamSSD.h
Proper message and abort in case of missing DATE_RUN_NUMBER env variable
[u/mrichter/AliRoot.git] / ITS / AliITSRawStreamSSD.h
index 2856f5f0924025218dd5a924b5f874ead4eb753a..19e81b1c7d13326684d490b3a4b122be08b3eed4 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef ALIITSRAWSTREAMSSD_H
 #define ALIITSRAWSTREAMSSD_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
@@ -8,6 +8,8 @@
 ///////////////////////////////////////////////////////////////////////////////
 ///
 /// This class provides access to ITS SSD digits in raw data.
+//  Revised by Enrico Fragiacomo
+//  Last update: 2007/09/06
 ///
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -23,15 +25,28 @@ class AliITSRawStreamSSD: public AliITSRawStream {
 
     virtual Bool_t   Next();
 
-    Int_t            GetSideFlag() const {return fCoord1;};
-    Int_t            GetStrip() const {return fCoord2;};
+    Int_t            GetSideFlag() const {return fCoord1;}
+    Int_t            GetStrip() const {return fCoord2;}
+    Int_t GetDDL() const {return fddl;}
+    Int_t GetAD() const {return fad;}
+    Int_t GetADC() const {return fadc;}
 
     enum {kDDLsNumber = 16};      // number of DDLs in SSD
-    enum {kModulesPerDDL = 109};  // number of modules in each DDL
+    enum {kModulesPerDDL = 108};  // number of modules in each DDL
 
     static Int_t     GetModuleNumber(UInt_t iDDL, UInt_t iModule)
       {return fgkDDLModuleMap[iDDL][iModule];}
 
+    enum ESSDRawStreamError {
+      kWrongModuleIdErr = 1
+    };
+
+    Int_t fddl;
+    Int_t fad;
+    Int_t fadc;
+
+    Bool_t flag;
+
   protected :
     static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL];  // mapping DDL/module -> module number