]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDrecoParam.h
Last overlaps (hopefully ...)
[u/mrichter/AliRoot.git] / TRD / AliTRDrecoParam.h
1 #ifndef ALITRDRECOPARAM_H
2 #define ALITRDRECOPARAM_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 //  Parameter class for the TRD reconstruction                            //
11 //                                                                        //
12 ////////////////////////////////////////////////////////////////////////////
13
14 #ifndef ALIDETECTORRECOPARAM_H
15 #include "AliDetectorRecoParam.h"
16 #endif
17
18 class AliTRDrecoParam : public AliDetectorRecoParam
19 {
20 public:
21   enum AliTRDpidMethod{
22     kLQPID = 0,
23     kNNPID = 1
24   };
25   
26   AliTRDrecoParam();
27   ~AliTRDrecoParam() { }
28
29   Double_t GetChi2Y() const                 { return fkChi2Y;    }
30   Double_t GetChi2Z() const                 { return fkChi2Z;    }
31   Bool_t   GetClusterSharing() const        { return fkClusterSharing;}
32   Double_t GetFindableClusters() const      { return fkFindable; }
33   Double_t GetMaxTheta() const              { return fkMaxTheta; }
34   Double_t GetMaxPhi() const                { return fkMaxPhi;   }
35   Int_t    GetNdEdxSlices() const           { return fkPIDMethod == kNNPID ? kNNslices : kLQslices;}
36   AliTRDpidMethod    GetPIDMethod() const   { return fkPIDMethod;}
37   Double_t GetRoad0y() const                { return fkRoad0y;   }
38   Double_t GetRoad0z() const                { return fkRoad0z;   }
39
40   Double_t GetRoad1y() const                { return fkRoad1y;   }
41   Double_t GetRoad1z() const                { return fkRoad1z;   }
42
43   Double_t GetRoad2y() const                { return fkRoad2y;   }
44   Double_t GetRoad2z() const                { return fkRoad2z;   }
45
46   Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
47
48   Double_t GetTrackLikelihood() const       { return fkTrackLikelihood;       }
49   Int_t    GetStreamLevel() const           { return fkStreamLevel;           }
50
51   Bool_t   SeedingOn() const                { return fSeedingOn; }
52   Bool_t   IsVertexConstrained() const      { return fVertexConstrained; }
53   
54   Double_t GetMinMaxCutSigma() const        { return fMinMaxCutSigma;     };
55   Double_t GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;  };
56   Double_t GetClusMaxThresh() const         { return fClusMaxThresh;   };
57   Double_t GetClusSigThresh() const         { return fClusSigThresh;   };
58   Int_t    GetTCnexp() const                { return fTCnexp;          };
59   Bool_t   LUTOn() const                    { return fLUTOn;           };
60   Bool_t   TCOn() const                     { return fTCOn;            };
61
62   Int_t    GetADCbaseline() const           { return fADCbaseline;     };
63         
64   static   AliTRDrecoParam *GetLowFluxParam();
65   static   AliTRDrecoParam *GetHighFluxParam();
66   static   AliTRDrecoParam *GetCosmicTestParam();
67
68   void     SetClusterSharing(Bool_t share = kTRUE)            { fkClusterSharing = share;  };
69   void     SetPIDMethod(AliTRDpidMethod pid)                  { fkPIDMethod = pid; };
70   void     SetSeedingOn(Bool_t seedingOn = kTRUE)             { fSeedingOn = seedingOn; }
71   void     SetVertexConstrained(Bool_t vertexConstrained = kTRUE) { fVertexConstrained = vertexConstrained; }
72   void     SetStreamLevel(Int_t streamLevel= 1)               { fkStreamLevel = streamLevel; }
73   void     SetLUT(Int_t lutOn = 1)                            { fLUTOn           = lutOn;  };
74   void     SetMinMaxCutSigma(Float_t minMaxCutSigma)          { fMinMaxCutSigma   = minMaxCutSigma; };
75   void     SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma   = minLeftRightCutSigma; };
76   void     SetClusMaxThresh(Float_t thresh)                   { fClusMaxThresh   = thresh; };
77   void     SetClusSigThresh(Float_t thresh)                   { fClusSigThresh   = thresh; };
78   void     SetTailCancelation(Int_t tcOn = 1)                 { fTCOn            = tcOn;   };
79   void     SetNexponential(Int_t nexp)                        { fTCnexp          = nexp;   };
80   void     SetADCbaseline(Int_t base)                         { fADCbaseline     = base;   };
81
82 private:
83   enum{
84     kNNslices = 8,
85     kLQslices = 3
86   };
87   
88
89   // Tracking parameters
90   Bool_t    fkClusterSharing;        // Toggle cluster sharing
91   AliTRDpidMethod fkPIDMethod;       // PID method selector 0(LQ) 1(NN)
92   Double_t  fkMaxTheta;              // Maximum theta
93   Double_t  fkMaxPhi;                // Maximum phi
94
95   Double_t  fkRoad0y;                // Road for middle cluster
96   Double_t  fkRoad0z;                // Road for middle cluster
97
98   Double_t  fkRoad1y;                // Road in y for seeded cluster
99   Double_t  fkRoad1z;                // Road in z for seeded cluster
100
101   Double_t  fkRoad2y;                // Road in y for extrapolated cluster
102   Double_t  fkRoad2z;                // Road in z for extrapolated cluster
103   
104   Double_t  fkPlaneQualityThreshold; // Quality threshold
105   Double_t  fkFindable;              // Ratio of clusters from a track in one chamber which are at minimum supposed to be found.
106   Double_t  fkChi2Z;                 // Max chi2 on the z direction for seeding clusters fit
107   Double_t  fkChi2Y;                 // Max chi2 on the y direction for seeding clusters Rieman fit
108   Double_t  fkTrackLikelihood;       // Track likelihood for tracklets Rieman fit
109   Int_t     fkStreamLevel;                                       // Streaming Level in TRD Reconstruction
110   
111   Bool_t    fSeedingOn;              // Do stand alone tracking in the TRD
112   Bool_t    fVertexConstrained;      // Perform vertex constrained fit
113
114         // Clusterization parameter
115   Double_t  fMinMaxCutSigma;         // Threshold sigma noise pad middle
116   Double_t  fMinLeftRightCutSigma;   // Threshold sigma noise sum pad
117   Double_t  fClusMaxThresh;          // Threshold value for cluster maximum
118   Double_t  fClusSigThresh;          // Threshold value for cluster signal
119   Int_t     fLUTOn;                  // Switch for the lookup table method  
120   Int_t     fTCOn;                   // Switch for the tail cancelation
121   Int_t     fTCnexp;                 // Number of exponentials, digital filter
122   
123   // ADC parameter
124   Int_t     fADCbaseline;            // ADC baseline to be subtracted
125
126   ClassDef(AliTRDrecoParam, 4)       // Reconstruction parameters for TRD detector
127
128 };
129 #endif