]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDrecoParam.cxx
more methods use the correction framework
[u/mrichter/AliRoot.git] / TRD / AliTRDrecoParam.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 ///////////////////////////////////////////////////////////////////////////////
19 //                                                                           //
20 //  Parameter class for the TRD reconstruction                               //
21 //                                                                           //
22 //  Authors:                                                                 //
23 //    Alex Bercuci <A.Bercuci@gsi.de>                                        //
24 //    Markus Fasel <M.Fasel@gsi.de>                                          //
25 //                                                                           //
26 ///////////////////////////////////////////////////////////////////////////////
27
28 #include "AliTRDrecoParam.h"
29 #include "AliTRDrawStreamBase.h"
30
31 ClassImp(AliTRDrecoParam)
32
33 //______________________________________________________________
34 AliTRDrecoParam::AliTRDrecoParam()
35   :AliDetectorRecoParam()
36   ,fkPIDMethod(kLQPID) // LQ PID
37   ,fkMaxTheta(1.0)
38   ,fkMaxPhi(2.0)
39   ,fkRoad0y(6.0)
40   ,fkRoad0z(8.5) 
41   ,fkRoad1y(2.0)
42   ,fkRoad1z(20.0)       
43   ,fkRoad2y(3.0)
44   ,fkRoad2z(20.0)
45   ,fkPlaneQualityThreshold(5.0)// 4.2? under Investigation
46   ,fkFindable(.333)
47   ,fkChi2Z(30./*14.*//*12.5*/)
48   ,fkChi2Y(.25)
49   ,fkTrackLikelihood(-15.)
50   ,fkStreamLevel(0)
51   ,fMinMaxCutSigma(4.)
52   ,fMinLeftRightCutSigma(8.)
53   ,fClusMaxThresh(4.5)
54   ,fClusSigThresh(3.5)
55   ,fTCnexp(1)
56   ,fADCbaseline(0)
57   ,fNumberOfPresamples(0)
58   ,fNumberOfPostsamples(0)
59 {
60   //
61   // Default constructor
62   //
63   SetClusterSharing(kFALSE);
64   SetSeeding(kFALSE);
65   SetVertexConstrained();
66   SetLUT();
67   SetTailCancelation();
68   SetTrackletWriteEnabled();
69   
70   fSysCovMatrix[0] = 1.; // y direction (1 cm)
71   fSysCovMatrix[1] = 1.; // z direction (1 cm)
72   fSysCovMatrix[2] = 0.; // snp
73   fSysCovMatrix[3] = 0.; // tgl
74   fSysCovMatrix[4] = 0.; // 1/pt
75 }
76
77 //______________________________________________________________
78 AliTRDrecoParam::AliTRDrecoParam(const AliTRDrecoParam &ref)
79   :AliDetectorRecoParam(ref)
80   ,fkPIDMethod(ref.fkPIDMethod)
81   ,fkMaxTheta(ref.fkMaxTheta)
82   ,fkMaxPhi(ref.fkMaxPhi)
83   ,fkRoad0y(ref.fkRoad0y)
84   ,fkRoad0z(ref.fkRoad0z) 
85   ,fkRoad1y(ref.fkRoad1y)
86   ,fkRoad1z(ref.fkRoad1z)       
87   ,fkRoad2y(ref.fkRoad2y)
88   ,fkRoad2z(ref.fkRoad2z)
89   ,fkPlaneQualityThreshold(ref.fkPlaneQualityThreshold)
90   ,fkFindable(ref.fkFindable)
91   ,fkChi2Z(ref.fkChi2Z)
92   ,fkChi2Y(ref.fkChi2Y)
93   ,fkTrackLikelihood(ref.fkTrackLikelihood)
94   ,fkStreamLevel(ref.fkStreamLevel)
95   ,fMinMaxCutSigma(ref.fMinMaxCutSigma)
96   ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma)
97   ,fClusMaxThresh(ref.fClusMaxThresh)
98   ,fClusSigThresh(ref.fClusSigThresh)
99   ,fTCnexp(ref.fTCnexp)
100   ,fADCbaseline(ref.fADCbaseline)
101   ,fNumberOfPresamples(ref.fNumberOfPresamples)
102   ,fNumberOfPostsamples(ref.fNumberOfPostsamples)
103 {
104   //
105   // Copy constructor
106   //
107   SetClusterSharing(ref.IsClusterSharing());
108   SetSeeding(ref.IsSeeding());
109   SetVertexConstrained(ref.IsVertexConstrained());
110   SetLUT(ref.IsLUT());
111   SetTailCancelation(ref.IsTailCancelation());
112   SetTrackletWriteEnabled(ref.IsTrackletWriteEnabled());
113
114   memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t));
115 }
116
117 //______________________________________________________________
118 AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam()
119 {
120   //
121   // Parameters for the low flux environment
122   //
123
124   return new AliTRDrecoParam();
125
126 }
127
128 //______________________________________________________________
129 AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam()
130 {
131   //
132   // Parameters for the high flux environment
133   //
134
135   return new AliTRDrecoParam();
136
137 }
138
139 //______________________________________________________________
140 AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam()
141 {
142   //
143   // Parameters for the cosmics data
144   //
145
146   AliTRDrawStreamBase::SetRawStreamVersion("TB");
147   AliTRDrecoParam *par = new AliTRDrecoParam();
148   par->SetADCbaseline(10);
149   par->SetSeeding();
150   par->SetVertexConstrained();
151   return par;
152
153 }