]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCRecoParam.h
- Adding initialisation of detector variable - Adding functions to get hadronic contr...
[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   virtual void Print(const Option_t* option="") const;
21   static   Bool_t  GetUseTimeCalibration();
22   static   void    SetUseTimeCalibration(Bool_t useTimeCalibration);
23   void     SetClusterSharing(Bool_t sharing){fBClusterSharing=sharing;}
24   Bool_t   GetClusterSharing() const {return fBClusterSharing;}
25   Double_t GetCtgRange() const     { return fCtgRange;}
26   Double_t GetMaxSnpTracker() const{ return fMaxSnpTracker;}
27   Double_t GetMaxSnpTrack() const  { return fMaxSnpTrack;}
28   Bool_t   GetUseOuterDetectors() const { return fUseOuterDetectors;}
29   void     SetUseOuterDetectors(Bool_t flag)  { fUseOuterDetectors=flag;}
30   Double_t GetCutSharedClusters(Int_t index)const { return fCutSharedClusters[index];}
31   void  SetCutSharedClusters(Int_t index, Float_t value){ fCutSharedClusters[index]=value;}
32   Int_t GetClusterMaxRange(Int_t index)const { return fClusterMaxRange[index];}
33   void     SetClusterMaxRange(Int_t index, Int_t value){ fClusterMaxRange[index]=value;}
34   //
35   Bool_t   DumpSignal()     const  { return fDumpSignal;}
36   void     SetTimeInterval(Int_t first, Int_t last) { fFirstBin=first, fLastBin =last;}
37   Int_t    GetFirstBin() const     { return fFirstBin;}
38   Int_t    GetLastBin() const      { return fLastBin;}
39   void     SetTimeBinRange(Int_t first, Int_t last){ fFirstBin = first; fLastBin = last;}
40   Bool_t   GetCalcPedestal()       const  { return fBCalcPedestal;}
41   Bool_t   GetDoUnfold()           const  { return fBDoUnfold;}
42   void     SetDoUnfold(Bool_t unfold)     { fBDoUnfold = unfold;}
43   Float_t  GetDumpAmplitudeMin()   const  { return fDumpAmplitudeMin;}
44   Float_t  GetMaxNoise()           const  { return fMaxNoise;}  
45   //
46   Int_t   GetUseOnePadCluster()   const   { return fUseOnePadCluster;}
47   Float_t  GetMinMaxCutAbs()       const  { return fMinMaxCutAbs; }
48   Float_t  GetMinLeftRightCutAbs() const  { return fMinLeftRightCutAbs;}  // minimal amplitude left right - PRF
49   Float_t  GetMinUpDownCutAbs()    const  { return fMinUpDownCutAbs;}  // minimal amplitude up-down - TRF 
50   Float_t  GetMinMaxCutSigma()       const  { return fMinMaxCutSigma; }
51   Float_t  GetMinLeftRightCutSigma() const  { return fMinLeftRightCutSigma;}  // minimal amplitude left right - PRF
52   Float_t  GetMinUpDownCutSigma()    const  { return fMinUpDownCutSigma;}  // minimal amplitude up-down - TRF 
53   //
54   void SetUseOnePadCluster(Int_t use)      {   fUseOnePadCluster = use;}
55   void SetMinMaxCutAbs(Float_t th)         {   fMinMaxCutAbs=th; }
56   void SetMinLeftRightCutAbs(Float_t th)   {   fMinLeftRightCutAbs=th;}  // minimal amplitude left right - PRF
57   void SetMinUpDownCutAbs(Float_t th)      {   fMinUpDownCutAbs=th;}  // minimal amplitude up-down - TRF 
58   void SetMinMaxCutSigma(Float_t th)       {   fMinMaxCutSigma=th; }
59   void SetMinLeftRightCutSigma(Float_t th) {   fMinLeftRightCutSigma=th;}  // minimal amplitude left right - PRF
60   void SetMinUpDownCutSigma(Float_t th)    {   fMinUpDownCutSigma=th;}  // minimal amplitude up-down - TRF 
61   void  SetUseTotCharge(Bool_t flag) {fUseTotCharge = flag;}
62   void  SetCtgRange(Double_t ctgRange) {fCtgRange = ctgRange;}
63   void  SetUseMultiplicityCorrectionDedx(Bool_t flag) {fUseMultiplicityCorrectionDedx = flag;}
64   void  SetUseAlignmentTime(Bool_t flag) {fUseAlignmentTime = flag;}
65   void  SetNeighborRowsDedx(Int_t nRows) {fNeighborRowsDedx = nRows;}
66   //
67   Int_t    GetLastSeedRowSec()       const  { return fLastSeedRowSec;} 
68   Int_t    GetSeedGapPrim()        const  { return fSeedGapPrim;} 
69   Int_t    GetSeedGapSec()         const  { return fSeedGapSec;} 
70   void     SetDoKinks(Bool_t on)   { fBKinkFinder=on; }
71   Bool_t   GetDoKinks() const      { return fBKinkFinder;}
72   Double_t GetKinkAngleCutChi2(Int_t index) const {return fKinkAngleCutChi2[index];}
73   void     SetKinkAngleCutChi2(Int_t index,Double_t value) {fKinkAngleCutChi2[index]=value;}
74   void     SetSeedGapPrim(Int_t seedGapPrim)         { fSeedGapPrim = seedGapPrim;} 
75   void     SetSeedGapSec(Int_t seedGapSec)          { fSeedGapSec  = seedGapSec;} 
76   Float_t  GetMaxC()    const      { return fMaxC;}
77   Bool_t   GetSpecialSeeding() const { return fBSpecialSeeding;}
78   //
79   //
80
81   //
82   // Correction setup
83   //
84   void  SetUseFieldCorrection(Int_t flag){fUseFieldCorrection=flag;}
85   void  SetUseComposedCorrection(Bool_t flag){fUseComposedCorrection=flag;}
86   void  SetUseRPHICorrection(Int_t flag){fUseRPHICorrection=flag;}
87   void  SetUseRadialCorrection(Int_t flag){fUseRadialCorrection=flag;}
88   void  SetUseQuadrantAlignment(Int_t flag){fUseQuadrantAlignment=flag;}
89   void  SetUseSectorAlignment(Int_t flag){fUseSectorAlignment=flag;}
90   void  SetUseDriftCorrectionTime(Int_t flag){fUseDriftCorrectionTime=flag;}
91   void  SetUseDriftCorrectionGY(Int_t flag){fUseDriftCorrectionGY=flag;}
92   void  SetUseGainCorrectionTime(Int_t flag){fUseGainCorrectionTime=flag;}
93   void  SetUseExBCorrection(Int_t flag){fUseExBCorrection=flag;}
94   void  SetUseTOFCorrection(Bool_t flag) {fUseTOFCorrection = flag;}
95   //
96   Int_t GetUseFieldCorrection() const {return fUseFieldCorrection;}
97   Int_t GetUseComposedCorrection() const {return fUseComposedCorrection;}
98   Int_t GetUseRPHICorrection() const {return fUseRPHICorrection;}
99   Int_t GetUseRadialCorrection() const {return fUseRadialCorrection;}
100   Int_t GetUseQuadrantAlignment() const {return fUseQuadrantAlignment;}
101   Int_t GetUseSectorAlignment() const {return fUseSectorAlignment;}
102   Int_t GetUseDriftCorrectionTime() const {return fUseDriftCorrectionTime;}
103   Int_t GetUseDriftCorrectionGY() const {return fUseDriftCorrectionGY;}
104   Int_t GetUseGainCorrectionTime() const {return fUseGainCorrectionTime;}
105   Int_t GetUseExBCorrection() const {return fUseExBCorrection;}
106   Bool_t GetUseMultiplicityCorrectionDedx() const {return fUseMultiplicityCorrectionDedx;}
107   Bool_t GetUseAlignmentTime() const {return fUseAlignmentTime;}
108   //
109   Bool_t   GetUseTotCharge() const {return fUseTotCharge;}          // switch use total or max charge
110   Float_t  GetMinFraction() const {return fMinFraction;}           // truncated mean - lower threshold
111   Float_t  GetMaxFraction() const {return fMaxFaction;}            // truncated mean - upper threshold
112   Int_t    GetNeighborRowsDedx() const {return fNeighborRowsDedx;} 
113
114   Bool_t   GetUseTOFCorrection() {return fUseTOFCorrection;}
115
116   //
117   void     SetSystematicError(Double_t *systematic){ for (Int_t i=0; i<5;i++) fSystematicErrors[i]=systematic[i];}
118   const Double_t * GetSystematicError() const { return fSystematicErrors;}
119
120   static   AliTPCRecoParam *GetLowFluxParam();        // make reco parameters for low  flux env.
121   static   AliTPCRecoParam *GetHighFluxParam();       // make reco parameters for high flux env. 
122   static   AliTPCRecoParam *GetHLTParam(); // special setting for HLT  
123   static   AliTPCRecoParam *GetLaserTestParam(Bool_t bPedestal);  // special setting for laser 
124   static   AliTPCRecoParam *GetCosmicTestParam(Bool_t bPedestal); // special setting for cosmic  
125   //
126  protected:
127   Bool_t   fBClusterSharing; // allows or disable cluster sharing during tracking 
128   Double_t fCtgRange;        // +-fCtgRange is the ctg(Theta) window used for clusterization and tracking (MI) 
129   Double_t fMaxSnpTracker;   // max sin of local angle  - for TPC tracker
130   Double_t fMaxSnpTrack;     // max sin of local angle  - for track 
131   Bool_t   fUseOuterDetectors; // switch - to use the outer detectors
132   //
133   //
134   Double_t fCutSharedClusters[2]; // cut value - maximal amount  of shared clusters  
135   Int_t fClusterMaxRange[2];   // neighborhood  - to define local maxima for cluster  
136   //
137   //   clusterer parameters
138   //
139   Bool_t   fDumpSignal;      // Dump Signal information flag
140   Int_t    fFirstBin;        // first time bin used by cluster finder
141   Int_t    fLastBin;         // last time bin  used by cluster finder 
142   Bool_t   fBCalcPedestal;   // calculate Pedestal
143   Bool_t   fBDoUnfold;       // do unfolding of clusters
144   Float_t  fDumpAmplitudeMin; // minimal amplitude of signal to be dumped 
145   Float_t  fMaxNoise;        // maximal noise sigma on pad to be used in cluster finder
146   Int_t   fUseOnePadCluster; // flag - use one pad cluster -0 not use >0 use
147   Float_t  fMinMaxCutAbs;    // minimal amplitude at cluster maxima
148   Float_t  fMinLeftRightCutAbs;  // minimal amplitude left right - PRF
149   Float_t  fMinUpDownCutAbs;  // minimal amplitude up-down - TRF 
150   Float_t  fMinMaxCutSigma;    // minimal amplitude at cluster maxima
151   Float_t  fMinLeftRightCutSigma;  // minimal amplitude left right - PRF
152   Float_t  fMinUpDownCutSigma;  // minimal amplitude up-down - TRF 
153   //
154   //
155   Float_t  fMaxC;            // maximal curvature for tracking
156   Bool_t   fBSpecialSeeding; // special seeding with big inclination angles allowed (for Cosmic and laser)
157   Bool_t   fBKinkFinder;       // do kink finder reconstruction
158   Double_t fKinkAngleCutChi2[2];   // angular cut for kinks
159   Int_t    fLastSeedRowSec;     // Most Inner Row to make seeding for secondaries
160   Int_t    fSeedGapPrim;   // seeding gap for primary tracks
161   Int_t    fSeedGapSec;   // seeding gap for secondary tracks
162
163   //
164   // Correction switches
165   //
166   Int_t fUseFieldCorrection;     // use field correction
167   Bool_t fUseComposedCorrection; // flag to use composed correction
168   Int_t fUseRPHICorrection;      // use rphi correction
169   Int_t fUseRadialCorrection;    // use radial correction
170   Int_t fUseQuadrantAlignment;   // use quadrant alignment
171   Int_t fUseSectorAlignment;     // use sector alignment
172   Int_t fUseDriftCorrectionTime; // use drift correction time
173   Int_t fUseDriftCorrectionGY;   // use drif correction global y
174   Int_t fUseGainCorrectionTime;  // use gain correction time
175   Int_t fUseExBCorrection;       // use ExB correction
176   Bool_t fUseMultiplicityCorrectionDedx; // use Dedx multiplicity correction
177   Bool_t fUseAlignmentTime;              // use time dependent alignment correction
178   //
179   // dEdx switches
180   //
181   Bool_t   fUseTotCharge;          // switch use total or max charge
182   Float_t fMinFraction;           // truncated mean - lower threshold
183   Float_t fMaxFaction;            // truncated mean - upper threshold
184   Int_t   fNeighborRowsDedx;      // number of neighboring rows to identify cluster below thres in dEdx calculation 0 -> switch off
185
186   Bool_t fUseTOFCorrection;  // switch - kTRUE use TOF correction kFALSE - do not use
187   //
188   //  misscalibration 
189   //
190   Double_t fSystematicErrors[5];  //systematic errors in the track parameters - to be added to TPC covariance matrix 
191 public:   
192   static Bool_t fgUseTimeCalibration; // flag usage the time dependent calibration
193                                       // to be switched off for pass 0 reconstruction
194                                       // Use static function, other option will be to use 
195                                       // additional specific storage ?
196   ClassDef(AliTPCRecoParam, 13)
197 };
198
199
200 #endif