1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 //-----------------------------------------------------------------
20 // Implementation of the TPC seed class
21 // This class is used by the AliTPCtrackerMI class
22 // Origin: Marian Ivanov, CERN, Marian.Ivanov@cern.ch
23 //-----------------------------------------------------------------
24 #include "TClonesArray.h"
25 #include "AliTPCseed.h"
26 #include "AliTPCReconstructor.h"
32 AliTPCseed::AliTPCseed():
35 fClusterOwner(kFALSE),
41 fCurrentSigmaY2(1e10),
42 fCurrentSigmaZ2(1e10),
46 fCurrentClusterIndex1(-1),
61 for (Int_t i=0;i<160;i++) SetClusterIndex2(i,-3);
62 for (Int_t i=0;i<160;i++) fClusterPointer[i]=0;
63 for (Int_t i=0;i<3;i++) fKinkIndexes[i]=0;
64 for (Int_t i=0;i<AliPID::kSPECIES;i++) fTPCr[i]=0.2;
65 for (Int_t i=0;i<4;i++) {
70 for (Int_t i=0;i<12;i++) fOverlapLabels[i] = -1;
71 for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE;
72 for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE;
75 AliTPCseed::AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner):
78 fClusterOwner(clusterOwner),
84 fCurrentSigmaY2(1e10),
85 fCurrentSigmaZ2(1e10),
89 fCurrentClusterIndex1(-1),
100 fClusterMap(s.fClusterMap),
101 fSharedMap(s.fSharedMap)
103 //---------------------
104 // dummy copy constructor
105 //-------------------------
106 for (Int_t i=0;i<160;i++) {
107 fClusterPointer[i]=0;
109 if (s.fClusterPointer[i])
110 fClusterPointer[i] = new AliTPCclusterMI(*(s.fClusterPointer[i]));
112 fClusterPointer[i] = s.fClusterPointer[i];
114 fTrackPoints[i] = s.fTrackPoints[i];
116 for (Int_t i=0;i<160;i++) fIndex[i] = s.fIndex[i];
117 for (Int_t i=0;i<AliPID::kSPECIES;i++) fTPCr[i]=s.fTPCr[i];
118 for (Int_t i=0;i<4;i++) {
119 fDEDX[i] = s.fDEDX[i];
120 fSDEDX[i] = s.fSDEDX[i];
121 fNCDEDX[i] = s.fNCDEDX[i];
123 for (Int_t i=0;i<12;i++) fOverlapLabels[i] = s.fOverlapLabels[i];
128 AliTPCseed::AliTPCseed(const AliTPCtrack &t):
131 fClusterOwner(kFALSE),
137 fCurrentSigmaY2(1e10),
138 fCurrentSigmaZ2(1e10),
141 fCurrentCluster(0x0),
142 fCurrentClusterIndex1(-1),
157 // Constructor from AliTPCtrack
160 for (Int_t i=0;i<5;i++) fTPCr[i]=0.2;
161 for (Int_t i=0;i<160;i++) {
162 fClusterPointer[i] = 0;
163 Int_t index = t.GetClusterIndex(i);
165 SetClusterIndex2(i,index);
168 SetClusterIndex2(i,-3);
171 for (Int_t i=0;i<4;i++) {
176 for (Int_t i=0;i<12;i++) fOverlapLabels[i] = -1;
177 for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE;
178 for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE;
181 AliTPCseed::AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5],
182 const Double_t cc[15], Int_t index):
183 AliTPCtrack(xr, alpha, xx, cc, index),
185 fClusterOwner(kFALSE),
191 fCurrentSigmaY2(1e10),
192 fCurrentSigmaZ2(1e10),
195 fCurrentCluster(0x0),
196 fCurrentClusterIndex1(-1),
214 for (Int_t i=0;i<160;i++) SetClusterIndex2(i,-3);
215 for (Int_t i=0;i<160;i++) fClusterPointer[i]=0;
216 for (Int_t i=0;i<5;i++) fTPCr[i]=0.2;
217 for (Int_t i=0;i<4;i++) {
222 for (Int_t i=0;i<12;i++) fOverlapLabels[i] = -1;
225 AliTPCseed::~AliTPCseed(){
228 if (fPoints) delete fPoints;
230 if (fEPoints) delete fEPoints;
234 for (Int_t icluster=0; icluster<160; icluster++){
235 delete fClusterPointer[icluster];
238 for (Int_t i=0;i<160;i++) fClusterMap[i]=kFALSE;
239 for (Int_t i=0;i<160;i++) fSharedMap[i]=kFALSE;
241 //_________________________________________________
242 AliTPCseed & AliTPCseed::operator =(const AliTPCseed & param)
245 // assignment operator - dummy
250 //____________________________________________________
251 AliTPCTrackerPoint * AliTPCseed::GetTrackPoint(Int_t i)
255 return &fTrackPoints[i];
258 void AliTPCseed::RebuildSeed()
261 // rebuild seed to be ready for storing
262 AliTPCclusterMI cldummy;
264 AliTPCTrackPoint pdummy;
265 pdummy.GetTPoint().SetShared(10);
266 for (Int_t i=0;i<160;i++){
267 AliTPCclusterMI * cl0 = fClusterPointer[i];
268 AliTPCTrackPoint *trpoint = (AliTPCTrackPoint*)fPoints->UncheckedAt(i);
270 trpoint->GetTPoint() = *(GetTrackPoint(i));
271 trpoint->GetCPoint() = *cl0;
272 trpoint->GetCPoint().SetQ(TMath::Abs(cl0->GetQ()));
276 trpoint->GetCPoint()= cldummy;
284 Double_t AliTPCseed::GetDensityFirst(Int_t n)
288 // return cluster for n rows bellow first point
289 Int_t nfoundable = 1;
291 for (Int_t i=fLastPoint-1;i>0&&nfoundable<n; i--){
292 Int_t index = GetClusterIndex2(i);
293 if (index!=-1) nfoundable++;
294 if (index>0) nfound++;
296 if (nfoundable<n) return 0;
297 return Double_t(nfound)/Double_t(nfoundable);
302 void AliTPCseed::GetClusterStatistic(Int_t first, Int_t last, Int_t &found, Int_t &foundable, Int_t &shared, Bool_t plus2)
304 // get cluster stat. on given region
309 for (Int_t i=first;i<last; i++){
310 Int_t index = GetClusterIndex2(i);
311 if (index!=-1) foundable++;
312 if (fClusterPointer[i]) {
318 if (fClusterPointer[i]->IsUsed(10)) {
322 if (!plus2) continue; //take also neighborhoud
324 if ( (i>0) && fClusterPointer[i-1]){
325 if (fClusterPointer[i-1]->IsUsed(10)) {
330 if ( fClusterPointer[i+1]){
331 if (fClusterPointer[i+1]->IsUsed(10)) {
339 //Error("AliTPCseed::GetClusterStatistic","problem\n");
347 void AliTPCseed::Reset(Bool_t all)
351 SetNumberOfClusters(0);
354 ResetCovariance(10.);
357 for (Int_t i=0;i<8;i++){
358 delete [] fTrackPoints[i];
366 for (Int_t i=0;i<200;i++) SetClusterIndex2(i,-3);
367 for (Int_t i=0;i<160;i++) fClusterPointer[i]=0;
373 void AliTPCseed::Modify(Double_t factor)
376 //------------------------------------------------------------------
377 //This function makes a track forget its history :)
378 //------------------------------------------------------------------
380 ResetCovariance(10.);
383 ResetCovariance(factor);
385 SetNumberOfClusters(0);
389 fCurrentSigmaY2 = 0.000005;
390 fCurrentSigmaZ2 = 0.000005;
399 Int_t AliTPCseed::GetProlongation(Double_t xk, Double_t &y, Double_t & z) const
401 //-----------------------------------------------------------------
402 // This function find proloncation of a track to a reference plane x=xk.
403 // doesn't change internal state of the track
404 //-----------------------------------------------------------------
406 Double_t x1=GetX(), x2=x1+(xk-x1), dx=x2-x1;
408 if (TMath::Abs(GetSnp()+GetC()*dx) >= AliTPCReconstructor::GetMaxSnpTrack()) {
412 // Double_t y1=fP0, z1=fP1;
413 Double_t c1=GetSnp(), r1=sqrt(1.- c1*c1);
414 Double_t c2=c1 + GetC()*dx, r2=sqrt(1.- c2*c2);
418 //y += dx*(c1+c2)/(r1+r2);
419 //z += dx*(c1+c2)/(c1*r2 + c2*r1)*fP3;
421 Double_t dy = dx*(c1+c2)/(r1+r2);
424 Double_t delta = GetC()*dx*(c1+c2)/(c1*r2 + c2*r1);
426 if (TMath::Abs(delta)>0.0001){
427 dz = fP3*TMath::ASin(delta)/fP4;
429 dz = dx*fP3*(c1+c2)/(c1*r2 + c2*r1);
432 // dz = fP3*AliTPCFastMath::FastAsin(delta)/fP4;
433 dz = GetTgl()*TMath::ASin(delta)/GetC();
443 //_____________________________________________________________________________
444 Double_t AliTPCseed::GetPredictedChi2(const AliCluster *c) const
446 //-----------------------------------------------------------------
447 // This function calculates a predicted chi2 increment.
448 //-----------------------------------------------------------------
449 Double_t p[2]={c->GetY(), c->GetZ()};
450 Double_t cov[3]={fErrorY2, 0., fErrorZ2};
451 return AliExternalTrackParam::GetPredictedChi2(p,cov);
454 //_________________________________________________________________________________________
457 Int_t AliTPCseed::Compare(const TObject *o) const {
458 //-----------------------------------------------------------------
459 // This function compares tracks according to the sector - for given sector according z
460 //-----------------------------------------------------------------
461 AliTPCseed *t=(AliTPCseed*)o;
464 if (t->fRelativeSector>fRelativeSector) return -1;
465 if (t->fRelativeSector<fRelativeSector) return 1;
466 Double_t z2 = t->GetZ();
467 Double_t z1 = GetZ();
469 if (z2<z1) return -1;
474 f2 = 1-20*TMath::Sqrt(t->GetSigma1Pt2())/(TMath::Abs(t->Get1Pt())+0.0066);
475 if (t->fBConstrain) f2=1.2;
478 f1 = 1-20*TMath::Sqrt(GetSigma1Pt2())/(TMath::Abs(Get1Pt())+0.0066);
480 if (fBConstrain) f1=1.2;
482 if (t->GetNumberOfClusters()*f2 <GetNumberOfClusters()*f1) return -1;
490 //_____________________________________________________________________________
491 Bool_t AliTPCseed::Update(const AliCluster *c, Double_t chisq, Int_t /*index*/)
493 //-----------------------------------------------------------------
494 // This function associates a cluster with this track.
495 //-----------------------------------------------------------------
496 Double_t p[2]={c->GetY(), c->GetZ()};
497 Double_t cov[3]={fErrorY2, 0., fErrorZ2};
499 if (!AliExternalTrackParam::Update(p,cov)) return kFALSE;
501 Int_t n=GetNumberOfClusters();
503 SetNumberOfClusters(n+1);
504 SetChi2(GetChi2()+chisq);
511 //_____________________________________________________________________________
512 Float_t AliTPCseed::CookdEdx(Double_t low, Double_t up,Int_t i1, Int_t i2, Bool_t onlyused) {
513 //-----------------------------------------------------------------
514 // This funtion calculates dE/dX within the "low" and "up" cuts.
515 //-----------------------------------------------------------------
518 Float_t angular[200];
522 // TClonesArray & arr = *fPoints;
523 Float_t meanlog = 100.;
525 Float_t mean[4] = {0,0,0,0};
526 Float_t sigma[4] = {1000,1000,1000,1000};
527 Int_t nc[4] = {0,0,0,0};
528 Float_t norm[4] = {1000,1000,1000,1000};
533 for (Int_t of =0; of<4; of++){
534 for (Int_t i=of+i1;i<i2;i+=4)
536 Int_t index = fIndex[i];
537 if (index<0||index&0x8000) continue;
539 //AliTPCTrackPoint * point = (AliTPCTrackPoint *) arr.At(i);
540 AliTPCTrackerPoint * point = GetTrackPoint(i);
541 //AliTPCTrackerPoint * pointm = GetTrackPoint(i-1);
542 //AliTPCTrackerPoint * pointp = 0;
543 //if (i<159) pointp = GetTrackPoint(i+1);
545 if (point==0) continue;
546 AliTPCclusterMI * cl = fClusterPointer[i];
548 if (onlyused && (!cl->IsUsed(10))) continue;
549 if (cl->IsUsed(11)) {
553 Int_t type = cl->GetType();
554 //if (point->fIsShared){
559 // if (pointm->fIsShared) continue;
561 // if (pointp->fIsShared) continue;
563 if (type<0) continue;
564 //if (type>10) continue;
565 //if (point->GetErrY()==0) continue;
566 //if (point->GetErrZ()==0) continue;
568 //Float_t ddy = (point->GetY()-cl->GetY())/point->GetErrY();
569 //Float_t ddz = (point->GetZ()-cl->GetZ())/point->GetErrZ();
570 //if ((ddy*ddy+ddz*ddz)>10) continue;
573 // if (point->GetCPoint().GetMax()<5) continue;
574 if (cl->GetMax()<5) continue;
575 Float_t angley = point->GetAngleY();
576 Float_t anglez = point->GetAngleZ();
578 Float_t rsigmay2 = point->GetSigmaY();
579 Float_t rsigmaz2 = point->GetSigmaZ();
583 rsigmay += pointm->GetTPoint().GetSigmaY();
584 rsigmaz += pointm->GetTPoint().GetSigmaZ();
588 rsigmay += pointp->GetTPoint().GetSigmaY();
589 rsigmaz += pointp->GetTPoint().GetSigmaZ();
596 Float_t rsigma = TMath::Sqrt(rsigmay2*rsigmaz2);
598 Float_t ampc = 0; // normalization to the number of electrons
600 // ampc = 1.*point->GetCPoint().GetMax();
601 ampc = 1.*cl->GetMax();
602 //ampc = 1.*point->GetCPoint().GetQ();
603 // AliTPCClusterPoint & p = point->GetCPoint();
604 // Float_t dy = TMath::Abs(Int_t( TMath::Abs(p.GetY()/0.6)) - TMath::Abs(p.GetY()/0.6)+0.5);
605 // Float_t iz = (250.0-TMath::Abs(p.GetZ())+0.11)/0.566;
607 // TMath::Abs( Int_t(iz) - iz + 0.5);
608 //ampc *= 1.15*(1-0.3*dy);
609 //ampc *= 1.15*(1-0.3*dz);
610 // Float_t zfactor = (AliTPCReconstructor::GetCtgRange()-0.0004*TMath::Abs(point->GetCPoint().GetZ()));
614 //ampc = 1.0*point->GetCPoint().GetMax();
615 ampc = 1.0*cl->GetMax();
616 //ampc = 1.0*point->GetCPoint().GetQ();
617 //AliTPCClusterPoint & p = point->GetCPoint();
618 // Float_t dy = TMath::Abs(Int_t( TMath::Abs(p.GetY()/0.4)) - TMath::Abs(p.GetY()/0.4)+0.5);
619 //Float_t iz = (250.0-TMath::Abs(p.GetZ())+0.11)/0.566;
621 // TMath::Abs( Int_t(iz) - iz + 0.5);
623 //ampc *= 1.15*(1-0.3*dy);
624 //ampc *= 1.15*(1-0.3*dz);
625 // Float_t zfactor = (1.02-0.000*TMath::Abs(point->GetCPoint().GetZ()));
629 ampc *= 2.0; // put mean value to channel 50
630 //ampc *= 0.58; // put mean value to channel 50
632 // if (type>0) w = 1./(type/2.-0.5);
633 // Float_t z = TMath::Abs(cl->GetZ());
636 //ampc /= (1+0.0008*z);
640 //ampc /= (1+0.0008*z);
642 //ampc /= (1+0.0008*z);
645 if (type<0) { //amp at the border - lower weight
650 if (rsigma>1.5) ampc/=1.3; // if big backround
652 angular[nc[of]] = TMath::Sqrt(1.+angley*angley+anglez*anglez);
657 TMath::Sort(nc[of],amp,index,kFALSE);
661 //meanlog = amp[index[Int_t(nc[of]*0.33)]];
663 for (Int_t i=int(nc[of]*low+0.5);i<int(nc[of]*up+0.5);i++){
664 Float_t ampl = amp[index[i]]/angular[index[i]];
665 ampl = meanlog*TMath::Log(1.+ampl/meanlog);
667 sumw += weight[index[i]];
668 sumamp += weight[index[i]]*ampl;
669 sumamp2 += weight[index[i]]*ampl*ampl;
670 norm[of] += angular[index[i]]*weight[index[i]];
677 mean[of] = sumamp/sumw;
678 sigma[of] = sumamp2/sumw-mean[of]*mean[of];
680 sigma[of] = TMath::Sqrt(sigma[of]);
684 mean[of] = (TMath::Exp(mean[of]/meanlog)-1)*meanlog;
685 //mean *=(1-0.02*(sigma/(mean*0.17)-1.));
686 //mean *=(1-0.1*(norm-1.));
693 // mean[0]*= (1-0.05*(sigma[0]/(0.01+mean[1]*0.18)-1));
694 // mean[1]*= (1-0.05*(sigma[1]/(0.01+mean[0]*0.18)-1));
697 // dedx = (mean[0]* TMath::Sqrt((1.+nc[0]))+ mean[1]* TMath::Sqrt((1.+nc[1])) )/
698 // ( TMath::Sqrt((1.+nc[0]))+TMath::Sqrt((1.+nc[1])));
702 for (Int_t i =0;i<4;i++){
703 if (nc[i]>2&&nc[i]<1000){
704 dedx += mean[i] *nc[i];
705 fSdEdx += sigma[i]*(nc[i]-2);
706 fMAngular += norm[i] *nc[i];
711 fSDEDX[i] = sigma[i];
724 // Float_t dedx1 =dedx;
727 for (Int_t i =0;i<4;i++){
728 if (nc[i]>2&&nc[i]<1000){
729 mean[i] = mean[i]*(1-0.12*(sigma[i]/(fSdEdx)-1.));
730 dedx += mean[i] *nc[i];
741 Double_t AliTPCseed::Bethe(Double_t bg){
743 // This is the Bethe-Bloch function normalised to 1 at the minimum
748 bethe=(1.+ bg2)/bg2*(log(5940*bg2) - bg2/(1.+ bg2));
749 else // Density effect ( approximately :)
750 bethe=1.15*(1.+ bg2)/bg2*(log(3.5*5940*bg) - bg2/(1.+ bg2));
754 void AliTPCseed::CookPID()
757 // cook PID information according dEdx
759 Double_t fRange = 10.;
763 Int_t ns=AliPID::kSPECIES;
765 for (Int_t j=0; j<ns; j++) {
766 Double_t mass=AliPID::ParticleMass(j);
768 Double_t dedx=fdEdx/fMIP;
769 Double_t bethe=Bethe(mom/mass);
770 Double_t sigma=fRes*bethe;
772 if (TMath::Abs(dedx-bethe) > fRange*sigma) {
773 fTPCr[j]=TMath::Exp(-0.5*fRange*fRange)/sigma;
777 fTPCr[j]=TMath::Exp(-0.5*(dedx-bethe)*(dedx-bethe)/(sigma*sigma))/sigma;
785 for (Int_t j=0; j<ns; j++) {
786 fTPCr[j]/=sumr; //normalize
791 void AliTPCseed::CookdEdx2(Double_t low, Double_t up) {
792 //-----------------------------------------------------------------
793 // This funtion calculates dE/dX within the "low" and "up" cuts.
794 //-----------------------------------------------------------------
797 Float_t angular[200];
801 for (Int_t i=0;i<200;i++) inlimit[i]=kFALSE;
802 for (Int_t i=0;i<200;i++) amp[i]=10000;
803 for (Int_t i=0;i<200;i++) angular[i]= 1;;
807 Float_t meanlog = 100.;
808 Int_t indexde[4]={0,64,128,160};
815 Float_t mean[4] = {0,0,0,0};
816 Float_t sigma[4] = {1000,1000,1000,1000};
817 Int_t nc[4] = {0,0,0,0};
818 Float_t norm[4] = {1000,1000,1000,1000};
823 // for (Int_t of =0; of<3; of++){
824 // for (Int_t i=indexde[of];i<indexde[of+1];i++)
825 for (Int_t i =0; i<160;i++)
827 AliTPCTrackPoint * point = GetTrackPoint(i);
828 if (point==0) continue;
829 if (point->fIsShared){
833 Int_t type = point->GetCPoint().GetType();
834 if (type<0) continue;
835 if (point->GetCPoint().GetMax()<5) continue;
836 Float_t angley = point->GetTPoint().GetAngleY();
837 Float_t anglez = point->GetTPoint().GetAngleZ();
838 Float_t rsigmay = point->GetCPoint().GetSigmaY();
839 Float_t rsigmaz = point->GetCPoint().GetSigmaZ();
840 Float_t rsigma = TMath::Sqrt(rsigmay*rsigmaz);
842 Float_t ampc = 0; // normalization to the number of electrons
844 ampc = point->GetCPoint().GetMax();
847 ampc = point->GetCPoint().GetMax();
849 ampc *= 2.0; // put mean value to channel 50
850 // ampc *= 0.565; // put mean value to channel 50
853 Float_t z = TMath::Abs(point->GetCPoint().GetZ());
860 if (type<0) { //amp at the border - lower weight
863 if (rsigma>1.5) ampc/=1.3; // if big backround
864 angular[i] = TMath::Sqrt(1.+angley*angley+anglez*anglez);
865 amp[i] = ampc/angular[i];
870 TMath::Sort(159,amp,index,kFALSE);
871 for (Int_t i=int(anc*low+0.5);i<int(anc*up+0.5);i++){
872 inlimit[index[i]] = kTRUE; // take all clusters
875 // meanlog = amp[index[Int_t(anc*0.3)]];
877 for (Int_t of =0; of<3; of++){
881 for (Int_t i=indexde[of];i<indexde[of+1];i++)
883 if (inlimit[i]==kFALSE) continue;
884 Float_t ampl = amp[i];
886 ampl = meanlog*TMath::Log(1.+ampl/meanlog);
889 sumamp += weight[i]*ampl;
890 sumamp2 += weight[i]*ampl*ampl;
891 norm[of] += angular[i]*weight[i];
899 mean[of] = sumamp/sumw;
900 sigma[of] = sumamp2/sumw-mean[of]*mean[of];
902 sigma[of] = TMath::Sqrt(sigma[of]);
905 mean[of] = (TMath::Exp(mean[of]/meanlog)-1)*meanlog;
915 Float_t www[3] = {12.,14.,17.};
916 //Float_t www[3] = {1.,1.,1.};
918 for (Int_t i =0;i<3;i++){
919 if (nc[i]>2&&nc[i]<1000){
920 dedx += mean[i] *nc[i]*www[i]/sigma[i];
921 fSdEdx += sigma[i]*(nc[i]-2)*www[i]/sigma[i];
922 fMAngular += norm[i] *nc[i];
923 norm2 += nc[i]*www[i]/sigma[i];
924 norm3 += (nc[i]-2)*www[i]/sigma[i];
927 fSDEDX[i] = sigma[i];
940 // Float_t dedx1 =dedx;
944 for (Int_t i =0;i<3;i++){
945 if (nc[i]>2&&nc[i]<1000&&sigma[i]>3){
946 //mean[i] = mean[i]*(1+0.08*(sigma[i]/(fSdEdx)-1.));
947 dedx += mean[i] *(nc[i])/(sigma[i]);
948 norm4 += (nc[i])/(sigma[i]);
952 if (norm4>0) dedx /= norm4;
962 Double_t AliTPCseed::GetYat(Double_t xk) const {
963 //-----------------------------------------------------------------
964 // This function calculates the Y-coordinate of a track at the plane x=xk.
965 //-----------------------------------------------------------------
966 if (TMath::Abs(GetSnp())>AliTPCReconstructor::GetMaxSnpTrack()) return 0.; //patch 01 jan 06
967 Double_t c1=GetSnp(), r1=TMath::Sqrt(1.- c1*c1);
968 Double_t c2=c1+GetC()*(xk-GetX());
969 if (TMath::Abs(c2)>AliTPCReconstructor::GetMaxSnpTrack()) return 0;
970 Double_t r2=TMath::Sqrt(1.- c2*c2);
971 return GetY() + (xk-GetX())*(c1+c2)/(r1+r2);
974 void AliTPCseed::SetClusterMapBit(int ibit, Bool_t state)
976 fClusterMap[ibit] = state;
978 Bool_t AliTPCseed::GetClusterMapBit(int ibit)
980 return fClusterMap[ibit];
982 void AliTPCseed::SetSharedMapBit(int ibit, Bool_t state)
984 fSharedMap[ibit] = state;
986 Bool_t AliTPCseed::GetSharedMapBit(int ibit)
988 return fSharedMap[ibit];