]>
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 | { | |
4ba1d6ae | 20 | public: |
21 | enum AliTRDpidMethod{ | |
22 | kLQPID = 0, | |
23 | kNNPID = 1 | |
24 | }; | |
25 | ||
26 | AliTRDrecoParam(); | |
a7ac01d2 | 27 | AliTRDrecoParam(const AliTRDrecoParam &rec); |
4ba1d6ae | 28 | ~AliTRDrecoParam() { } |
29 | ||
a7ac01d2 | 30 | Int_t GetADCbaseline() const { return fADCbaseline; }; |
4ba1d6ae | 31 | Double_t GetChi2Y() const { return fkChi2Y; } |
32 | Double_t GetChi2Z() const { return fkChi2Z; } | |
4ba1d6ae | 33 | Double_t GetFindableClusters() const { return fkFindable; } |
34 | Double_t GetMaxTheta() const { return fkMaxTheta; } | |
35 | Double_t GetMaxPhi() const { return fkMaxPhi; } | |
36 | Int_t GetNdEdxSlices() const { return fkPIDMethod == kNNPID ? kNNslices : kLQslices;} | |
37 | AliTRDpidMethod GetPIDMethod() const { return fkPIDMethod;} | |
3afdab72 | 38 | Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; } |
4ba1d6ae | 39 | Double_t GetRoad0y() const { return fkRoad0y; } |
40 | Double_t GetRoad0z() const { return fkRoad0z; } | |
4ba1d6ae | 41 | Double_t GetRoad1y() const { return fkRoad1y; } |
42 | Double_t GetRoad1z() const { return fkRoad1z; } | |
4ba1d6ae | 43 | Double_t GetRoad2y() const { return fkRoad2y; } |
44 | Double_t GetRoad2z() const { return fkRoad2z; } | |
4ba1d6ae | 45 | Double_t GetTrackLikelihood() const { return fkTrackLikelihood; } |
46 | Int_t GetStreamLevel() const { return fkStreamLevel; } | |
a7ac01d2 | 47 | inline void GetSysCovMatrix(Double_t *sys); |
4ba1d6ae | 48 | Double_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; }; |
49 | Double_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma; }; | |
50 | Double_t GetClusMaxThresh() const { return fClusMaxThresh; }; | |
51 | Double_t GetClusSigThresh() const { return fClusSigThresh; }; | |
52 | Int_t GetTCnexp() const { return fTCnexp; }; | |
4ba1d6ae | 53 | |
d20df6fc | 54 | |
4ba1d6ae | 55 | static AliTRDrecoParam *GetLowFluxParam(); |
56 | static AliTRDrecoParam *GetHighFluxParam(); | |
57 | static AliTRDrecoParam *GetCosmicTestParam(); | |
58 | ||
a7ac01d2 | 59 | Bool_t IsClusterSharing() const { return TestBit(kClusterSharing);} |
60 | Bool_t IsLUT() const { return TestBit(kLUT);} | |
61 | Bool_t IsSeeding() const { return TestBit(kSeeding); } | |
62 | Bool_t IsTailCancelation() const { return TestBit(kTC);} | |
63 | Bool_t IsVertexConstrained() const { return TestBit(kVertexConstrained); } | |
64 | ||
65 | ||
66 | void SetClusterSharing(Bool_t share = kTRUE) { SetBit(kClusterSharing, share); }; | |
4ba1d6ae | 67 | void SetPIDMethod(AliTRDpidMethod pid) { fkPIDMethod = pid; }; |
a7ac01d2 | 68 | void SetSeeding(Bool_t so = kTRUE) { SetBit(kSeeding, so); } |
69 | void SetVertexConstrained(Bool_t vc = kTRUE) { SetBit(kVertexConstrained, vc); } | |
4ba1d6ae | 70 | void SetStreamLevel(Int_t streamLevel= 1) { fkStreamLevel = streamLevel; } |
a7ac01d2 | 71 | void SetLUT(Bool_t lut = kTRUE) { SetBit(kLUT, lut);}; |
4ba1d6ae | 72 | void SetMinMaxCutSigma(Float_t minMaxCutSigma) { fMinMaxCutSigma = minMaxCutSigma; }; |
73 | void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; }; | |
74 | void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; }; | |
75 | void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; }; | |
a7ac01d2 | 76 | void SetTailCancelation(Bool_t tc = kTRUE) { SetBit(kTC, tc); }; |
4ba1d6ae | 77 | void SetNexponential(Int_t nexp) { fTCnexp = nexp; }; |
78 | void SetADCbaseline(Int_t base) { fADCbaseline = base; }; | |
3afdab72 | 79 | inline void SetSysCovMatrix(Double_t *sys); |
4ba1d6ae | 80 | |
81 | private: | |
82 | enum{ | |
a7ac01d2 | 83 | kNNslices = 8 |
84 | ,kLQslices = 3 | |
4ba1d6ae | 85 | }; |
86 | ||
a7ac01d2 | 87 | enum{ |
88 | kClusterSharing = 1 // Toggle cluster sharing | |
89 | ,kSeeding = 2 // Do stand alone tracking in the TRD | |
90 | ,kVertexConstrained = 3 // Perform vertex constrained fit | |
91 | ,kLUT = 4 // | |
92 | ,kTC = 5 // tail cancelation | |
93 | }; | |
4ba1d6ae | 94 | |
4ba1d6ae | 95 | AliTRDpidMethod fkPIDMethod; // PID method selector 0(LQ) 1(NN) |
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 | |
112 | Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit | |
113 | Int_t fkStreamLevel; // Streaming Level in TRD Reconstruction | |
114 | ||
3afdab72 | 115 | Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet |
e4f2f73d | 116 | |
a7ac01d2 | 117 | // Clusterization parameter |
4ba1d6ae | 118 | Double_t fMinMaxCutSigma; // Threshold sigma noise pad middle |
119 | Double_t fMinLeftRightCutSigma; // Threshold sigma noise sum pad | |
120 | Double_t fClusMaxThresh; // Threshold value for cluster maximum | |
121 | Double_t fClusSigThresh; // Threshold value for cluster signal | |
4ba1d6ae | 122 | Int_t fTCnexp; // Number of exponentials, digital filter |
fc546d21 | 123 | |
4ba1d6ae | 124 | // ADC parameter |
125 | Int_t fADCbaseline; // ADC baseline to be subtracted | |
9716329b | 126 | |
4ba1d6ae | 127 | ClassDef(AliTRDrecoParam, 4) // Reconstruction parameters for TRD detector |
e4f2f73d | 128 | |
129 | }; | |
3afdab72 | 130 | |
131 | //___________________________________________________ | |
132 | inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys) | |
133 | { | |
134 | if(!sys) return; | |
135 | memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t)); | |
136 | } | |
137 | ||
138 | //___________________________________________________ | |
139 | inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys) | |
140 | { | |
141 | if(!sys) return; | |
142 | memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t)); | |
143 | } | |
144 | ||
145 | ||
146 | ||
e4f2f73d | 147 | #endif |