]>
Commit | Line | Data |
---|---|---|
e4f2f73d | 1 | #ifndef ALITRDRECOPARAM_H |
2 | #define ALITRDRECOPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4ba1d6ae | 4 | * See cxx source for full Copyright notice */ |
e4f2f73d | 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 | { | |
3c66288b | 20 | public: |
4ba1d6ae | 21 | AliTRDrecoParam(); |
a7ac01d2 | 22 | AliTRDrecoParam(const AliTRDrecoParam &rec); |
4ba1d6ae | 23 | ~AliTRDrecoParam() { } |
24 | ||
25 | Double_t GetChi2Y() const { return fkChi2Y; } | |
26 | Double_t GetChi2Z() const { return fkChi2Z; } | |
91834b8d | 27 | Double_t GetChi2YCut() const { return fkChi2YCut; } |
28 | Double_t GetChi2ZCut() const { return fkChi2ZCut; } | |
29 | Double_t GetPhiCut() const { return fkPhiCut; } | |
30 | Double_t GetMeanNclusters() const { return fkMeanNclusters; } | |
31 | Double_t GetSigmaNclusters() const { return fkSigmaNclusters; } | |
4ba1d6ae | 32 | Double_t GetFindableClusters() const { return fkFindable; } |
33 | Double_t GetMaxTheta() const { return fkMaxTheta; } | |
34 | Double_t GetMaxPhi() const { return fkMaxPhi; } | |
3afdab72 | 35 | Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; } |
4ba1d6ae | 36 | Double_t GetRoad0y() const { return fkRoad0y; } |
37 | Double_t GetRoad0z() const { return fkRoad0z; } | |
4ba1d6ae | 38 | Double_t GetRoad1y() const { return fkRoad1y; } |
39 | Double_t GetRoad1z() const { return fkRoad1z; } | |
4ba1d6ae | 40 | Double_t GetRoad2y() const { return fkRoad2y; } |
41 | Double_t GetRoad2z() const { return fkRoad2z; } | |
4ba1d6ae | 42 | Double_t GetTrackLikelihood() const { return fkTrackLikelihood; } |
7e88424f | 43 | inline void GetSysCovMatrix(Double_t *sys) const; |
4ba1d6ae | 44 | Double_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; }; |
45 | Double_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma; }; | |
46 | Double_t GetClusMaxThresh() const { return fClusMaxThresh; }; | |
47 | Double_t GetClusSigThresh() const { return fClusSigThresh; }; | |
48 | Int_t GetTCnexp() const { return fTCnexp; }; | |
3c66288b | 49 | Int_t GetNumberOfPresamples() const {return fNumberOfPresamples;} |
50 | Int_t GetNumberOfPostsamples() const {return fNumberOfPostsamples;} | |
4ba1d6ae | 51 | |
3c66288b | 52 | |
4ba1d6ae | 53 | static AliTRDrecoParam *GetLowFluxParam(); |
54 | static AliTRDrecoParam *GetHighFluxParam(); | |
55 | static AliTRDrecoParam *GetCosmicTestParam(); | |
56 | ||
a7ac01d2 | 57 | Bool_t IsClusterSharing() const { return TestBit(kClusterSharing);} |
58 | Bool_t IsLUT() const { return TestBit(kLUT);} | |
a7ac01d2 | 59 | Bool_t IsTailCancelation() const { return TestBit(kTC);} |
60 | Bool_t IsVertexConstrained() const { return TestBit(kVertexConstrained); } | |
fb872574 | 61 | Bool_t HasImproveTracklets() const { return TestBit(kImproveTracklet); } |
3c66288b | 62 | |
91834b8d | 63 | void SetMaxTheta(Double_t maxTheta) {fkMaxTheta = maxTheta;} |
64 | void SetMaxPhi(Double_t maxPhi) {fkMaxPhi = maxPhi;} | |
4e459a9d | 65 | void SetFindableClusters(Double_t r) {fkFindable = r;} |
0c19b2c9 | 66 | void SetChi2Y(Double_t chi2) {fkChi2Y = chi2;} |
67 | void SetChi2Z(Double_t chi2) {fkChi2Z = chi2;} | |
91834b8d | 68 | void SetChi2YCut(Double_t chi2YCut) {fkChi2YCut = chi2YCut;} |
69 | void SetChi2ZCut(Double_t chi2ZCut) {fkChi2ZCut = chi2ZCut;} | |
70 | void SetPhiCut(Double_t phiCut) {fkPhiCut = phiCut;} | |
71 | void SetMeanNclusters(Double_t meanNclusters) {fkMeanNclusters = meanNclusters;} | |
72 | void SetSigmaNclusters(Double_t sigmaNclusters) {fkSigmaNclusters = sigmaNclusters;} | |
fb872574 | 73 | void SetClusterSharing(Bool_t share = kTRUE) { SetBit(kClusterSharing, share);} |
74 | void SetImproveTracklets(Bool_t improve = kTRUE) { SetBit(kImproveTracklet, improve);} | |
75 | void SetVertexConstrained(Bool_t vc = kTRUE) { SetBit(kVertexConstrained, vc); } | |
76 | void SetLUT(Bool_t lut = kTRUE) { SetBit(kLUT, lut);}; | |
77 | void SetMinMaxCutSigma(Float_t minMaxCutSigma) { fMinMaxCutSigma = minMaxCutSigma; } | |
4ba1d6ae | 78 | void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; }; |
79 | void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; }; | |
80 | void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; }; | |
fb872574 | 81 | void SetTailCancelation(Bool_t tc = kTRUE) { SetBit(kTC, tc); }; |
4ba1d6ae | 82 | void SetNexponential(Int_t nexp) { fTCnexp = nexp; }; |
3afdab72 | 83 | inline void SetSysCovMatrix(Double_t *sys); |
fb872574 | 84 | void SetNumberOfPresamples(Int_t n) { fNumberOfPresamples = n;} |
85 | void SetNumberOfPostsamples(Int_t n) { fNumberOfPostsamples = n;} | |
4ba1d6ae | 86 | |
3c66288b | 87 | private: |
a7ac01d2 | 88 | enum{ |
fb872574 | 89 | kTC = BIT(14) // tail cancelation |
90 | ,kLUT = BIT(15) // look up table for cluster position determination | |
91 | ,kClusterSharing = BIT(16) // Toggle cluster sharing | |
92 | ,kVertexConstrained = BIT(17) // Perform vertex constrained fit | |
93 | ,kImproveTracklet = BIT(18) // Improve tracklet in the SA TRD track finder | |
a7ac01d2 | 94 | }; |
4ba1d6ae | 95 | |
4ba1d6ae | 96 | Double_t fkMaxTheta; // Maximum theta |
97 | Double_t fkMaxPhi; // Maximum phi | |
98 | ||
99 | Double_t fkRoad0y; // Road for middle cluster | |
100 | Double_t fkRoad0z; // Road for middle cluster | |
101 | ||
102 | Double_t fkRoad1y; // Road in y for seeded cluster | |
103 | Double_t fkRoad1z; // Road in z for seeded cluster | |
104 | ||
105 | Double_t fkRoad2y; // Road in y for extrapolated cluster | |
106 | Double_t fkRoad2z; // Road in z for extrapolated cluster | |
107 | ||
108 | Double_t fkPlaneQualityThreshold; // Quality threshold | |
109 | Double_t fkFindable; // Ratio of clusters from a track in one chamber which are at minimum supposed to be found. | |
110 | Double_t fkChi2Z; // Max chi2 on the z direction for seeding clusters fit | |
111 | Double_t fkChi2Y; // Max chi2 on the y direction for seeding clusters Rieman fit | |
91834b8d | 112 | Double_t fkChi2YCut; // Cut on the Chi2 in y-direction in the likelihood filter |
113 | Double_t fkChi2ZCut; // Cut on the Chi2 in z-direction in the likelihood filter | |
114 | Double_t fkPhiCut; // Cut on the deviation of the phi angles between tracklet and track fit (lik. filter) | |
115 | Double_t fkMeanNclusters; // Mean of the distribution of the number of clusters per tracklet | |
116 | Double_t fkSigmaNclusters; // Sigma of the distribution of the number of clusters per tracklet | |
4ba1d6ae | 117 | Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit |
4ba1d6ae | 118 | |
3afdab72 | 119 | Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet |
e4f2f73d | 120 | |
a7ac01d2 | 121 | // Clusterization parameter |
4ba1d6ae | 122 | Double_t fMinMaxCutSigma; // Threshold sigma noise pad middle |
123 | Double_t fMinLeftRightCutSigma; // Threshold sigma noise sum pad | |
124 | Double_t fClusMaxThresh; // Threshold value for cluster maximum | |
125 | Double_t fClusSigThresh; // Threshold value for cluster signal | |
4ba1d6ae | 126 | Int_t fTCnexp; // Number of exponentials, digital filter |
fc546d21 | 127 | |
4ba1d6ae | 128 | // ADC parameter |
4e459a9d | 129 | Int_t fNumberOfPresamples; // number of presamples |
130 | Int_t fNumberOfPostsamples; // number of postsamples | |
9716329b | 131 | |
3a039a31 | 132 | ClassDef(AliTRDrecoParam, 4) // Reconstruction parameters for TRD detector |
e4f2f73d | 133 | |
134 | }; | |
3afdab72 | 135 | |
136 | //___________________________________________________ | |
7e88424f | 137 | inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys) const |
3afdab72 | 138 | { |
139 | if(!sys) return; | |
140 | memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t)); | |
141 | } | |
142 | ||
143 | //___________________________________________________ | |
144 | inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys) | |
145 | { | |
146 | if(!sys) return; | |
147 | memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t)); | |
148 | } | |
149 | ||
3c66288b | 150 | |
151 | ||
e4f2f73d | 152 | #endif |