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 */
6 ///////////////////////////////////////////////////////////////////////////////
8 // Class containing constant reconstruction parameters //
10 ///////////////////////////////////////////////////////////////////////////////
16 class AliTRDRecParam : public TObject
19 static AliTRDRecParam* Instance();
20 static void Terminate();
22 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
24 AliTRDRecParam(const AliTRDRecParam &p);
25 AliTRDRecParam &operator=(const AliTRDRecParam &p);
26 virtual void Copy(TObject &p) const;
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; };
32 Bool_t LUTOn() const { return fLUTOn; };
33 virtual Int_t GetClusMaxThresh() const { return fClusMaxThresh; };
34 virtual Int_t GetClusSigThresh() const { return fClusSigThresh; };
36 virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const;
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
44 // Clusterization parameter
45 Int_t fClusMaxThresh; // Threshold value for cluster maximum
46 Int_t fClusSigThresh; // Threshold value for cluster signal
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
52 virtual void FillLUT();
55 // this is a singleton, constructor is private!
59 ClassDef(AliTRDRecParam, 0)