]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFRecoParam.cxx
Corrected a bug in kalman tracking (final parameters and covariances
[u/mrichter/AliRoot.git] / TOF / AliTOFRecoParam.cxx
CommitLineData
52ffea62 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
17///////////////////////////////////////////////////////////////////////////////
18// //
19// Class with TOF reconstruction parameters //
20// //
21// //
22///////////////////////////////////////////////////////////////////////////////
23
24
25#include "AliTOFRecoParam.h"
26
27ClassImp(AliTOFRecoParam)
28
29//_____________________________________________________________________________
30AliTOFRecoParam::AliTOFRecoParam():
15ed3d4f 31 TObject(),
52ffea62 32 fTimeZero(kFALSE),
33 fTimeZerofromT0(kFALSE),
34 fTimeZerofromTOF(kFALSE),
35 fTimeWalkCorr(kFALSE),
36 fApplyPbPbCuts(kFALSE),
37 fWindowSizeMaxY(50.),
38 fWindowSizeMaxZ(35.),
15ed3d4f 39 fWindowScaleFact(5.),
52ffea62 40 fDistanceCut(3.),
15ed3d4f 41 fSensRadius(378.5),
52ffea62 42 fStepSize(0.1),
15ed3d4f 43 fMaxChi2(10.),
44 fMaxChi2TRD(150.),
52ffea62 45 fTimeResolution(80.),
bfdbf8ca 46 fTimeNSigma(5.)
52ffea62 47{
48 //
49 // constructor
50 //
51}
15ed3d4f 52//_____________________________________________________________________________
53AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
54 TObject(),
55 fTimeZero(kFALSE),
56 fTimeZerofromT0(kFALSE),
57 fTimeZerofromTOF(kFALSE),
58 fTimeWalkCorr(kFALSE),
59 fApplyPbPbCuts(kFALSE),
60 fWindowSizeMaxY(50.),
61 fWindowSizeMaxZ(35.),
62 fWindowScaleFact(5.),
63 fDistanceCut(3.),
64 fSensRadius(378.5),
65 fStepSize(0.1),
66 fMaxChi2(10.),
67 fMaxChi2TRD(150.),
68 fTimeResolution(80.),
69 fTimeNSigma(5.)
70 {
71 //copy Ctor
52ffea62 72
15ed3d4f 73 fTimeZero=p.fTimeZero;
74 fTimeZerofromT0=p.fTimeZerofromT0;
75 fTimeZerofromTOF=p.fTimeZerofromTOF;
76 fTimeWalkCorr=p.fTimeWalkCorr;
77 fApplyPbPbCuts=p.fApplyPbPbCuts;
78 fWindowSizeMaxY=p.fWindowSizeMaxY;
79 fWindowSizeMaxZ=p.fWindowSizeMaxZ;
80 fWindowScaleFact=p.fWindowScaleFact;
81 fDistanceCut=p.fDistanceCut;
82 fSensRadius=p.fSensRadius;
83 fStepSize=p.fStepSize;
84 fMaxChi2=p.fMaxChi2;
85 fMaxChi2TRD=p.fMaxChi2TRD;
86 fTimeResolution=p.fTimeResolution;
87 fTimeNSigma=p.fTimeNSigma;
88}
89//_____________________________________________________________________________
90AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
91{
92 //
93 // assign. operator
94 //
95 this->fTimeZero=p.fTimeZero;
96 this->fTimeZerofromT0=p.fTimeZerofromT0;
97 this->fTimeZerofromTOF=p.fTimeZerofromTOF;
98 this->fTimeWalkCorr=p.fTimeWalkCorr;
99 this->fApplyPbPbCuts=p.fApplyPbPbCuts;
100 this->fWindowSizeMaxY=p.fWindowSizeMaxY;
101 this->fWindowSizeMaxZ=p.fWindowSizeMaxZ;
102 this->fDistanceCut=p.fDistanceCut;
103 this->fWindowScaleFact=p.fWindowScaleFact;
104 this->fStepSize=p.fStepSize;
105 this->fSensRadius=p.fSensRadius;
106 this->fMaxChi2=p.fMaxChi2;
107 this->fMaxChi2TRD=p.fMaxChi2TRD;
108 this->fTimeResolution=p.fTimeResolution;
109 this->fTimeNSigma=p.fTimeNSigma;
110 return *this;
111}
52ffea62 112//_____________________________________________________________________________
113AliTOFRecoParam::~AliTOFRecoParam()
114{
115 //
116 // destructor
117 //
118}
119
120//_____________________________________________________________________________
121AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
122 //
123 // set default reconstruction parameters for PbPb.
124 //
125 AliTOFRecoParam *param = new AliTOFRecoParam();
126 param->fApplyPbPbCuts = kTRUE;
15ed3d4f 127 param->fWindowScaleFact = 5.;
52ffea62 128 param->fDistanceCut = 3.;
129 return param;
130}
131
132//_____________________________________________________________________________
133AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
134 //
135 // set default reconstruction parameters for PP.
136 //
137 AliTOFRecoParam *param = new AliTOFRecoParam();
138 param->fApplyPbPbCuts = kFALSE;
139 param->fWindowScaleFact = 5.;
140 param->fDistanceCut = 10.;
141 return param;
142}