]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigit.h
Change to TRDdigitizer
[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 //_____________________________________________________________________________
11 class AliTRDdigit : public AliDigitNew {
12
13  public:
14
15   AliTRDdigit();
16   AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp);
17   virtual ~AliTRDdigit();
18
19   static  UInt_t RawDigit()          { return fgkRawDigit; };
20
21           Int_t  GetAmp() const      { if (TestBit(fgkRawDigit))
22                                          return DecodeAmp();
23                                        else
24                                          return fAmp; };
25           Int_t  GetDetector() const { return fId;   };
26           Int_t  GetRow() const      { return fRow;  };
27           Int_t  GetCol() const      { return fCol;  };
28           Int_t  GetTime() const     { return fTime; };
29
30   virtual Int_t  DecodeAmp() const;
31
32  protected:
33
34   static const UInt_t fgkRawDigit; // Marks a raw digit
35
36   UShort_t     fRow;               // Pad row number
37   UShort_t     fCol;               // Pad col number
38   UShort_t     fTime;              // Time bucket
39
40   ClassDef(AliTRDdigit,2)          // Digit for the TRD
41
42 };
43
44 #endif