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