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 void SetTailCancelation(Int_t tcOn = 1) { fTCOn = tcOn; };
33 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
35 Bool_t LUTOn() const { return fLUTOn; };
36 virtual Int_t GetClusMaxThresh() const { return fClusMaxThresh; };
37 virtual Int_t GetClusSigThresh() const { return fClusSigThresh; };
39 virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const;
41 Bool_t TCOn() const { return fTCOn; };
42 Int_t GetTCnexp() const { return fTCnexp; };
45 static AliTRDRecParam* fgInstance; // Instance of this class (singleton implementation)
46 static Bool_t fgTerminated; // Defines if this class has already been terminated and therefore does not return instances in GetInstance anymore
50 // Clusterization parameter
51 Int_t fClusMaxThresh; // Threshold value for cluster maximum
52 Int_t fClusSigThresh; // Threshold value for cluster signal
54 Int_t fLUTOn; // Switch for the lookup table method
55 Int_t fLUTbin; // Number of bins of the LUT
56 Float_t *fLUT; //! The lookup table
58 Int_t fTCOn; // Switch for the tail cancelation
59 Int_t fTCnexp; // Number of exponentials, digital filter
60 virtual void FillLUT();
63 // this is a singleton, constructor is private!
67 ClassDef(AliTRDRecParam, 0)