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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////
20 // Handling of the attributes of a reconstructed particle track.
25 // Float_t a[4]={195.,1.2,-0.04,8.5};
27 // pmu.SetVector(a,"car");
29 // t1.Set4Momentum(pmu);
31 // Float_t b[3]={1.2,-0.04,8.5};
33 // p.SetVector(b,"car");
35 // t2.Set3Momentum(p);
42 // Float_t pi=acos(-1.);
43 // Float_t thcms=0.2*pi; // decay theta angle in cms
44 // Float_t phicms=pi/4.; // decay theta angle in cms
47 // t2.Decay(m1,m2,thcms,phicms); // Track t2 decay : Lambda -> proton + pion
51 // Int_t ndec=t2.GetNdecay();
52 // AliTrack* d1=t2.GetDecayTrack(1); // Access to decay track number 1
53 // AliTrack* d2=t2.GetDecayTrack(2); // Access to decay track number 2
55 // AliSignal s1,s2,s3,s4;
57 // .... // Code (e.g. detector readout) to fill AliSignal data
59 // AliTrack trec; // Track which will be reconstructed from signals
60 // trec.AddSignal(s1);
61 // trec.AddSignal(s3);
62 // trec.AddSignal(s4);
67 // ... // Code which accesses signals from trec and reconstructs
68 // 3-momentum P, charge Q, mass M etc...
70 // trec.Set3Momentum(P);
74 // Float_t r1[3]={1.6,-3.8,25.7};
75 // Float_t er1[3]={0.2,0.5,1.8};
76 // Float_t r2[3]={8.6,23.8,-6.7};
77 // Float_t er2[3]={0.93,1.78,0.8};
78 // AliPosition begin,end;
79 // begin.SetPosition(r1,"car");
80 // begin.SetPositionErrors(er1,"car");
81 // end.SetPosition(r2,"car");
82 // end.SetPositionErrors(er2,"car");
83 // trec.SetBeginPoint(begin);
84 // trec.SetEndPoint(end);
86 // Note : All quantities are in GeV, GeV/c or GeV/c**2
88 //--- Author: Nick van Eijndhoven 10-jul-1997 UU-SAP Utrecht
89 //- Modified: NvE $Date$ UU-SAP Utrecht
90 ///////////////////////////////////////////////////////////////////////////
94 ClassImp(AliTrack) // Class implementation to enable ROOT I/O
98 // Default constructor
99 // All variables initialised to 0
103 ///////////////////////////////////////////////////////////////////////////
104 void AliTrack::Init()
106 // Initialisation of pointers etc...
113 ///////////////////////////////////////////////////////////////////////////
114 AliTrack::~AliTrack()
116 // Destructor to delete memory allocated for decay tracks array
129 ///////////////////////////////////////////////////////////////////////////
130 AliTrack::AliTrack(AliTrack& t)
139 fCode=t.GetParticleCode();
141 fNsig=t.GetNsignals();
142 fNmasses=t.GetNMassHypotheses();
143 Set4Momentum((Ali4Vector&)t);
144 fBegin=t.GetBeginPoint();
145 fEnd=t.GetEndPoint();
146 fImpactXY=t.GetImpactPoint("z");
147 fImpactXZ=t.GetImpactPoint("y");
148 fImpactYZ=t.GetImpactPoint("x");
149 fClosest=t.GetClosestPoint();
154 fDecays=new TObjArray(fNdec);
156 for (Int_t it=1; it<=fNdec; it++)
158 tx=t.GetDecayTrack(it);
159 fDecays->Add(new AliTrack(*tx));
166 fSignals=new TObjArray(fNsig);
167 for (Int_t is=1; is<=fNsig; is++)
177 fMasses=new TArrayD(fNmasses);
178 fDmasses=new TArrayD(fNmasses);
179 fPmasses=new TArrayD(fNmasses);
180 for (Int_t ih=1; ih<=fNmasses; ih++)
182 prob=t.GetMassHypothesisProb(ih);
183 m=t.GetMassHypothesis(ih);
184 dm=t.GetResultError();
185 fMasses->AddAt(m,ih-1);
186 fDmasses->AddAt(dm,ih-1);
187 fPmasses->AddAt(prob,ih-1);
191 ///////////////////////////////////////////////////////////////////////////
192 void AliTrack::Reset()
194 // Reset all variables to 0 and delete all auto-generated decay tracks.
203 Double_t a[4]={0,0,0,0};
216 Double_t b[3]={0,0,0};
217 fBegin.SetPosition(b,"sph");
218 fEnd.SetPosition(b,"sph");
219 fImpactXY.SetPosition(b,"sph");
220 fImpactXZ.SetPosition(b,"sph");
221 fImpactYZ.SetPosition(b,"sph");
222 fClosest.SetPosition(b,"sph");
239 ///////////////////////////////////////////////////////////////////////////
240 void AliTrack::Set3Momentum(Ali3Vector& p)
242 // Set the track parameters according to the 3-momentum p
245 ///////////////////////////////////////////////////////////////////////////
246 void AliTrack::Set4Momentum(Ali4Vector& p)
248 // Set the track parameters according to the 4-momentum p
249 Double_t E=p.GetScalar();
250 Double_t dE=p.GetResultError();
251 Ali3Vector pv=p.Get3Vector();
255 ///////////////////////////////////////////////////////////////////////////
256 void AliTrack::SetMass(Double_t m,Double_t dm)
258 // Set the particle mass
259 // The default value for the error dm is 0.
260 Double_t inv=pow(m,2);
261 Double_t dinv=fabs(2.*m*dm);
262 SetInvariant(inv,dinv);
264 ///////////////////////////////////////////////////////////////////////////
265 void AliTrack::SetCharge(Float_t q)
267 // Set the particle charge
270 ///////////////////////////////////////////////////////////////////////////
271 void AliTrack::Info(TString f)
273 // Provide track information within the coordinate frame f
274 Double_t m=GetMass();
275 Double_t dm=GetResultError();
276 cout << " *AliTrack::Info* Id : " << fUserId << " Code : " << fCode
277 << " Mass : " << m << " error : " << dm << " Charge : " << fQ
278 << " Momentum : " << GetMomentum() << " Nmass hyp. : " << fNmasses
279 << " Ntracks : " << fNdec << " Nsignals : " << fNsig << endl;
280 for (Int_t i=0; i<fNmasses; i++)
282 cout << " Mass hypothesis " << (i+1) << " Mass : " << fMasses->At(i)
283 << " error : " << fDmasses->At(i) << " prob. : " << fPmasses->At(i)
288 ///////////////////////////////////////////////////////////////////////////
289 void AliTrack::List(TString f)
291 // Provide current track and decay level 1 information within coordinate frame f
293 Info(f); // Information of the current track
295 // Decay products of this track
297 for (Int_t id=1; id<=fNdec; id++)
299 td=GetDecayTrack(id);
302 cout << " ---Level 1 sec. track no. " << id << endl;
307 cout << " *AliTrack::List* Error : No decay track present." << endl;
311 ///////////////////////////////////////////////////////////////////////////
312 void AliTrack::ListAll(TString f)
314 // Provide complete track and decay information within the coordinate frame f
316 Info(f); // Information of the current track
317 cout << " Begin-point :"; fBegin.Info(f);
318 cout << " End-point :"; fEnd.Info(f);
319 for (Int_t is=1; is<=GetNsignals(); is++)
321 ((AliSignal*)GetSignal(is))->Info(f);
325 Dump(t,1,f); // Information of all decay products
327 //////////////////////////////////////////////////////////////////////////
328 void AliTrack::Dump(AliTrack* t,Int_t n,TString f)
330 // Recursively provide the info of all decay levels of this track
332 for (Int_t id=1; id<=t->GetNdecay(); id++)
334 td=t->GetDecayTrack(id);
337 cout << " ---Level " << n << " sec. track no. " << id << endl;
339 for (Int_t is=1; is<=td->GetNsignals(); is++)
341 ((AliSignal*)td->GetSignal(is))->Info(f);
344 // Go for next decay level of this decay track recursively
349 cout << " *AliTrack::Dump* Error : No decay track present." << endl;
353 //////////////////////////////////////////////////////////////////////////
354 Double_t AliTrack::GetMomentum()
356 // Provide the value of the track 3-momentum.
357 // The error can be obtained by invoking GetResultError() after
358 // invokation of GetMomentum().
359 Double_t norm=fV.GetNorm();
360 fDresult=fV.GetResultError();
363 ///////////////////////////////////////////////////////////////////////////
364 Ali3Vector AliTrack::Get3Momentum()
366 // Provide the track 3-momentum
367 return (Ali3Vector)Get3Vector();
369 ///////////////////////////////////////////////////////////////////////////
370 Double_t AliTrack::GetMass()
372 // Provide the particle mass.
373 // The error can be obtained by invoking GetResultError() after
374 // invokation of GetMass().
375 Double_t inv=GetInvariant();
376 Double_t dinv=GetResultError();
380 Double_t m=sqrt(inv);
381 if (m) dm=dinv/(2.*m);
387 cout << "*AliTrack::GetMass* Unphysical situation m**2 = " << inv << endl;
388 cout << " Value 0 will be returned." << endl;
393 ///////////////////////////////////////////////////////////////////////////
394 Float_t AliTrack::GetCharge()
396 // Provide the particle charge
399 ///////////////////////////////////////////////////////////////////////////
400 Double_t AliTrack::GetEnergy()
402 // Provide the particle's energy.
403 // The error can be obtained by invoking GetResultError() after
404 // invokation of GetEnergy().
405 Double_t E=GetScalar();
412 cout << "*AliTrack::GetEnergy* Unphysical situation E = " << E << endl;
413 cout << " Value 0 will be returned." << endl;
417 ///////////////////////////////////////////////////////////////////////////
418 void AliTrack::Decay(Double_t m1,Double_t m2,Double_t thcms,Double_t phicms)
420 // Perform 2-body decay of current track
421 // m1 : mass of decay product 1
422 // m2 : mass of decay product 2
423 // thcms : cms theta decay angle (in rad.) of m1
424 // phicms : cms phi decay angle (in rad.) of m1
426 fNdec=2; // it's a 2-body decay
428 Double_t M=GetMass();
430 // Compute the 4-momenta of the decay products in the cms
431 // Note : p2=p1=pnorm for a 2-body decay
433 if (M) e1=((M*M)+(m1*m1)-(m2*m2))/(2.*M);
435 if (M) e2=((M*M)+(m2*m2)-(m1*m1))/(2.*M);
436 Double_t pnorm=(e1*e1)-(m1*m1);
451 p.SetVector(a,"sph");
454 pprim1.SetVector(e1,p);
455 pprim1.SetInvariant(m1*m1);
459 pprim2.SetVector(e2,p);
460 pprim2.SetInvariant(m2*m2);
462 // Determine boost parameters from the parent particle
463 Double_t E=GetEnergy();
471 Ali4Vector p1=q.Inverse(pprim1); // Boost decay product 1
472 Ali4Vector p2=q.Inverse(pprim2); // Boost decay product 2
474 // Enter the boosted data into the decay tracks array
480 fDecays=new TObjArray();
483 fDecays->Add(new AliTrack);
484 ((AliTrack*)fDecays->At(0))->Set4Momentum(p1);
485 ((AliTrack*)fDecays->At(0))->SetMass(m1);
486 fDecays->Add(new AliTrack);
487 ((AliTrack*)fDecays->At(1))->Set4Momentum(p2);
488 ((AliTrack*)fDecays->At(1))->SetMass(m2);
490 ///////////////////////////////////////////////////////////////////////////
491 Int_t AliTrack::GetNdecay()
493 // Provide the number of decay produced tracks
496 ///////////////////////////////////////////////////////////////////////////
497 AliTrack* AliTrack::GetDecayTrack(Int_t j)
499 // Provide decay produced track number j
500 // Note : j=1 denotes the first decay track
503 cout << " *AliTrack::GetDecayTrack* No tracks present." << endl;
508 if ((j >= 1) && (j <= fNdec))
510 return (AliTrack*)fDecays->At(j-1);
514 cout << " *AliTrack* decay track number : " << j << " out of range."
515 << " Ndec = " << fNdec << endl;
520 ///////////////////////////////////////////////////////////////////////////
521 void AliTrack::AddSignal(AliSignal& s)
523 // Relate an AliSignal object to this track.
524 if (!fSignals) fSignals=new TObjArray();
528 ///////////////////////////////////////////////////////////////////////////
529 void AliTrack::RemoveSignal(AliSignal& s)
531 // Remove related AliSignal object to this track.
534 AliSignal* test=(AliSignal*)fSignals->Remove(&s);
538 fSignals->Compress();
542 ///////////////////////////////////////////////////////////////////////////
543 Int_t AliTrack::GetNsignals()
545 // Provide the number of related AliSignals.
548 ///////////////////////////////////////////////////////////////////////////
549 AliSignal* AliTrack::GetSignal(Int_t j)
551 // Provide the related AliSignal number j.
552 // Note : j=1 denotes the first signal.
555 cout << " *AliTrack::GetSignal* No signals present." << endl;
560 if ((j >= 1) && (j <= fNsig))
562 return (AliSignal*)fSignals->At(j-1);
566 cout << " *AliTrack* signal number : " << j << " out of range."
567 << " Nsig = " << fNsig << endl;
572 ///////////////////////////////////////////////////////////////////////////
573 void AliTrack::SetBeginPoint(AliPosition p)
575 // Store the position of the track begin-point.
578 ///////////////////////////////////////////////////////////////////////////
579 AliPosition AliTrack::GetBeginPoint()
581 // Provide the position of the track begin-point.
584 ///////////////////////////////////////////////////////////////////////////
585 void AliTrack::SetEndPoint(AliPosition p)
587 // Store the position of the track end-point.
590 ///////////////////////////////////////////////////////////////////////////
591 AliPosition AliTrack::GetEndPoint()
593 // Provide the position of the track end-point.
596 ///////////////////////////////////////////////////////////////////////////
597 void AliTrack::AddMassHypothesis(Double_t prob,Double_t m,Double_t dm)
599 // Add a mass hypothesis for this current track.
600 // prob=probalility m=mass value dm=error on the mass value.
601 // The default value for the mass error dm is 0.
602 if (!fMasses) fMasses=new TArrayD();
603 if (!fDmasses) fDmasses=new TArrayD();
604 if (!fPmasses) fPmasses=new TArrayD();
607 fMasses->Set(fNmasses);
608 fDmasses->Set(fNmasses);
609 fPmasses->Set(fNmasses);
611 fMasses->AddAt(m,fNmasses-1);
612 fDmasses->AddAt(dm,fNmasses-1);
613 fPmasses->AddAt(prob,fNmasses-1);
615 ///////////////////////////////////////////////////////////////////////////
616 Int_t AliTrack::GetNMassHypotheses()
618 // Provide the number of mass hypotheses for this track.
621 ///////////////////////////////////////////////////////////////////////////
622 Double_t AliTrack::GetMassHypothesis(Int_t j)
624 // Provide the mass of the jth hypothesis for this track.
625 // Note : the first hypothesis is indicated by j=1.
626 // Default : j=0 ==> Hypothesis with highest probability.
627 // The error on the mass can be obtained by invoking GetResultError()
628 // after invokation of GetMassHypothesis(j).
630 Double_t m=0,dm=0,prob=0;
632 // Check validity of index j
633 if (j<0 || j>fNmasses)
635 cout << " *AliTrack::GetMassHypothesis* Invalid index j : " << j
636 << " Number of mass hypotheses : " << fNmasses << endl;
641 // Select mass hypothesis with highest probability
648 prob=fPmasses->At(0);
649 for (Int_t i=1; i<fNmasses; i++)
651 if (fPmasses->At(i)>prob)
662 // Provide data of requested mass hypothesis
664 fDresult=fDmasses->At(j-1);
667 ///////////////////////////////////////////////////////////////////////////
668 Double_t AliTrack::GetMassHypothesisProb(Int_t j)
670 // Provide the probability of the jth hypothesis for this track.
671 // Note : the first hypothesis is indicated by j=1.
672 // Default : j=0 ==> Hypothesis with highest probability.
676 // Check validity of index j
677 if (j<0 || j>fNmasses)
679 cout << " *AliTrack::GetMassHypothesisProb* Invalid index j : " << j
680 << " Number of mass hypotheses : " << fNmasses << endl;
684 // Select mass hypothesis with highest probability
689 prob=fPmasses->At(0);
690 for (Int_t i=1; i<fNmasses; i++)
692 if (fPmasses->At(i)>prob) prob=fPmasses->At(i);
698 // Provide probability of requested mass hypothesis
699 prob=fPmasses->At(j-1);
702 ///////////////////////////////////////////////////////////////////////////
703 void AliTrack::SetMass()
705 // Set the mass and error to the value of the hypothesis with highest prob.
707 Double_t m=0,dm=0,prob=0;
709 // Select mass hypothesis with highest probability
714 prob=fPmasses->At(0);
715 for (Int_t i=1; i<fNmasses; i++)
717 if (fPmasses->At(i)>prob)
727 cout << " *AliTrack::SetMass()* No hypothesis present => No action." << endl;
730 ///////////////////////////////////////////////////////////////////////////
731 void AliTrack::RemoveMassHypothesis(Int_t j)
733 // Remove the jth mass hypothesis for this track.
734 // Note : the first hypothesis is indicated by j=1.
736 if (j<=0 || j>fNmasses) // Check validity of index j
738 cout << " *AliTrack::RemoveMassHypothesis* Invalid index j : " << j
739 << " Number of mass hypotheses : " << fNmasses << endl;
745 fMasses->AddAt(fMasses->At(fNmasses-1),j-1);
746 fDmasses->AddAt(fDmasses->At(fNmasses-1),j-1);
747 fPmasses->AddAt(fPmasses->At(fNmasses-1),j-1);
749 fMasses->AddAt(0,fNmasses-1);
750 fDmasses->AddAt(0,fNmasses-1);
751 fPmasses->AddAt(0,fNmasses-1);
753 fMasses->Set(fNmasses);
754 fDmasses->Set(fNmasses);
755 fPmasses->Set(fNmasses);
758 ///////////////////////////////////////////////////////////////////////////
759 Double_t AliTrack::GetPt()
761 // Provide trans. momentum value w.r.t. z-axis.
762 // The error on the value can be obtained by GetResultError()
763 // after invokation of GetPt().
766 Double_t norm=v.GetNorm();
767 fDresult=v.GetResultError();
771 ///////////////////////////////////////////////////////////////////////////
772 Double_t AliTrack::GetPl()
774 // Provide long. momentum value w.r.t. z-axis.
775 // Note : the returned value can also be negative.
776 // The error on the value can be obtained by GetResultError()
777 // after invokation of GetPl().
781 Double_t pl=v.GetNorm();
782 fDresult=v.GetResultError();
785 v.GetVector(a,"sph");
786 if (cos(a[1])<0) pl=-pl;
790 ///////////////////////////////////////////////////////////////////////////
791 Double_t AliTrack::GetEt()
793 // Provide trans. energy value w.r.t. z-axis.
794 // The error on the value can be obtained by GetResultError()
795 // after invokation of GetEt().
796 Double_t et=GetScaTrans();
800 ///////////////////////////////////////////////////////////////////////////
801 Double_t AliTrack::GetEl()
803 // Provide long. energy value w.r.t. z-axis.
804 // Note : the returned value can also be negative.
805 // The error on the value can be obtained by GetResultError()
806 // after invokation of GetEl().
807 Double_t el=GetScaLong();
811 ///////////////////////////////////////////////////////////////////////////
812 Double_t AliTrack::GetMt()
814 // Provide transverse mass value w.r.t. z-axis.
815 // The error on the value can be obtained by GetResultError()
816 // after invokation of GetMt().
818 Double_t dpt=GetResultError();
819 Double_t m=GetMass();
820 Double_t dm=GetResultError();
822 Double_t mt=sqrt(pt*pt+m*m);
824 if (mt) dmt2=(pow((pt*dpt),2)+pow((m*dm),2))/(mt*mt);
829 ///////////////////////////////////////////////////////////////////////////
830 Double_t AliTrack::GetMt(Int_t j)
832 // Provide transverse mass value w.r.t. z-axis and jth mass hypothesis.
833 // Note : the first hypothesis is indicated by j=1.
834 // j=0 ==> Hypothesis with highest probability.
835 // The error on the value can be obtained by GetResultError()
836 // after invokation of GetMt(j).
838 Double_t dpt=GetResultError();
839 Double_t m=GetMassHypothesis(j);
840 Double_t dm=GetResultError();
842 Double_t mt=sqrt(pt*pt+m*m);
844 if (mt) dmt2=(pow((pt*dpt),2)+pow((m*dm),2))/(mt*mt);
849 ///////////////////////////////////////////////////////////////////////////
850 Double_t AliTrack::GetRapidity()
852 // Provide rapidity value w.r.t. z-axis.
853 // The error on the value can be obtained by GetResultError()
854 // after invokation of GetRapidity().
855 // Note : Also GetPseudoRapidity() is available since this class is
856 // derived from Ali4Vector.
857 Double_t e=GetEnergy();
858 Double_t de=GetResultError();
860 Double_t dpl=GetResultError();
864 Double_t y=9999,dy2=0;
865 if (sum && dif) y=0.5*log(sum/dif);
867 if (sum*dif) dy2=(1./(sum*dif))*(pow((pl*de),2)+pow((e*dpl),2));
872 ///////////////////////////////////////////////////////////////////////////
873 void AliTrack::SetImpactPoint(AliPosition p,TString q)
875 // Store the position of the impact-point in the plane "q=0".
876 // Here q denotes one of the axes X, Y or Z.
877 // Note : The character to denote the axis may be entered in lower or
880 if (q=="x" || q=="X") axis=1;
881 if (q=="y" || q=="Y") axis=2;
882 if (q=="z" || q=="Z") axis=3;
886 case 1: // Impact-point in the plane X=0
890 case 2: // Impact-point in the plane Y=0
894 case 3: // Impact-point in the plane Z=0
898 default: // Unsupported axis
899 cout << "*AliTrack::SetImpactPoint* Unsupported axis : " << q << endl
900 << " Possible axes are 'X', 'Y' and 'Z'." << endl;
904 ///////////////////////////////////////////////////////////////////////////
905 AliPosition AliTrack::GetImpactPoint(TString q)
907 // Provide the position of the impact-point in the plane "q=0".
908 // Here q denotes one of the axes X, Y or Z.
909 // Note : The character to denote the axis may be entered in lower or
913 if (q=="x" || q=="X") axis=1;
914 if (q=="y" || q=="Y") axis=2;
915 if (q=="z" || q=="Z") axis=3;
919 case 1: // Impact-point in the plane X=0
922 case 2: // Impact-point in the plane Y=0
925 case 3: // Impact-point in the plane Z=0
928 default: // Unsupported axis
929 cout << "*AliTrack::GetImpactPoint* Unsupported axis : " << q << endl
930 << " Possible axes are 'X', 'Y' and 'Z'." << endl;
934 ///////////////////////////////////////////////////////////////////////////
935 void AliTrack::SetId(Int_t id)
937 // Set a user defined unique identifier for this track.
940 ///////////////////////////////////////////////////////////////////////////
941 Int_t AliTrack::GetId()
943 // Provide the user defined unique identifier of this track.
946 ///////////////////////////////////////////////////////////////////////////
947 void AliTrack::SetClosestPoint(AliPosition p)
949 // Set position p as the point of closest approach w.r.t. some reference
952 ///////////////////////////////////////////////////////////////////////////
953 AliPosition AliTrack::GetClosestPoint()
955 // Provide the point of closest approach w.r.t. some reference
958 ///////////////////////////////////////////////////////////////////////////
959 void AliTrack::SetChi2(Float_t chi2)
961 // Set the chi-squared value of the track fit.
964 cout << " *AliTrack::SetChi2* Invalid chi2 value : " << chi2 << endl;
971 ///////////////////////////////////////////////////////////////////////////
972 void AliTrack::SetNdf(Int_t ndf)
974 // Set the number of degrees of freedom for the track fit.
977 cout << " *AliTrack::SetNdf* Invalid ndf value : " << ndf << endl;
984 ///////////////////////////////////////////////////////////////////////////
985 Float_t AliTrack::GetChi2()
987 // Provide the chi-squared value of the track fit.
990 ///////////////////////////////////////////////////////////////////////////
991 Int_t AliTrack::GetNdf()
993 // Provide the number of degrees of freedom for the track fit.
996 ///////////////////////////////////////////////////////////////////////////
997 void AliTrack::SetParticleCode(Int_t code)
999 // Set the user defined particle id code (e.g. the PDF convention).
1002 ///////////////////////////////////////////////////////////////////////////
1003 Int_t AliTrack::GetParticleCode()
1005 // Provide the user defined particle id code.
1008 ///////////////////////////////////////////////////////////////////////////