]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDrecoParam.h
Added protection against division by zero
[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{
4ba1d6ae 20public:
21 enum AliTRDpidMethod{
22 kLQPID = 0,
23 kNNPID = 1
24 };
25
26 AliTRDrecoParam();
27 ~AliTRDrecoParam() { }
28
29 Double_t GetChi2Y() const { return fkChi2Y; }
30 Double_t GetChi2Z() const { return fkChi2Z; }
31 Bool_t GetClusterSharing() const { return fkClusterSharing;}
32 Double_t GetFindableClusters() const { return fkFindable; }
33 Double_t GetMaxTheta() const { return fkMaxTheta; }
34 Double_t GetMaxPhi() const { return fkMaxPhi; }
35 Int_t GetNdEdxSlices() const { return fkPIDMethod == kNNPID ? kNNslices : kLQslices;}
36 AliTRDpidMethod GetPIDMethod() const { return fkPIDMethod;}
3afdab72 37 Double_t GetPlaneQualityThreshold() const { return fkPlaneQualityThreshold; }
4ba1d6ae 38 Double_t GetRoad0y() const { return fkRoad0y; }
39 Double_t GetRoad0z() const { return fkRoad0z; }
4ba1d6ae 40 Double_t GetRoad1y() const { return fkRoad1y; }
41 Double_t GetRoad1z() const { return fkRoad1z; }
4ba1d6ae 42 Double_t GetRoad2y() const { return fkRoad2y; }
43 Double_t GetRoad2z() const { return fkRoad2z; }
4ba1d6ae 44 Double_t GetTrackLikelihood() const { return fkTrackLikelihood; }
45 Int_t GetStreamLevel() const { return fkStreamLevel; }
3afdab72 46 inline void GetSysCovMatrix(Double_t *sys);
4ba1d6ae 47
4ba1d6ae 48 Bool_t IsVertexConstrained() const { return fVertexConstrained; }
49
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; };
55 Bool_t LUTOn() const { return fLUTOn; };
56 Bool_t TCOn() const { return fTCOn; };
57
58 Int_t GetADCbaseline() const { return fADCbaseline; };
d20df6fc 59
4ba1d6ae 60 static AliTRDrecoParam *GetLowFluxParam();
61 static AliTRDrecoParam *GetHighFluxParam();
62 static AliTRDrecoParam *GetCosmicTestParam();
63
64 void SetClusterSharing(Bool_t share = kTRUE) { fkClusterSharing = share; };
65 void SetPIDMethod(AliTRDpidMethod pid) { fkPIDMethod = pid; };
66 void SetSeedingOn(Bool_t seedingOn = kTRUE) { fSeedingOn = seedingOn; }
67 void SetVertexConstrained(Bool_t vertexConstrained = kTRUE) { fVertexConstrained = vertexConstrained; }
68 void SetStreamLevel(Int_t streamLevel= 1) { fkStreamLevel = streamLevel; }
69 void SetLUT(Int_t lutOn = 1) { fLUTOn = lutOn; };
70 void SetMinMaxCutSigma(Float_t minMaxCutSigma) { fMinMaxCutSigma = minMaxCutSigma; };
71 void SetMinLeftRightCutSigma(Float_t minLeftRightCutSigma) { fMinLeftRightCutSigma = minLeftRightCutSigma; };
72 void SetClusMaxThresh(Float_t thresh) { fClusMaxThresh = thresh; };
73 void SetClusSigThresh(Float_t thresh) { fClusSigThresh = thresh; };
74 void SetTailCancelation(Int_t tcOn = 1) { fTCOn = tcOn; };
75 void SetNexponential(Int_t nexp) { fTCnexp = nexp; };
76 void SetADCbaseline(Int_t base) { fADCbaseline = base; };
3afdab72 77 Bool_t SeedingOn() const { return fSeedingOn; }
78 inline void SetSysCovMatrix(Double_t *sys);
4ba1d6ae 79
80private:
81 enum{
82 kNNslices = 8,
83 kLQslices = 3
84 };
85
86
87 // Tracking parameters
88 Bool_t fkClusterSharing; // Toggle cluster sharing
89 AliTRDpidMethod fkPIDMethod; // PID method selector 0(LQ) 1(NN)
90 Double_t fkMaxTheta; // Maximum theta
91 Double_t fkMaxPhi; // Maximum phi
92
93 Double_t fkRoad0y; // Road for middle cluster
94 Double_t fkRoad0z; // Road for middle cluster
95
96 Double_t fkRoad1y; // Road in y for seeded cluster
97 Double_t fkRoad1z; // Road in z for seeded cluster
98
99 Double_t fkRoad2y; // Road in y for extrapolated cluster
100 Double_t fkRoad2z; // Road in z for extrapolated cluster
101
102 Double_t fkPlaneQualityThreshold; // Quality threshold
103 Double_t fkFindable; // Ratio of clusters from a track in one chamber which are at minimum supposed to be found.
104 Double_t fkChi2Z; // Max chi2 on the z direction for seeding clusters fit
105 Double_t fkChi2Y; // Max chi2 on the y direction for seeding clusters Rieman fit
106 Double_t fkTrackLikelihood; // Track likelihood for tracklets Rieman fit
107 Int_t fkStreamLevel; // Streaming Level in TRD Reconstruction
108
109 Bool_t fSeedingOn; // Do stand alone tracking in the TRD
110 Bool_t fVertexConstrained; // Perform vertex constrained fit
3afdab72 111 Double_t fSysCovMatrix[5]; // Systematic uncertainty from calibration and alignment for each tracklet
e4f2f73d 112
fc546d21 113 // Clusterization parameter
4ba1d6ae 114 Double_t fMinMaxCutSigma; // Threshold sigma noise pad middle
115 Double_t fMinLeftRightCutSigma; // Threshold sigma noise sum pad
116 Double_t fClusMaxThresh; // Threshold value for cluster maximum
117 Double_t fClusSigThresh; // Threshold value for cluster signal
118 Int_t fLUTOn; // Switch for the lookup table method
119 Int_t fTCOn; // Switch for the tail cancelation
120 Int_t fTCnexp; // Number of exponentials, digital filter
fc546d21 121
4ba1d6ae 122 // ADC parameter
123 Int_t fADCbaseline; // ADC baseline to be subtracted
9716329b 124
4ba1d6ae 125 ClassDef(AliTRDrecoParam, 4) // Reconstruction parameters for TRD detector
e4f2f73d 126
127};
3afdab72 128
129//___________________________________________________
130inline void AliTRDrecoParam::GetSysCovMatrix(Double_t *sys)
131{
132 if(!sys) return;
133 memcpy(sys, fSysCovMatrix, 5*sizeof(Double_t));
134}
135
136//___________________________________________________
137inline void AliTRDrecoParam::SetSysCovMatrix(Double_t *sys)
138{
139 if(!sys) return;
140 memcpy(fSysCovMatrix, sys, 5*sizeof(Double_t));
141}
142
143
144
e4f2f73d 145#endif