]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigit.h
0fb30cc72f9fb88b4b54be5e3893e7822d7aa000
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.h
1 #ifndef TRDdigit_h
2 #define TRDdigit_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliTRDdigit.h,v */
7
8 #include "AliDigitNew.h"
9
10 const UInt_t kRawDigit = 0x00000001;
11
12 //_____________________________________________________________________________
13 class AliTRDdigit : public AliDigitNew {
14
15  public:
16
17   AliTRDdigit();
18   AliTRDdigit(Bool_t isRaw, Int_t *digits);
19   ~AliTRDdigit() {};
20
21           Int_t GetAmp()      { if (TestBit(kRawDigit))
22                                   return DecodeAmp();
23                                 else
24                                   return fAmp; };
25           Int_t GetDetector() { return fId;   };
26           Int_t GetRow()      { return fRow;  };
27           Int_t GetCol()      { return fCol;  };
28           Int_t GetTime()     { return fTime; };
29
30           Int_t DecodeAmp()   { return 0;     };
31
32  protected:
33
34   Int_t        fRow;        // Pad row number
35   Int_t        fCol;        // Pad col number
36   Int_t        fTime;       // Time bucket
37
38   ClassDef(AliTRDdigit,1)   // Digit for the TRD
39
40 };
41
42 #endif