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