]>
Commit | Line | Data |
---|---|---|
8230f242 | 1 | #ifndef ALITRDDIGIT_H |
2 | #define ALITRDDIGIT_H | |
6f1e466d | 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 | ||
0a29d0f1 | 8 | /////////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // The TRD digit // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
6f1e466d | 14 | #include "AliDigitNew.h" |
15 | ||
6f1e466d | 16 | //_____________________________________________________________________________ |
17 | class AliTRDdigit : public AliDigitNew { | |
18 | ||
19 | public: | |
20 | ||
21 | AliTRDdigit(); | |
9d0b222b | 22 | AliTRDdigit(Bool_t isRaw, Int_t *digits, Int_t *amp); |
8230f242 | 23 | virtual ~AliTRDdigit(); |
6f1e466d | 24 | |
793ff80c | 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; }; | |
6f1e466d | 35 | |
793ff80c | 36 | virtual Int_t DecodeAmp() const; |
6f1e466d | 37 | |
38 | protected: | |
39 | ||
2745a409 | 40 | static const UInt_t fgkRawDigit; // Marks a raw digit |
793ff80c | 41 | |
2745a409 | 42 | UShort_t fRow; // Pad row number |
43 | UShort_t fCol; // Pad col number | |
44 | UShort_t fTime; // Time bucket | |
6f1e466d | 45 | |
2745a409 | 46 | ClassDef(AliTRDdigit,2) // Digit for the TRD |
6f1e466d | 47 | |
48 | }; | |
49 | ||
50 | #endif |