1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // Parameter class for the TRD reconstruction //
23 // Alex Bercuci <A.Bercuci@gsi.de> //
24 // Markus Fasel <M.Fasel@gsi.de> //
26 ///////////////////////////////////////////////////////////////////////////////
28 #include "AliTRDrecoParam.h"
29 #include "AliTRDrawStreamBase.h"
31 ClassImp(AliTRDrecoParam)
33 //______________________________________________________________
34 AliTRDrecoParam::AliTRDrecoParam()
35 :AliDetectorRecoParam()
44 ,fkPlaneQualityThreshold(5.0)// 4.2? under Investigation
46 ,fkChi2Z(30./*14.*//*12.5*/)
52 ,fkSigmaNclusters(5.2632)
53 ,fkTrackLikelihood(-15.)
55 ,fMinLeftRightCutSigma(8.)
59 ,fNumberOfPresamples(0)
60 ,fNumberOfPostsamples(0)
63 // Default constructor
67 SetClusterSharing(kFALSE);
68 SetVertexConstrained();
69 SetImproveTracklets(kFALSE);
71 fSysCovMatrix[0] = 1.; // y direction (1 cm)
72 fSysCovMatrix[1] = 1.; // z direction (1 cm)
73 fSysCovMatrix[2] = 0.; // snp
74 fSysCovMatrix[3] = 0.; // tgl
75 fSysCovMatrix[4] = 0.; // 1/pt
78 //______________________________________________________________
79 AliTRDrecoParam::AliTRDrecoParam(const AliTRDrecoParam &ref)
80 :AliDetectorRecoParam(ref)
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)
93 ,fkChi2YCut(ref.fkChi2YCut)
94 ,fkPhiCut(ref.fkPhiCut)
95 ,fkMeanNclusters(ref.fkMeanNclusters)
96 ,fkSigmaNclusters(ref.fkSigmaNclusters)
97 ,fkTrackLikelihood(ref.fkTrackLikelihood)
98 ,fMinMaxCutSigma(ref.fMinMaxCutSigma)
99 ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma)
100 ,fClusMaxThresh(ref.fClusMaxThresh)
101 ,fClusSigThresh(ref.fClusSigThresh)
102 ,fTCnexp(ref.fTCnexp)
103 ,fNumberOfPresamples(ref.fNumberOfPresamples)
104 ,fNumberOfPostsamples(ref.fNumberOfPostsamples)
109 SetClusterSharing(ref.IsClusterSharing());
110 SetVertexConstrained(ref.IsVertexConstrained());
112 SetTailCancelation(ref.IsTailCancelation());
113 SetImproveTracklets(ref.HasImproveTracklets());
115 memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t));
118 //______________________________________________________________
119 AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam()
122 // Parameters for the low flux environment
125 return new AliTRDrecoParam();
129 //______________________________________________________________
130 AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam()
133 // Parameters for the high flux environment
136 AliTRDrecoParam *rec = new AliTRDrecoParam();
137 rec->SetImproveTracklets(kTRUE);
142 //______________________________________________________________
143 AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam()
146 // Parameters for the cosmics data
149 AliTRDrawStreamBase::SetRawStreamVersion("TB");
150 AliTRDrecoParam *par = new AliTRDrecoParam();
151 par->SetVertexConstrained(kFALSE);
152 par->SetChi2YCut(1.136);
153 par->SetChi2ZCut(0.069);
154 par->SetMaxTheta(2.1445);
155 par->SetMaxPhi(2.7475);
156 par->SetMeanNclusters(48.1197);
157 par->SetSigmaNclusters(8.59347);