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()
36 ,fkPIDMethod(kLQPID) // LQ PID
45 ,fkPlaneQualityThreshold(5.0)// 4.2? under Investigation
47 ,fkChi2Z(30./*14.*//*12.5*/)
49 ,fkTrackLikelihood(-15.)
52 ,fMinLeftRightCutSigma(8.)
57 ,fNumberOfPresamples(0)
58 ,fNumberOfPostsamples(0)
61 // Default constructor
63 SetClusterSharing(kFALSE);
65 SetVertexConstrained();
69 fSysCovMatrix[0] = 1.; // y direction (1 cm)
70 fSysCovMatrix[1] = 1.; // z direction (1 cm)
71 fSysCovMatrix[2] = 0.; // snp
72 fSysCovMatrix[3] = 0.; // tgl
73 fSysCovMatrix[4] = 0.; // 1/pt
76 //______________________________________________________________
77 AliTRDrecoParam::AliTRDrecoParam(const AliTRDrecoParam &ref)
78 :AliDetectorRecoParam(ref)
79 ,fkPIDMethod(ref.fkPIDMethod)
80 ,fkMaxTheta(ref.fkMaxTheta)
81 ,fkMaxPhi(ref.fkMaxPhi)
82 ,fkRoad0y(ref.fkRoad0y)
83 ,fkRoad0z(ref.fkRoad0z)
84 ,fkRoad1y(ref.fkRoad1y)
85 ,fkRoad1z(ref.fkRoad1z)
86 ,fkRoad2y(ref.fkRoad2y)
87 ,fkRoad2z(ref.fkRoad2z)
88 ,fkPlaneQualityThreshold(ref.fkPlaneQualityThreshold)
89 ,fkFindable(ref.fkFindable)
92 ,fkTrackLikelihood(ref.fkTrackLikelihood)
93 ,fkStreamLevel(ref.fkStreamLevel)
94 ,fMinMaxCutSigma(ref.fMinMaxCutSigma)
95 ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma)
96 ,fClusMaxThresh(ref.fClusMaxThresh)
97 ,fClusSigThresh(ref.fClusSigThresh)
99 ,fADCbaseline(ref.fADCbaseline)
100 ,fNumberOfPresamples(ref.fNumberOfPresamples)
101 ,fNumberOfPostsamples(ref.fNumberOfPostsamples)
106 SetClusterSharing(ref.IsClusterSharing());
107 SetSeeding(ref.IsSeeding());
108 SetVertexConstrained(ref.IsVertexConstrained());
110 SetTailCancelation(ref.IsTailCancelation());
112 memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t));
115 //______________________________________________________________
116 AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam()
119 // Parameters for the low flux environment
122 return new AliTRDrecoParam();
126 //______________________________________________________________
127 AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam()
130 // Parameters for the high flux environment
133 return new AliTRDrecoParam();
137 //______________________________________________________________
138 AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam()
141 // Parameters for the cosmics data
144 AliTRDrawStreamBase::SetRawStreamVersion("TB");
145 AliTRDrecoParam *par = new AliTRDrecoParam();
146 par->SetADCbaseline(10);
148 par->SetVertexConstrained();