]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDrecoParam.h
Incremented class version (Markus)
[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 #ifndef ALITRDCALPID_H
18 #include "Cal/AliTRDCalPID.h"
19 #endif
20
21 class AliTRDrecoParam : public AliDetectorRecoParam
22 {
23 public:
24   AliTRDrecoParam();
25   AliTRDrecoParam(const AliTRDrecoParam &rec);
26   ~AliTRDrecoParam() { }
27
28   Double_t GetChi2Y() const                 { return fkChi2Y;    }
29   Double_t GetChi2Z() const                 { return fkChi2Z;    }
30   Double_t GetChi2YSlope() const            { return fkChi2YSlope; }
31   Double_t GetChi2ZSlope() const            { return fkChi2ZSlope; }
32         Double_t GetChi2YCut() const              { return fkChi2YCut; }
33   Double_t GetPhiSlope() const              { return fkPhiSlope;   }
34   Float_t  GetNClusters() const;
35   Double_t GetNMeanClusters() const         { return fkNMeanClusters; }
36   Double_t GetNSigmaClusters() const        { return fkNSigmaClusters; }
37   Double_t GetFindableClusters() const      { return fkFindable; }
38   Double_t GetMaxTheta() const              { return fkMaxTheta; }
39   Double_t GetMaxPhi() const                { return fkMaxPhi;   }
40   Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
41   Double_t GetPIDThreshold(Float_t /*p*/) const { return 0.;}
42   Double_t GetRoad0y() const                { return fkRoad0y;   }
43   Double_t GetRoad0z() const                { return fkRoad0z;   }
44   Double_t GetRoad1y() const                { return fkRoad1y;   }
45   Double_t GetRoad1z() const                { return fkRoad1z;   }
46   Double_t GetRoad2y() const                { return fkRoad2y;   }
47   Double_t GetRoad2z() const                { return fkRoad2z;   }
48   Double_t GetRoadzMultiplicator() const    { return fkRoadzMultiplicator; }
49   Double_t GetTrackLikelihood() const       { return fkTrackLikelihood;       }
50   inline void GetSysCovMatrix(Double_t *sys) const;  
51   Double_t GetMinMaxCutSigma() const        { return fMinMaxCutSigma;     };
52   Double_t GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;  };
53   Double_t GetClusMaxThresh() const         { return fClusMaxThresh;   };
54   Double_t GetClusSigThresh() const         { return fClusSigThresh;   };
55   Int_t    GetTCnexp() const                { return fTCnexp;          };
56   Int_t     GetNumberOfPresamples()  const {return fNumberOfPresamples;}
57   Int_t    GetNumberOfPostsamples() const {return fNumberOfPostsamples;}
58
59         
60   static   AliTRDrecoParam *GetLowFluxParam();
61   static   AliTRDrecoParam *GetHighFluxParam();
62   static   AliTRDrecoParam *GetCosmicTestParam();
63
64   void     SetMaxTheta(Double_t maxTheta) {fkMaxTheta = maxTheta;}
65   void     SetMaxPhi(Double_t maxPhi) {fkMaxPhi = maxPhi;}
66   void     SetFindableClusters(Double_t r) {fkFindable = r;}
67   void     SetChi2Y(Double_t chi2) {fkChi2Y = chi2;}
68   void     SetChi2Z(Double_t chi2) {fkChi2Z = chi2;}
69   void     SetChi2YSlope(Double_t chi2YSlope) {fkChi2YSlope = chi2YSlope;}
70   void     SetChi2ZSlope(Double_t chi2ZSlope) {fkChi2ZSlope = chi2ZSlope;}
71         void       SetChi2YCut(Double_t chi2Cut) {fkChi2YCut = chi2Cut; }
72   void     SetPhiSlope(Double_t phiSlope) {fkPhiSlope = phiSlope;}
73   void     SetNMeanClusters(Double_t meanNclusters) {fkNMeanClusters = meanNclusters;}
74   void     SetNSigmaClusters(Double_t sigmaNclusters) {fkNSigmaClusters = sigmaNclusters;} 
75   void     SetMinMaxCutSigma(Float_t minMaxCutSigma)          { fMinMaxCutSigma   = minMaxCutSigma; }
76   void     SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma   = minLeftRightCutSigma; };
77   void     SetClusMaxThresh(Float_t thresh)                   { fClusMaxThresh   = thresh; };
78   void     SetClusSigThresh(Float_t thresh)                   { fClusSigThresh   = thresh; };
79   inline void SetPIDThreshold(Double_t *pid);
80   void     SetNexponential(Int_t nexp)                        { fTCnexp          = nexp;   };
81   inline void SetSysCovMatrix(Double_t *sys);
82   void     SetNumberOfPresamples(Int_t n)                     { fNumberOfPresamples = n;}
83   void     SetNumberOfPostsamples(Int_t n)                    { fNumberOfPostsamples = n;}
84
85 private:
86   // Physics reference values for TRD
87   Double_t  fkdNchdy;                // dNch/dy
88   Double_t  fkMaxTheta;              // Maximum theta
89   Double_t  fkMaxPhi;                // Maximum phi - momentum cut
90
91   Double_t  fkRoad0y;                // Road for middle cluster
92   Double_t  fkRoad0z;                // Road for middle cluster
93
94   Double_t  fkRoad1y;                // Road in y for seeded cluster
95   Double_t  fkRoad1z;                // Road in z for seeded cluster
96
97   Double_t  fkRoad2y;                // Road in y for extrapolated cluster
98   Double_t  fkRoad2z;                // Road in z for extrapolated cluster
99   
100   Double_t  fkPlaneQualityThreshold; // Quality threshold
101   Double_t  fkRoadzMultiplicator;    // Multiplicator for the Roads in z 
102   Double_t  fkFindable;              // minimum ratio of clusters per tracklet supposed to be attached.
103   Double_t  fkChi2Z;                 // Max chi2 on the z direction for seeding clusters fit
104   Double_t  fkChi2Y;                 // Max chi2 on the y direction for seeding clusters Rieman fit
105   Double_t  fkChi2YSlope;            // Slope of the chi2-distribution in y-direction
106   Double_t  fkChi2ZSlope;            // Slope of the chi2-distribution in z-direction
107         Double_t  fkChi2YCut;                                                    // Cut on the Chi2 in y-direction in the likelihood filter
108   Double_t  fkPhiSlope;              // Slope of the distribution of the deviation between track angle and tracklet angle
109   Double_t  fkNMeanClusters;         // Mean number of clusters per tracklet
110   Double_t  fkNSigmaClusters;        // Sigma of the number of clusters per tracklet
111   Double_t  fkNClusterNoise;         // ratio of noisy clusters to the true one
112   Double_t  fkNMeanTracklets;        // Mean number of tracklets per track
113   Double_t  fkTrackLikelihood;       // Track likelihood for tracklets Rieman fit
114   
115   Double_t  fSysCovMatrix[5];        // Systematic uncertainty from calibration and alignment for each tracklet
116   Double_t  fPIDThreshold[AliTRDCalPID::kNMom];   // PID Thresholds for Electron candidate decision
117
118   // Clusterization parameter
119   Double_t  fMinMaxCutSigma;         // Threshold sigma noise pad middle
120   Double_t  fMinLeftRightCutSigma;   // Threshold sigma noise sum pad
121   Double_t  fClusMaxThresh;          // Threshold value for cluster maximum
122   Double_t  fClusSigThresh;          // Threshold value for cluster signal
123   Int_t     fTCnexp;                 // Number of exponentials, digital filter
124   
125   // ADC parameter
126   Int_t     fNumberOfPresamples;     // number of presamples 
127   Int_t     fNumberOfPostsamples;     // number of postsamples 
128
129   ClassDef(AliTRDrecoParam, 8)       // Reconstruction parameters for TRD detector
130
131 };
132
133 //___________________________________________________
134 inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys) const
135 {
136   if(!sys) return;
137   memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t));
138 }
139
140 //___________________________________________________
141 inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys)
142 {
143   if(!sys) return;
144   memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t));
145 }
146
147 //___________________________________________________
148 inline void AliTRDrecoParam::SetPIDThreshold(Double_t *pid)
149 {
150   if(!pid) return;
151   memcpy(fPIDThreshold, pid, AliTRDCalPID::kNMom*sizeof(Double_t));
152 }
153
154
155 #endif