Line data Source code
1 : #ifndef AliTRDPTRGLUT_H
2 : #define AliTRDPTRGLUT_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 :
8 : // --------------------------------------------------------
9 : //
10 : // PTRG look up table definition
11 : //
12 : // --------------------------------------------------------
13 :
14 : #include "TObject.h"
15 :
16 : class AliRunLoader;
17 :
18 : class AliTRDptrgLUT : public TObject {
19 : public:
20 : AliTRDptrgLUT();
21 : ~AliTRDptrgLUT();
22 : Int_t LookUp(UInt_t input); // execute a look up
23 : Int_t InitTable(Int_t inputWidth, Int_t outputWidth, Int_t *tableData,
24 : Bool_t copy); // load look up table
25 320 : Int_t GetInputWidth() { return fInputWidth; } // getter function
26 : protected:
27 : Int_t *fLUTData; // lut data storage
28 : Int_t fInputWidth; // bit width of the input vector
29 : Int_t fOutputWidth; // bit width of the output vector
30 : Int_t fTableEntryCount; // table entry count
31 : Bool_t fCopiedTable; // indicates whether the look up table was copied
32 : private:
33 : AliTRDptrgLUT& operator=(const AliTRDptrgLUT &rhs); // not implemented
34 : AliTRDptrgLUT(const AliTRDptrgLUT &rhs); // not implemented
35 :
36 228 : ClassDef(AliTRDptrgLUT, 1);
37 : };
38 :
39 : #endif
|