Increase version number
[u/mrichter/AliRoot.git] / TRD / AliTRDrecoParam.h
CommitLineData
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
18class AliTRDrecoParam : public AliDetectorRecoParam
19{
7e8af32f 20
21 public:
22
23 enum AliTRDpidMethod {
4ba1d6ae 24 kLQPID = 0,
25 kNNPID = 1
26 };
27
28 AliTRDrecoParam();
a7ac01d2 29 AliTRDrecoParam(const AliTRDrecoParam &rec);
4ba1d6ae 30 ~AliTRDrecoParam() { }
31
a7ac01d2 32 Int_t GetADCbaseline() const { return fADCbaseline; };
4ba1d6ae 33 Double_t GetChi2Y() const { return fkChi2Y; }
34 Double_t GetChi2Z() const { return fkChi2Z; }
4ba1d6ae 35 Double_t GetFindableClusters() const { return fkFindable; }
36 Double_t GetMaxTheta() const { return fkMaxTheta; }
37 Double_t GetMaxPhi() const { return fkMaxPhi; }
38 Int_t GetNdEdxSlices() const { return fkPIDMethod == kNNPID ? kNNslices : kLQslices;}
39 AliTRDpidMethod GetPIDMethod() const { return fkPIDMethod;}
3afdab72 40 Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
4ba1d6ae 41 Double_t GetRoad0y() const { return fkRoad0y; }
42 Double_t GetRoad0z() const { return fkRoad0z; }
4ba1d6ae 43 Double_t GetRoad1y() const { return fkRoad1y; }
44 Double_t GetRoad1z() const { return fkRoad1z; }
4ba1d6ae 45 Double_t GetRoad2y() const { return fkRoad2y; }
46 Double_t GetRoad2z() const { return fkRoad2z; }
4ba1d6ae 47 Double_t GetTrackLikelihood() const { return fkTrackLikelihood; }
48 Int_t GetStreamLevel() const { return fkStreamLevel; }
a7ac01d2 49 inline void GetSysCovMatrix(Double_t *sys);
4ba1d6ae 50 Double_t GetMinMaxCutSigma() const { return fMinMaxCutSigma; };
51 Double_t GetMinLeftRightCutSigma() const { return fMinLeftRightCutSigma; };
52 Double_t GetClusMaxThresh() const { return fClusMaxThresh; };
53 Double_t GetClusSigThresh() const { return fClusSigThresh; };
54 Int_t GetTCnexp() const { return fTCnexp; };
7e8af32f 55 Int_t GetNumberOfPresamples() const { return fNumberOfPresamples;}
56 Int_t GetNumberOfPostsamples() const { return fNumberOfPostsamples;}
4ba1d6ae 57
4ba1d6ae 58 static AliTRDrecoParam *GetLowFluxParam();
59 static AliTRDrecoParam *GetHighFluxParam();
60 static AliTRDrecoParam *GetCosmicTestParam();
61
a7ac01d2 62 Bool_t IsClusterSharing() const { return TestBit(kClusterSharing);}
63 Bool_t IsLUT() const { return TestBit(kLUT);}
64 Bool_t IsSeeding() const { return TestBit(kSeeding); }
65 Bool_t IsTailCancelation() const { return TestBit(kTC);}
66 Bool_t IsVertexConstrained() const { return TestBit(kVertexConstrained); }
7e8af32f 67 Bool_t IsTrackletWriteEnabled() const { return fTrackletWriteEnabled; }
a7ac01d2 68
4e459a9d 69 void SetFindableClusters(Double_t r) {fkFindable = r;}
a7ac01d2 70 void SetClusterSharing(Bool_t share = kTRUE) { SetBit(kClusterSharing, share); };
4ba1d6ae 71 void SetPIDMethod(AliTRDpidMethod pid) { fkPIDMethod = pid; };
7e8af32f 72 void SetSeeding(Bool_t so = kTRUE) { SetBit(kSeeding, so); }
73 void SetVertexConstrained(Bool_t vc = kTRUE) { SetBit(kVertexConstrained, vc); }
4ba1d6ae 74 void SetStreamLevel(Int_t streamLevel= 1) { fkStreamLevel = streamLevel; }
7e8af32f 75 void SetLUT(Bool_t lut = kTRUE) { SetBit(kLUT, lut);};
4ba1d6ae 76 void SetMinMaxCutSigma(Float_t minMaxCutSigma) { fMinMaxCutSigma = minMaxCutSigma; };
77 void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; };
78 void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; };
79 void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; };
7e8af32f 80 void SetTailCancelation(Bool_t tc = kTRUE) { SetBit(kTC, tc); };
4ba1d6ae 81 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
82 void SetADCbaseline(Int_t base) { fADCbaseline = base; };
3afdab72 83 inline void SetSysCovMatrix(Double_t *sys);
4e459a9d 84 void SetNumberOfPresamples(Int_t n) {fNumberOfPresamples = n;}
85 void SetNumberOfPostsamples(Int_t n) {fNumberOfPostsamples = n;}
9c7c9ec1 86 void SetTrackletWriteEnabled(Bool_t enablewritetracklet = kFALSE) { fTrackletWriteEnabled = enablewritetracklet; };
87
7e8af32f 88 private:
4ba1d6ae 89
4ba1d6ae 90 enum{
a7ac01d2 91 kNNslices = 8
92 ,kLQslices = 3
4ba1d6ae 93 };
94
a7ac01d2 95 enum{
96 kClusterSharing = 1 // Toggle cluster sharing
97 ,kSeeding = 2 // Do stand alone tracking in the TRD
98 ,kVertexConstrained = 3 // Perform vertex constrained fit
99 ,kLUT = 4 //
100 ,kTC = 5 // tail cancelation
101 };
4ba1d6ae 102
4ba1d6ae 103 AliTRDpidMethod fkPIDMethod; // PID method selector 0(LQ) 1(NN)
104 Double_t fkMaxTheta; // Maximum theta
105 Double_t fkMaxPhi; // Maximum phi
106
107 Double_t fkRoad0y; // Road for middle cluster
108 Double_t fkRoad0z; // Road for middle cluster
109
110 Double_t fkRoad1y; // Road in y for seeded cluster
111 Double_t fkRoad1z; // Road in z for seeded cluster
112
113 Double_t fkRoad2y; // Road in y for extrapolated cluster
114 Double_t fkRoad2z; // Road in z for extrapolated cluster
115
116 Double_t fkPlaneQualityThreshold; // Quality threshold
117 Double_t fkFindable; // Ratio of clusters from a track in one chamber which are at minimum supposed to be found.
118 Double_t fkChi2Z; // Max chi2 on the z direction for seeding clusters fit
119 Double_t fkChi2Y; // Max chi2 on the y direction for seeding clusters Rieman fit
120 Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit
121 Int_t fkStreamLevel; // Streaming Level in TRD Reconstruction
122
3afdab72 123 Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet
e4f2f73d 124
a7ac01d2 125 // Clusterization parameter
4ba1d6ae 126 Double_t fMinMaxCutSigma; // Threshold sigma noise pad middle
127 Double_t fMinLeftRightCutSigma; // Threshold sigma noise sum pad
128 Double_t fClusMaxThresh; // Threshold value for cluster maximum
129 Double_t fClusSigThresh; // Threshold value for cluster signal
4ba1d6ae 130 Int_t fTCnexp; // Number of exponentials, digital filter
fc546d21 131
4ba1d6ae 132 // ADC parameter
133 Int_t fADCbaseline; // ADC baseline to be subtracted
4e459a9d 134 Int_t fNumberOfPresamples; // number of presamples
135 Int_t fNumberOfPostsamples; // number of postsamples
9716329b 136
9c7c9ec1 137 // Tracklet writing Switch
138 Bool_t fTrackletWriteEnabled; // Switch for writing tracklets
139
7e8af32f 140 ClassDef(AliTRDrecoParam, 5) // Reconstruction parameters for TRD detector
e4f2f73d 141
142};
3afdab72 143
144//___________________________________________________
145inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys)
146{
147 if(!sys) return;
148 memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t));
149}
150
151//___________________________________________________
152inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys)
153{
154 if(!sys) return;
155 memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t));
156}
157
e4f2f73d 158#endif