]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/tracking-ca/AliHLTTPCCAParam.cxx
get rid of compilation warning
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAParam.cxx
CommitLineData
326c2d4b 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
dc4788ec 23ClassImp(AliHLTTPCCAParam)
326c2d4b 24
25AliHLTTPCCAParam::AliHLTTPCCAParam()
dc4788ec 26 : fISec(0),fNRows(63),fAlpha(0.174533), fDAlpha(0.349066),
326c2d4b 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.),
dc4788ec 29 fCellConnectionFactor(3), fTrackConnectionFactor(5), fTrackChiCut(6), fTrackChi2Cut(0), fMaxTrackMatchDRow(4),
326c2d4b 30 fYErrorCorrection(0.33), fZErrorCorrection(0.45)
31{
32 Update();
33}
34
35void AliHLTTPCCAParam::Initialize( Int_t iSec,
dc4788ec 36 Int_t NRows, Double_t RowX[],
326c2d4b 37 Double_t Alpha, Double_t DAlpha,
38 Double_t RMin, Double_t RMax,
39 Double_t ZMin, Double_t ZMax,
40 Double_t PadPitch, Double_t ZSigma,
41 Double_t Bz
42 )
43{
44 // initialization
45 fISec = iSec;
46 fAlpha = Alpha;
47 fDAlpha = DAlpha;
48 fRMin = RMin;
49 fRMax = RMax;
50 fZMin = ZMin;
51 fZMax = ZMax;
52 fPadPitch = PadPitch;
53 fErrY = 1.; // not in use
54 fErrZ = ZSigma;
55 fBz = Bz;
56 fNRows = NRows;
dc4788ec 57 for( Int_t irow=0; irow<NRows; irow++ ){
58 fRowX[irow] = RowX[irow];
59 }
60
326c2d4b 61 Update();
62}
63
64void 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
75void AliHLTTPCCAParam::Sec2Global( Double_t x, Double_t y, Double_t z,
dc4788ec 76 Double_t *X, Double_t *Y, Double_t *Z ) const
326c2d4b 77{
78 // conversion of coorinates sector->global
79 *X = x*fCosAlpha - y*fSinAlpha;
80 *Y = y*fCosAlpha + x*fSinAlpha;
81 *Z = z;
82}
83
84void 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}