]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCAParam.cxx
get rid of 'shadowed'-warnings (Sergey)
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAParam.cxx
1 // @(#) $Id$
2 //*************************************************************************
3 // This file is property of and copyright by the ALICE HLT Project        * 
4 // ALICE Experiment at CERN, All rights reserved.                         *
5 //                                                                        *
6 // Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de>        *
7 //                  Ivan Kisel <kisel@kip.uni-heidelberg.de>              *
8 //                  for The ALICE HLT Project.                            *
9 //                                                                        *
10 // Permission to use, copy, modify and distribute this software and its   *
11 // documentation strictly for non-commercial purposes is hereby granted   *
12 // without fee, provided that the above copyright notice appears in all   *
13 // copies and that both the copyright notice and this permission notice   *
14 // appear in the supporting documentation. The authors make no claims     *
15 // about the suitability of this software for any purpose. It is          *
16 // provided "as is" without express or implied warranty.                  *
17 //*************************************************************************
18
19 #include "AliHLTTPCCAParam.h"
20 #include "TMath.h"
21
22
23 ClassImp(AliHLTTPCCAParam)
24
25 AliHLTTPCCAParam::AliHLTTPCCAParam()
26   : fISec(0),fNRows(63),fAlpha(0.174533), fDAlpha(0.349066),
27     fCosAlpha(0), fSinAlpha(0), fAngleMin(0), fAngleMax(0), fRMin(83.65), fRMax(133.3),
28     fZMin(0.0529937), fZMax(249.778), fErrZ(0.228808), fErrX(0), fErrY(0),fPadPitch(0.4),fBz(-5.), 
29     fCellConnectionFactor(3), fTrackConnectionFactor(5), fTrackChiCut(6), fTrackChi2Cut(0), fMaxTrackMatchDRow(4),
30     fYErrorCorrection(0.33), fZErrorCorrection(0.45)
31 {
32   Update();
33 }
34
35 void AliHLTTPCCAParam::Initialize( Int_t ParISec, 
36                                    Int_t ParNRows, Double_t ParRowX[],
37                                    Double_t ParAlpha, Double_t ParDAlpha,
38                                    Double_t ParRMin, Double_t ParRMax,
39                                    Double_t ParZMin, Double_t ParZMax,
40                                    Double_t ParPadPitch, Double_t ParZSigma,
41                                    Double_t ParBz
42                                    )
43 {
44   // initialization 
45   fISec = ParISec;
46   fAlpha = ParAlpha;
47   fDAlpha = ParDAlpha;
48   fRMin = ParRMin;
49   fRMax = ParRMax;
50   fZMin = ParZMin;
51   fZMax = ParZMax;
52   fPadPitch = ParPadPitch;
53   fErrY = 1.; // not in use
54   fErrZ = ParZSigma;
55   fBz = ParBz;
56   fNRows = ParNRows;
57   for( Int_t irow=0; irow<ParNRows; irow++ ){
58     fRowX[irow] = ParRowX[irow];
59   }
60
61   Update();
62 }
63
64 void AliHLTTPCCAParam::Update()
65 {
66   // update of calculated values
67   fCosAlpha = TMath::Cos(fAlpha);
68   fSinAlpha = TMath::Sin(fAlpha);
69   fAngleMin = fAlpha - fDAlpha/2.;
70   fAngleMax = fAlpha + fDAlpha/2.;
71   fErrX = fPadPitch/TMath::Sqrt(12.);
72   fTrackChi2Cut = fTrackChiCut * fTrackChiCut;
73 }
74
75 void AliHLTTPCCAParam::Sec2Global(   Double_t x, Double_t y,  Double_t z, 
76                                      Double_t *X, Double_t *Y,  Double_t *Z ) const
77 {  
78   // conversion of coorinates sector->global
79   *X = x*fCosAlpha - y*fSinAlpha;
80   *Y = y*fCosAlpha + x*fSinAlpha;
81   *Z = z;
82 }
83  
84 void AliHLTTPCCAParam::Global2Sec( Double_t X, Double_t Y,  Double_t Z, 
85                                    Double_t *x, Double_t *y,  Double_t *z ) const
86 {
87   // conversion of coorinates global->sector
88   *x = X*fCosAlpha + Y*fSinAlpha;
89   *y = Y*fCosAlpha - X*fSinAlpha;
90   *z = Z;
91 }