]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDrecoParam.cxx
QA update by Sylwester
[u/mrichter/AliRoot.git] / TRD / AliTRDrecoParam.cxx
CommitLineData
e4f2f73d 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"
9716329b 29#include "AliTRDrawStreamBase.h"
e4f2f73d 30
31ClassImp(AliTRDrecoParam)
32
33//______________________________________________________________
34AliTRDrecoParam::AliTRDrecoParam()
35 :AliDetectorRecoParam()
4ba1d6ae 36 ,fkPIDMethod(kLQPID) // LQ PID
e4f2f73d 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)
eb38ed55 47 ,fkChi2Z(30./*14.*//*12.5*/)
e4f2f73d 48 ,fkChi2Y(.25)
49 ,fkTrackLikelihood(-15.)
d20df6fc 50 ,fkStreamLevel(0)
df83a620 51 ,fMinMaxCutSigma(4.)
52 ,fMinLeftRightCutSigma(8.)
fc546d21 53 ,fClusMaxThresh(4.5)
54 ,fClusSigThresh(3.5)
fc546d21 55 ,fTCnexp(1)
0e09df31 56 ,fADCbaseline(0)
4e459a9d 57 ,fNumberOfPresamples(0)
58 ,fNumberOfPostsamples(0)
e4f2f73d 59{
60 //
61 // Default constructor
62 //
a7ac01d2 63 SetClusterSharing(kFALSE);
64 SetSeeding(kFALSE);
65 SetVertexConstrained();
66 SetLUT();
67 SetTailCancelation();
68
3afdab72 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
e4f2f73d 74}
75
a7ac01d2 76//______________________________________________________________
77AliTRDrecoParam::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)
90 ,fkChi2Z(ref.fkChi2Z)
91 ,fkChi2Y(ref.fkChi2Y)
92 ,fkTrackLikelihood(ref.fkTrackLikelihood)
93 ,fkStreamLevel(ref.fkStreamLevel)
94 ,fMinMaxCutSigma(ref.fMinMaxCutSigma)
95 ,fMinLeftRightCutSigma(ref.fMinLeftRightCutSigma)
96 ,fClusMaxThresh(ref.fClusMaxThresh)
97 ,fClusSigThresh(ref.fClusSigThresh)
98 ,fTCnexp(ref.fTCnexp)
99 ,fADCbaseline(ref.fADCbaseline)
4e459a9d 100 ,fNumberOfPresamples(ref.fNumberOfPresamples)
101 ,fNumberOfPostsamples(ref.fNumberOfPostsamples)
a7ac01d2 102{
103 //
104 // Copy constructor
105 //
106 SetClusterSharing(ref.IsClusterSharing());
107 SetSeeding(ref.IsSeeding());
108 SetVertexConstrained(ref.IsVertexConstrained());
109 SetLUT(ref.IsLUT());
110 SetTailCancelation(ref.IsTailCancelation());
111
112 memcpy(fSysCovMatrix, ref.fSysCovMatrix, 5*sizeof(Double_t));
113}
114
e4f2f73d 115//______________________________________________________________
116AliTRDrecoParam *AliTRDrecoParam::GetLowFluxParam()
117{
118 //
119 // Parameters for the low flux environment
120 //
121
122 return new AliTRDrecoParam();
123
124}
125
126//______________________________________________________________
127AliTRDrecoParam *AliTRDrecoParam::GetHighFluxParam()
128{
129 //
130 // Parameters for the high flux environment
131 //
132
133 return new AliTRDrecoParam();
134
135}
9716329b 136
137//______________________________________________________________
138AliTRDrecoParam *AliTRDrecoParam::GetCosmicTestParam()
139{
140 //
141 // Parameters for the cosmics data
142 //
143
144 AliTRDrawStreamBase::SetRawStreamVersion("TB");
145 AliTRDrecoParam *par = new AliTRDrecoParam();
0e09df31 146 par->SetADCbaseline(10);
a7ac01d2 147 par->SetSeeding();
148 par->SetVertexConstrained();
9716329b 149 return par;
150
151}