]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigit.h
de3fc903dca0d19992aa418c1d53f9f0b280c0b8
[u/mrichter/AliRoot.git] / TRD / AliTRDdigit.h
1 #ifndef ALITRDDIGIT_H
2 #define ALITRDDIGIT_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, Int_t *amp);
19   virtual ~AliTRDdigit();
20
21           Int_t GetAmp() const    { 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() const { 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