Replace AliTRDCalibra
[u/mrichter/AliRoot.git] / TRD / AliTRDRecParam.h
CommitLineData
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
3bc9d03e 16class AliTRDRecParam : public TObject {
17
18 public:
19
20 static AliTRDRecParam *Instance();
21 static void Terminate();
3551db50 22
3bc9d03e 23 enum { kNplan = 6
24 , kNcham = 5
25 , kNsect = 18
26 , kNdet = 540 };
3551db50 27
3bc9d03e 28 AliTRDRecParam(const AliTRDRecParam &p);
29 AliTRDRecParam &operator=(const AliTRDRecParam &p);
30
31 virtual void Copy(TObject &p) const;
a305677e 32
3bc9d03e 33 virtual void SetLUT(Int_t lutOn = 1) { fLUTOn = lutOn; };
34 virtual void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; };
35 virtual void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; };
36 void SetTailCancelation(Int_t tcOn = 1) { fTCOn = tcOn; };
37 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
38
39 Bool_t LUTOn() const { return fLUTOn; };
40 virtual Float_t GetClusMaxThresh() const { return fClusMaxThresh; };
41 virtual Float_t GetClusSigThresh() const { return fClusSigThresh; };
42 Bool_t TCOn() const { return fTCOn; };
43 Int_t GetTCnexp() const { return fTCnexp; };
3551db50 44
3bc9d03e 45 virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const;
3551db50 46
3bc9d03e 47 protected:
48
49 static AliTRDRecParam *fgInstance; // Instance of this class (singleton implementation)
50 static Bool_t fgTerminated; // Defines if this class has already been terminated and
51 // therefore does not return instances in GetInstance anymore
3551db50 52
3bc9d03e 53 void Init();
54 virtual void FillLUT();
3551db50 55
3bc9d03e 56 // Clusterization parameter
57 Float_t fClusMaxThresh; // Threshold value for cluster maximum
58 Float_t fClusSigThresh; // Threshold value for cluster signal
3551db50 59
3bc9d03e 60 Int_t fLUTOn; // Switch for the lookup table method
61 Int_t fLUTbin; // Number of bins of the LUT
62 Float_t *fLUT; //! The lookup table
3551db50 63
3bc9d03e 64 Int_t fTCOn; // Switch for the tail cancelation
65 Int_t fTCnexp; // Number of exponentials, digital filter
3551db50 66
3bc9d03e 67 private:
68
69 // This is a singleton, constructor is private!
70 AliTRDRecParam();
71 ~AliTRDRecParam();
3551db50 72
3bc9d03e 73 ClassDef(AliTRDRecParam,1) // The reconstruction parameter
74
3551db50 75};
76
77#endif