]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.h
Adder resistor chains for guard rings, IFC
[u/mrichter/AliRoot.git] / TPC / AliTPCRecoParam.h
1 #ifndef ALITPCRECOPARAM_H
2 #define ALITPCRECOPARAM_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 with TPC reconstruction parameters                                  //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11
12
13 #include "AliDetectorRecoParam.h"
14
15 class AliTPCRecoParam : public AliDetectorRecoParam
16 {
17  public: 
18   AliTPCRecoParam();
19   virtual ~AliTPCRecoParam();
20   void     SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
21   Bool_t   GetClusterSharing() const {return fBClusterSharing;}
22   Double_t GetCtgRange() const     { return fCtgRange;}
23   Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
24   Double_t GetMaxSnpTrack() const  { return fMaxSnpTrack;}
25   Bool_t   GetUseOuterDetectors() const { return fUseOuterDetectors;}
26   void     SetUseOuterDetectors(Bool_t flag)  { fUseOuterDetectors=flag;}
27   Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
28   void  SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
29   Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
30   void     SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
31   //
32   Bool_t   DumpSignal()     const  { return fDumpSignal;}
33   void     SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
34   Int_t    GetFirstBin() const     { return fFirstBin;}
35   Int_t    GetLastBin() const      { return fLastBin;}
36   void     SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
37   Bool_t   GetCalcPedestal()       const  { return fBCalcPedestal;}
38   Bool_t   GetDoUnfold()           const  { return fBDoUnfold;}
39   void     SetDoUnfold(Bool_t unfold)     { fBDoUnfold = unfold;}
40   Float_t  GetDumpAmplitudeMin()   const  { return fDumpAmplitudeMin;}
41   Float_t  GetMaxNoise()           const  { return fMaxNoise;}  
42   //
43   Float_t  GetMinMaxCutAbs()       const  { return fMinMaxCutAbs; }
44   Float_t  GetMinLeftRightCutAbs() const  { return fMinLeftRightCutAbs;}  // minimal amplitude left right - PRF
45   Float_t  GetMinUpDownCutAbs()    const  { return fMinUpDownCutAbs;}  // minimal amplitude up-down - TRF 
46   Float_t  GetMinMaxCutSigma()       const  { return fMinMaxCutSigma; }
47   Float_t  GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;}  // minimal amplitude left right - PRF
48   Float_t  GetMinUpDownCutSigma()    const  { return fMinUpDownCutSigma;}  // minimal amplitude up-down - TRF 
49   //
50   void SetMinMaxCutAbs(Float_t th)         {   fMinMaxCutAbs=th; }
51   void SetMinLeftRightCutAbs(Float_t th)   {   fMinLeftRightCutAbs=th;}  // minimal amplitude left right - PRF
52   void SetMinUpDownCutAbs(Float_t th)      {   fMinUpDownCutAbs=th;}  // minimal amplitude up-down - TRF 
53   void SetMinMaxCutSigma(Float_t th)       {   fMinMaxCutSigma=th; }
54   void SetMinLeftRightCutSigma(Float_t th) {   fMinLeftRightCutSigma=th;}  // minimal amplitude left right - PRF
55   void SetMinUpDownCutSigma(Float_t th)    {   fMinUpDownCutSigma=th;}  // minimal amplitude up-down - TRF 
56   //
57   Int_t    GetLastSeedRowSec()       const  { return fLastSeedRowSec;} 
58   void     SetDoKinks(Bool_t on)   { fBKinkFinder=on; }
59   Bool_t   GetDoKinks() const      { return fBKinkFinder;}
60   Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
61   void     SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
62   Float_t  GetMaxC()    const      { return fMaxC;}
63   Bool_t   GetSpecialSeeding() const { return fBSpecialSeeding;}
64   //
65   //
66
67   //
68   // Correction setup
69   //
70   void  SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
71   void  SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
72   void  SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
73   void  SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
74   void  SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
75   void  SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
76   void  SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
77   void  SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
78   void  SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
79   void  SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
80   //
81   Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
82   Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
83   Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
84   Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
85   Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
86   Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
87   Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
88   Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
89   Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
90   //
91   Bool_t   GetUseTotCharge() const {return fUseTotCharge;}          // switch use total or max charge
92   Float_t  GetMinFraction() const {return fMinFraction;}           // truncated mean - lower threshold
93   Float_t  GetMaxFraction() const {return fMaxFaction;}            // truncated mean - upper threshold
94
95   Bool_t   GetUseTOFCorrection() {return fUseTOFCorrection;}
96
97   //
98   void     SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
99   const Double_t * GetSystematicError() const { return fSystematicErrors;}
100
101   static   AliTPCRecoParam *GetLowFluxParam();        // make reco parameters for low  flux env.
102   static   AliTPCRecoParam *GetHighFluxParam();       // make reco parameters for high flux env. 
103   static   AliTPCRecoParam *GetHLTParam(); // special setting for HLT  
104   static   AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal);  // special setting for laser 
105   static   AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic  
106   //
107  protected:
108   Bool_t   fBClusterSharing; // allows or disable cluster sharing during tracking 
109   Double_t fCtgRange;        // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI) 
110   Double_t fMaxSnpTracker;   // max sin of local angle  - for TPC tracker
111   Double_t fMaxSnpTrack;     // max sin of local angle  - for track 
112   Bool_t   fUseOuterDetectors; // switch - to use the outer detectors
113   //
114   //
115   Double_t fCutSharedClusters[2]; // cut value - maximal amount  of shared clusters  
116   Int_t fClusterMaxRange[2];   // neighborhood  - to define local maxima for cluster  
117   //
118   //   clusterer parameters
119   //
120   Bool_t   fDumpSignal;      // Dump Signal information flag
121   Int_t    fFirstBin;        // first time bin used by cluster finder
122   Int_t    fLastBin;         // last time bin  used by cluster finder 
123   Bool_t   fBCalcPedestal;   // calculate Pedestal
124   Bool_t   fBDoUnfold;       // do unfolding of clusters
125   Float_t  fDumpAmplitudeMin; // minimal amplitude of signal to be dumped 
126   Float_t  fMaxNoise;        // maximal noise sigma on pad to be used in cluster finder
127   Float_t  fMinMaxCutAbs;    // minimal amplitude at cluster maxima
128   Float_t  fMinLeftRightCutAbs;  // minimal amplitude left right - PRF
129   Float_t  fMinUpDownCutAbs;  // minimal amplitude up-down - TRF 
130   Float_t  fMinMaxCutSigma;    // minimal amplitude at cluster maxima
131   Float_t  fMinLeftRightCutSigma;  // minimal amplitude left right - PRF
132   Float_t  fMinUpDownCutSigma;  // minimal amplitude up-down - TRF 
133   //
134   //
135   Float_t  fMaxC;            // maximal curvature for tracking
136   Bool_t   fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
137   Bool_t   fBKinkFinder;       // do kink finder reconstruction
138   Double_t fKinkAngleCutChi2[2];   // angular cut for kinks
139   Int_t    fLastSeedRowSec;     // Most Inner Row to make seeding for secondaries
140   //
141   // Correction switches
142   //
143   Int_t fUseFieldCorrection;     // use field correction
144   Int_t fUseRPHICorrection;      // use rphi correction
145   Int_t fUseRadialCorrection;    // use radial correction
146   Int_t fUseQuadrantAlignment;   // use quadrant alignment
147   Int_t fUseSectorAlignment;     // use sector alignment
148   Int_t fUseDriftCorrectionTime; // use drift correction time
149   Int_t fUseDriftCorrectionGY;   // use drif correction global y
150   Int_t fUseGainCorrectionTime;  // use gain correction time
151   Int_t fUseExBCorrection;       // use ExB correction
152   //
153   // dEdx switches
154   //
155   Bool_t   fUseTotCharge;          // switch use total or max charge
156   Float_t fMinFraction;           // truncated mean - lower threshold
157   Float_t fMaxFaction;            // truncated mean - upper threshold
158
159   Bool_t fUseTOFCorrection;  // switch - kTRUE use TOF correction kFALSE - do not use
160   //
161   //  misscalibration 
162   //
163   Double_t fSystematicErrors[5];  //systematic errors in the track parameters - to be added to TPC covariance matrix    
164   ClassDef(AliTPCRecoParam, 9)
165 };
166
167
168 #endif