2 //*************************************************************************
3 // This file is property of and copyright by the ALICE HLT Project *
4 // ALICE Experiment at CERN, All rights reserved. *
6 // Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
7 // Ivan Kisel <kisel@kip.uni-heidelberg.de> *
8 // for The ALICE HLT Project. *
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 //*************************************************************************
19 #include "AliHLTTPCCAParam.h"
23 ClassImp(AliHLTTPCCAParam)
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)
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,
52 fPadPitch = ParPadPitch;
53 fErrY = 1.; // not in use
57 for( Int_t irow=0; irow<ParNRows; irow++ ){
58 fRowX[irow] = ParRowX[irow];
64 void AliHLTTPCCAParam::Update()
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;
75 void AliHLTTPCCAParam::Sec2Global( Double_t x, Double_t y, Double_t z,
76 Double_t *X, Double_t *Y, Double_t *Z ) const
78 // conversion of coorinates sector->global
79 *X = x*fCosAlpha - y*fSinAlpha;
80 *Y = y*fCosAlpha + x*fSinAlpha;
84 void AliHLTTPCCAParam::Global2Sec( Double_t X, Double_t Y, Double_t Z,
85 Double_t *x, Double_t *y, Double_t *z ) const
87 // conversion of coorinates global->sector
88 *x = X*fCosAlpha + Y*fSinAlpha;
89 *y = Y*fCosAlpha - X*fSinAlpha;