]>
Commit | Line | Data |
---|---|---|
3551db50 | 1 | #ifndef AliTRDRECPARAM_H |
2 | #define AliTRDRECPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /////////////////////////////////////////////////////////////////////////////// | |
7 | // // | |
8 | // Class containing constant reconstruction parameters // | |
9 | // // | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | /* $Id$ */ | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
16 | class AliTRDRecParam : public TObject | |
17 | { | |
18 | public: | |
19 | static AliTRDRecParam* Instance(); | |
20 | static void Terminate(); | |
21 | ||
22 | enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 }; | |
23 | ||
24 | AliTRDRecParam(const AliTRDRecParam &p); | |
25 | AliTRDRecParam &operator=(const AliTRDRecParam &p); | |
26 | virtual void Copy(TObject &p) const; | |
27 | ||
28 | virtual void SetLUT(Int_t lutOn = 1) { fLUTOn = lutOn; }; | |
29 | virtual void SetClusMaxThresh(Int_t thresh) { fClusMaxThresh = thresh; }; | |
30 | virtual void SetClusSigThresh(Int_t thresh) { fClusSigThresh = thresh; }; | |
31 | ||
32 | Bool_t LUTOn() const { return fLUTOn; }; | |
33 | virtual Int_t GetClusMaxThresh() const { return fClusMaxThresh; }; | |
34 | virtual Int_t GetClusSigThresh() const { return fClusSigThresh; }; | |
35 | ||
36 | virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const; | |
37 | ||
38 | protected: | |
39 | static AliTRDRecParam* fgInstance; // Instance of this class (singleton implementation) | |
40 | static Bool_t fgTerminated; // Defines if this class has already been terminated and therefore does not return instances in GetInstance anymore | |
41 | ||
42 | void Init(); | |
43 | ||
44 | // Clusterization parameter | |
45 | Int_t fClusMaxThresh; // Threshold value for cluster maximum | |
46 | Int_t fClusSigThresh; // Threshold value for cluster signal | |
47 | ||
48 | Int_t fLUTOn; // Switch for the lookup table method | |
49 | Int_t fLUTbin; // Number of bins of the LUT | |
50 | Float_t *fLUT; //! The lookup table | |
51 | ||
52 | virtual void FillLUT(); | |
53 | ||
54 | private: | |
55 | // this is a singleton, constructor is private! | |
56 | AliTRDRecParam(); | |
57 | ~AliTRDRecParam(); | |
58 | ||
59 | ClassDef(AliTRDRecParam, 0) | |
60 | }; | |
61 | ||
62 | #endif |