]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDdigit.h
Merge with TRD-develop
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.h
index de3fc903dca0d19992aa418c1d53f9f0b280c0b8..8d48938cdd7e47f05bee737654b87119e7e51f5c 100644 (file)
@@ -7,8 +7,6 @@
 
 #include "AliDigitNew.h"
 
-const UInt_t kRawDigit = 0x00000001;
-
 //_____________________________________________________________________________
 class AliTRDdigit : public AliDigitNew {
 
@@ -18,24 +16,28 @@ class AliTRDdigit : public AliDigitNew {
   AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp);
   virtual ~AliTRDdigit();
 
-          Int_t GetAmp() const    { if (TestBit(kRawDigit))
-                                      return DecodeAmp();
-                                    else
-                                      return fAmp; };
-          Int_t GetDetector()     { return fId;   };
-          Int_t GetRow()          { return fRow;  };
-          Int_t GetCol()          { return fCol;  };
-          Int_t GetTime()         { return fTime; };
+  static  UInt_t RawDigit()          { return fgkRawDigit; };
+
+          Int_t  GetAmp() const      { if (TestBit(fgkRawDigit))
+                                         return DecodeAmp();
+                                       else
+                                         return fAmp; };
+          Int_t  GetDetector() const { return fId;   };
+          Int_t  GetRow() const      { return fRow;  };
+          Int_t  GetCol() const      { return fCol;  };
+          Int_t  GetTime() const     { return fTime; };
 
-          Int_t DecodeAmp() const { return 0;     };
+  virtual Int_t  DecodeAmp() const;
 
  protected:
 
-  Int_t        fRow;              // Pad row number
-  Int_t        fCol;              // Pad col number
-  Int_t        fTime;             // Time bucket
+  static const UInt_t fgkRawDigit; // Marks a raw digit
+
+  UShort_t     fRow;               // Pad row number
+  UShort_t     fCol;               // Pad col number
+  UShort_t     fTime;              // Time bucket
 
-  ClassDef(AliTRDdigit,1)         // Digit for the TRD
+  ClassDef(AliTRDdigit,2)          // Digit for the TRD
 
 };