]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDrecoParam.cxx
8379da371633d1551cec838d2d9114b51f88cc3b
[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   ,fkMaxTheta(1.0)
37   ,fkMaxPhi(2.0)
38   ,fkRoad0y(6.0)
39   ,fkRoad0z(8.5) 
40   ,fkRoad1y(2.0)
41   ,fkRoad1z(20.0)       
42   ,fkRoad2y(3.0)
43   ,fkRoad2z(20.0)
44   ,fkPlaneQualityThreshold(5.0)// 4.2? under Investigation
45   ,fkFindable(.333)
46   ,fkChi2Z(30./*14.*//*12.5*/)
47   ,fkChi2Y(.25)
48   ,fkTrackLikelihood(-15.)
49   ,fMinMaxCutSigma(4.)
50   ,fMinLeftRightCutSigma(8.)
51   ,fClusMaxThresh(4.5)
52   ,fClusSigThresh(3.5)
53   ,fTCnexp(2)
54   ,fNumberOfPresamples(0)
55   ,fNumberOfPostsamples(0)
56 {
57   //
58   // Default constructor
59   //
60   SetTailCancelation();
61   SetLUT();
62   SetClusterSharing(kFALSE);
63   SetVertexConstrained();
64   SetImproveTracklets(kFALSE);
65
66   fSysCovMatrix[0] = 1.; // y direction (1 cm)
67   fSysCovMatrix[1] = 1.; // z direction (1 cm)
68   fSysCovMatrix[2] = 0.; // snp
69   fSysCovMatrix[3] = 0.; // tgl
70   fSysCovMatrix[4] = 0.; // 1/pt
71 }
72
73 //______________________________________________________________
74 AliTRDrecoParam::AliTRDrecoParam(const AliTRDrecoParam &ref)
75   :AliDetectorRecoParam(ref)
76   ,fkMaxTheta(ref.fkMaxTheta)
77   ,fkMaxPhi(ref.fkMaxPhi)
78   ,fkRoad0y(ref.fkRoad0y)
79   ,fkRoad0z(ref.fkRoad0z) 
80   ,fkRoad1y(ref.fkRoad1y)
81   ,fkRoad1z(ref.fkRoad1z)       
82   ,fkRoad2y(ref.fkRoad2y)
83   ,fkRoad2z(ref.fkRoad2z)
84   ,fkPlaneQualityThreshold(ref.fkPlaneQualityThreshold)
85   ,fkFindable(ref.fkFindable)
86   ,fkChi2Z(ref.fkChi2Z)
87   ,fkChi2Y(ref.fkChi2Y)
88   ,fkTrackLikelihood(ref.fkTrackLikelihood)
89   ,fMinMaxCutSigma(ref.fMinMaxCutSigma)
90   ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma)
91   ,fClusMaxThresh(ref.fClusMaxThresh)
92   ,fClusSigThresh(ref.fClusSigThresh)
93   ,fTCnexp(ref.fTCnexp)
94   ,fNumberOfPresamples(ref.fNumberOfPresamples)
95   ,fNumberOfPostsamples(ref.fNumberOfPostsamples)
96 {
97   //
98   // Copy constructor
99   //
100   SetClusterSharing(ref.IsClusterSharing());
101   SetVertexConstrained(ref.IsVertexConstrained());
102   SetLUT(ref.IsLUT());
103   SetTailCancelation(ref.IsTailCancelation());
104   SetImproveTracklets(ref.HasImproveTracklets());
105
106   memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t));
107 }
108
109 //______________________________________________________________
110 AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam()
111 {
112   //
113   // Parameters for the low flux environment
114   //
115
116   return new AliTRDrecoParam();
117
118 }
119
120 //______________________________________________________________
121 AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam()
122 {
123   //
124   // Parameters for the high flux environment
125   //
126
127   AliTRDrecoParam *rec = new AliTRDrecoParam();
128   rec->SetImproveTracklets(kTRUE);
129   return rec;
130
131 }
132
133 //______________________________________________________________
134 AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam()
135 {
136   //
137   // Parameters for the cosmics data
138   //
139
140   AliTRDrawStreamBase::SetRawStreamVersion("TB");
141   AliTRDrecoParam *par = new AliTRDrecoParam();
142   par->SetVertexConstrained();
143   return par;
144
145 }