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 GetFindableClusters() const { return fkFindable; }
28 Double_t GetMaxTheta() const { return fkMaxTheta; }
29 Double_t GetMaxPhi() const { return fkMaxPhi; }
30 Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
31 Double_t GetRoad0y() const { return fkRoad0y; }
32 Double_t GetRoad0z() const { return fkRoad0z; }
33 Double_t GetRoad1y() const { return fkRoad1y; }
34 Double_t GetRoad1z() const { return fkRoad1z; }
35 Double_t GetRoad2y() const { return fkRoad2y; }
36 Double_t GetRoad2z() const { return fkRoad2z; }
37 Double_t GetTrackLikelihood() const { return fkTrackLikelihood; }
38 inline void GetSysCovMatrix(Double_t *sys) const;
39 Double_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; };
40 Double_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma; };
41 Double_t GetClusMaxThresh() const { return fClusMaxThresh; };
42 Double_t GetClusSigThresh() const { return fClusSigThresh; };
43 Int_t GetTCnexp() const { return fTCnexp; };
44 Int_t GetNumberOfPresamples() const {return fNumberOfPresamples;}
45 Int_t GetNumberOfPostsamples() const {return fNumberOfPostsamples;}
48 static AliTRDrecoParam *GetLowFluxParam();
49 static AliTRDrecoParam *GetHighFluxParam();
50 static AliTRDrecoParam *GetCosmicTestParam();
52 Bool_t IsClusterSharing() const { return TestBit(kClusterSharing);}
53 Bool_t IsLUT() const { return TestBit(kLUT);}
54 Bool_t IsTailCancelation() const { return TestBit(kTC);}
55 Bool_t IsVertexConstrained() const { return TestBit(kVertexConstrained); }
58 void SetFindableClusters(Double_t r) {fkFindable = r;}
59 void SetClusterSharing(Bool_t share = kTRUE) { SetBit(kClusterSharing, share); };
60 void SetVertexConstrained(Bool_t vc = kTRUE) { SetBit(kVertexConstrained, vc); }
61 void SetLUT(Bool_t lut = kTRUE) { SetBit(kLUT, lut);};
62 void SetMinMaxCutSigma(Float_t minMaxCutSigma) { fMinMaxCutSigma = minMaxCutSigma; };
63 void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; };
64 void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; };
65 void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; };
66 void SetTailCancelation(Bool_t tc = kTRUE) { SetBit(kTC, tc); };
67 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
68 inline void SetSysCovMatrix(Double_t *sys);
69 void SetNumberOfPresamples(Int_t n) {fNumberOfPresamples = n;}
70 void SetNumberOfPostsamples(Int_t n) {fNumberOfPostsamples = n;}
74 kClusterSharing = 1 // Toggle cluster sharing
75 ,kVertexConstrained = 2 // Perform vertex constrained fit
77 ,kTC = 4 // tail cancelation
80 Double_t fkMaxTheta; // Maximum theta
81 Double_t fkMaxPhi; // Maximum phi
83 Double_t fkRoad0y; // Road for middle cluster
84 Double_t fkRoad0z; // Road for middle cluster
86 Double_t fkRoad1y; // Road in y for seeded cluster
87 Double_t fkRoad1z; // Road in z for seeded cluster
89 Double_t fkRoad2y; // Road in y for extrapolated cluster
90 Double_t fkRoad2z; // Road in z for extrapolated cluster
92 Double_t fkPlaneQualityThreshold; // Quality threshold
93 Double_t fkFindable; // Ratio of clusters from a track in one chamber which are at minimum supposed to be found.
94 Double_t fkChi2Z; // Max chi2 on the z direction for seeding clusters fit
95 Double_t fkChi2Y; // Max chi2 on the y direction for seeding clusters Rieman fit
96 Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit
98 Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet
100 // Clusterization parameter
101 Double_t fMinMaxCutSigma; // Threshold sigma noise pad middle
102 Double_t fMinLeftRightCutSigma; // Threshold sigma noise sum pad
103 Double_t fClusMaxThresh; // Threshold value for cluster maximum
104 Double_t fClusSigThresh; // Threshold value for cluster signal
105 Int_t fTCnexp; // Number of exponentials, digital filter
108 Int_t fNumberOfPresamples; // number of presamples
109 Int_t fNumberOfPostsamples; // number of postsamples
111 ClassDef(AliTRDrecoParam, 4) // Reconstruction parameters for TRD detector
115 //___________________________________________________
116 inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys) const
119 memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t));
122 //___________________________________________________
123 inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys)
126 memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t));