]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCRawStream.h
Adding low resolution channels to reco object
[u/mrichter/AliRoot.git] / ZDC / AliZDCRawStream.h
index 034bb44e9ad0bc6578e838abc8234b8a1bf06715..d919374ee005f3fb531fc3afc1a71ba8c840268a 100644 (file)
@@ -18,31 +18,35 @@ class AliRawReader;
 
 class AliZDCRawStream: public TObject {
   public :
-    AliZDCRawStream(AliRawReader* rawReader);
+    AliZDCRawStream(AliRawReader* rawReader); 
     virtual ~AliZDCRawStream();
-
     virtual Bool_t   Next();
 
+    UInt_t           GetADCRaw() const {return fRawADC;};
     Int_t            GetSector(Int_t i) const {return fSector[i];};
+    Int_t            GetADCModule() const {return fADCModule;};
     Int_t            GetADCValue() const {return fADCValue;};
-    UInt_t           GetADCRaw() const {return fRawADC;};
     Int_t            GetADCGain() const {return fADCGain;};
     Bool_t           IsADCDataWord() const {return fIsADCDataWord;};
-    enum {kDDLOffset = 0xB00};      // offset for DDL numbers
+
+  enum EZDCRawStreamError {
+    kInvalidADCModule = 1
+  };
 
   private :
     AliZDCRawStream(const AliZDCRawStream& stream);
     AliZDCRawStream& operator = (const AliZDCRawStream& stream);
 
-    AliRawReader*    fRawReader;    // object for reading the raw data
+    AliRawReader*    fRawReader;     // object for reading the raw data
 
-    UInt_t           fRawADC;       // raw ADC
-    Int_t            fSector[2];    // index of current sector
-    Int_t            fADCValue;     // ADC value;
-    Int_t            fADCGain;      // ADC gain (0=high range; 1=low range)
+    UInt_t           fRawADC;        // raw ADC
+    Int_t            fSector[2];     // index of current sector
+    Int_t            fADCModule;     // ADC module;
+    Int_t            fADCValue;      // ADC value;
+    Int_t            fADCGain;       // ADC gain (0=high range; 1=low range)
     Bool_t           fIsADCDataWord; //True when data word
 
-    ClassDef(AliZDCRawStream, 1)    // class for reading ZDC raw digits
+    ClassDef(AliZDCRawStream, 2)    // class for reading ZDC raw digits
 };
 
 #endif