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 */
8 ////////////////////////////////////////////////////////////////////////////
10 // Parameter class for the TRD reconstruction //
12 ////////////////////////////////////////////////////////////////////////////
14 #ifndef ALIDETECTORRECOPARAM_H
15 #include "AliDetectorRecoParam.h"
18 class AliTRDrecoParam : public AliDetectorRecoParam
22 AliTRDrecoParam(const AliTRDrecoParam &rec);
23 ~AliTRDrecoParam() { }
25 Double_t GetChi2Y() const { return fkChi2Y; }
26 Double_t GetChi2Z() const { return fkChi2Z; }
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; }
32 Double_t GetFindableClusters() const { return fkFindable; }
33 Double_t GetMaxTheta() const { return fkMaxTheta; }
34 Double_t GetMaxPhi() const { return fkMaxPhi; }
35 Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
36 Double_t GetRoad0y() const { return fkRoad0y; }
37 Double_t GetRoad0z() const { return fkRoad0z; }
38 Double_t GetRoad1y() const { return fkRoad1y; }
39 Double_t GetRoad1z() const { return fkRoad1z; }
40 Double_t GetRoad2y() const { return fkRoad2y; }
41 Double_t GetRoad2z() const { return fkRoad2z; }
42 Double_t GetTrackLikelihood() const { return fkTrackLikelihood; }
43 inline void GetSysCovMatrix(Double_t *sys) const;
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; };
49 Int_t GetNumberOfPresamples() const {return fNumberOfPresamples;}
50 Int_t GetNumberOfPostsamples() const {return fNumberOfPostsamples;}
53 static AliTRDrecoParam *GetLowFluxParam();
54 static AliTRDrecoParam *GetHighFluxParam();
55 static AliTRDrecoParam *GetCosmicTestParam();
57 Bool_t IsClusterSharing() const { return TestBit(kClusterSharing);}
58 Bool_t IsLUT() const { return TestBit(kLUT);}
59 Bool_t IsTailCancelation() const { return TestBit(kTC);}
60 Bool_t IsVertexConstrained() const { return TestBit(kVertexConstrained); }
61 Bool_t HasImproveTracklets() const { return TestBit(kImproveTracklet); }
63 void SetMaxTheta(Double_t maxTheta) {fkMaxTheta = maxTheta;}
64 void SetMaxPhi(Double_t maxPhi) {fkMaxPhi = maxPhi;}
65 void SetFindableClusters(Double_t r) {fkFindable = r;}
66 void SetChi2Y(Double_t chi2) {fkChi2Y = chi2;}
67 void SetChi2Z(Double_t chi2) {fkChi2Z = chi2;}
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;}
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; }
78 void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; };
79 void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; };
80 void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; };
81 void SetTailCancelation(Bool_t tc = kTRUE) { SetBit(kTC, tc); };
82 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
83 inline void SetSysCovMatrix(Double_t *sys);
84 void SetNumberOfPresamples(Int_t n) { fNumberOfPresamples = n;}
85 void SetNumberOfPostsamples(Int_t n) { fNumberOfPostsamples = n;}
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
96 Double_t fkMaxTheta; // Maximum theta
97 Double_t fkMaxPhi; // Maximum phi
99 Double_t fkRoad0y; // Road for middle cluster
100 Double_t fkRoad0z; // Road for middle cluster
102 Double_t fkRoad1y; // Road in y for seeded cluster
103 Double_t fkRoad1z; // Road in z for seeded cluster
105 Double_t fkRoad2y; // Road in y for extrapolated cluster
106 Double_t fkRoad2z; // Road in z for extrapolated cluster
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
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
117 Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit
119 Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet
121 // Clusterization parameter
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
126 Int_t fTCnexp; // Number of exponentials, digital filter
129 Int_t fNumberOfPresamples; // number of presamples
130 Int_t fNumberOfPostsamples; // number of postsamples
132 ClassDef(AliTRDrecoParam, 4) // Reconstruction parameters for TRD detector
136 //___________________________________________________
137 inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys) const
140 memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t));
143 //___________________________________________________
144 inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys)
147 memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t));