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 ///////////////////////////////////////////////////////////////////////////
93 #include "Riostream.h"
95 ClassImp(AliTrack) // Class implementation to enable ROOT I/O
97 AliTrack::AliTrack() : TObject(),Ali4Vector()
99 // Default constructor
100 // All variables initialised to 0
104 ///////////////////////////////////////////////////////////////////////////
105 void AliTrack::Init()
107 // Initialisation of pointers etc...
121 ///////////////////////////////////////////////////////////////////////////
122 AliTrack::~AliTrack()
124 // Destructor to delete memory allocated for decay tracks array
182 ///////////////////////////////////////////////////////////////////////////
183 AliTrack::AliTrack(AliTrack& t) : TObject(t),Ali4Vector(t)
194 fMasses=new TArrayD(*(t.fMasses));
195 fDmasses=new TArrayD(*(t.fDmasses));
196 fPmasses=new TArrayD(*(t.fPmasses));
198 if (t.fBegin) fBegin=new AliPositionObj(*(t.fBegin));
199 if (t.fEnd) fEnd=new AliPositionObj(*(t.fEnd));
200 if (t.fImpactXY) fImpactXY=new AliPositionObj(*(t.fImpactXY));
201 if (t.fImpactXZ) fImpactXZ=new AliPositionObj(*(t.fImpactXZ));
202 if (t.fImpactYZ) fImpactYZ=new AliPositionObj(*(t.fImpactYZ));
203 if (t.fClosest) fClosest=new AliPositionObj(*(t.fClosest));
212 fDecays=new TObjArray(fNdec);
214 for (Int_t it=1; it<=fNdec; it++)
216 AliTrack* tx=t.GetDecayTrack(it);
217 fDecays->Add(new AliTrack(*tx));
223 fSignals=new TObjArray(fNsig);
224 for (Int_t is=1; is<=fNsig; is++)
226 AliSignal* sx=t.GetSignal(is);
231 ///////////////////////////////////////////////////////////////////////////
232 void AliTrack::Reset()
234 // Reset all variables to 0 and delete all auto-generated decay tracks.
243 Double_t a[4]={0,0,0,0};
303 ///////////////////////////////////////////////////////////////////////////
304 void AliTrack::Set3Momentum(Ali3Vector& p)
306 // Set the track parameters according to the 3-momentum p
309 ///////////////////////////////////////////////////////////////////////////
310 void AliTrack::Set4Momentum(Ali4Vector& p)
312 // Set the track parameters according to the 4-momentum p
313 Double_t E=p.GetScalar();
314 Double_t dE=p.GetResultError();
315 Ali3Vector pv=p.Get3Vector();
319 ///////////////////////////////////////////////////////////////////////////
320 void AliTrack::SetMass(Double_t m,Double_t dm)
322 // Set the particle mass
323 // The default value for the error dm is 0.
324 Double_t inv=pow(m,2);
325 Double_t dinv=fabs(2.*m*dm);
326 SetInvariant(inv,dinv);
328 ///////////////////////////////////////////////////////////////////////////
329 void AliTrack::SetCharge(Float_t q)
331 // Set the particle charge
334 ///////////////////////////////////////////////////////////////////////////
335 void AliTrack::Data(TString f)
337 // Provide track information within the coordinate frame f
338 Double_t m=GetMass();
339 Double_t dm=GetResultError();
340 cout << " *AliTrack::Data* Id : " << fUserId << " Code : " << fCode
341 << " Mass : " << m << " error : " << dm << " Charge : " << fQ
342 << " Momentum : " << GetMomentum() << " Nmass hyp. : " << fNmasses
343 << " Ntracks : " << fNdec << " Nsignals : " << fNsig << endl;
344 for (Int_t i=0; i<fNmasses; i++)
346 cout << " Mass hypothesis " << (i+1) << " Mass : " << fMasses->At(i)
347 << " error : " << fDmasses->At(i) << " prob. : " << fPmasses->At(i)
352 ///////////////////////////////////////////////////////////////////////////
353 void AliTrack::List(TString f)
355 // Provide current track and decay level 1 information within coordinate frame f
357 Data(f); // Information of the current track
359 // Decay products of this track
361 for (Int_t id=1; id<=fNdec; id++)
363 td=GetDecayTrack(id);
366 cout << " ---Level 1 sec. track no. " << id << endl;
371 cout << " *AliTrack::List* Error : No decay track present." << endl;
375 ///////////////////////////////////////////////////////////////////////////
376 void AliTrack::ListAll(TString f)
378 // Provide complete track and decay information within the coordinate frame f
380 Data(f); // Information of the current track
381 if (fBegin) { cout << " Begin-point :"; fBegin->Data(f); }
382 if (fEnd) { cout << " End-point :"; fEnd->Data(f); }
383 for (Int_t is=1; is<=GetNsignals(); is++)
385 ((AliSignal*)GetSignal(is))->Data(f);
389 Dumps(t,1,f); // Information of all decay products
391 //////////////////////////////////////////////////////////////////////////
392 void AliTrack::Dumps(AliTrack* t,Int_t n,TString f)
394 // Recursively provide the info of all decay levels of this track
396 for (Int_t id=1; id<=t->GetNdecay(); id++)
398 td=t->GetDecayTrack(id);
401 cout << " ---Level " << n << " sec. track no. " << id << endl;
403 for (Int_t is=1; is<=td->GetNsignals(); is++)
405 ((AliSignal*)td->GetSignal(is))->Data(f);
408 // Go for next decay level of this decay track recursively
413 cout << " *AliTrack::Dumps* Error : No decay track present." << endl;
417 //////////////////////////////////////////////////////////////////////////
418 Double_t AliTrack::GetMomentum()
420 // Provide the value of the track 3-momentum.
421 // The error can be obtained by invoking GetResultError() after
422 // invokation of GetMomentum().
423 Double_t norm=fV.GetNorm();
424 fDresult=fV.GetResultError();
427 ///////////////////////////////////////////////////////////////////////////
428 Ali3Vector AliTrack::Get3Momentum()
430 // Provide the track 3-momentum
431 return (Ali3Vector)Get3Vector();
433 ///////////////////////////////////////////////////////////////////////////
434 Double_t AliTrack::GetMass()
436 // Provide the particle mass.
437 // The error can be obtained by invoking GetResultError() after
438 // invokation of GetMass().
439 Double_t inv=GetInvariant();
440 Double_t dinv=GetResultError();
444 Double_t m=sqrt(inv);
445 if (m) dm=dinv/(2.*m);
451 cout << "*AliTrack::GetMass* Unphysical situation m**2 = " << inv << endl;
452 cout << " Value 0 will be returned." << endl;
457 ///////////////////////////////////////////////////////////////////////////
458 Float_t AliTrack::GetCharge()
460 // Provide the particle charge
463 ///////////////////////////////////////////////////////////////////////////
464 Double_t AliTrack::GetEnergy()
466 // Provide the particle's energy.
467 // The error can be obtained by invoking GetResultError() after
468 // invokation of GetEnergy().
469 Double_t E=GetScalar();
476 cout << "*AliTrack::GetEnergy* Unphysical situation E = " << E << endl;
477 cout << " Value 0 will be returned." << endl;
481 ///////////////////////////////////////////////////////////////////////////
482 void AliTrack::Decay(Double_t m1,Double_t m2,Double_t thcms,Double_t phicms)
484 // Perform 2-body decay of current track
485 // m1 : mass of decay product 1
486 // m2 : mass of decay product 2
487 // thcms : cms theta decay angle (in rad.) of m1
488 // phicms : cms phi decay angle (in rad.) of m1
490 fNdec=2; // it's a 2-body decay
492 Double_t M=GetMass();
494 // Compute the 4-momenta of the decay products in the cms
495 // Note : p2=p1=pnorm for a 2-body decay
497 if (M) e1=((M*M)+(m1*m1)-(m2*m2))/(2.*M);
499 if (M) e2=((M*M)+(m2*m2)-(m1*m1))/(2.*M);
500 Double_t pnorm=(e1*e1)-(m1*m1);
515 p.SetVector(a,"sph");
518 pprim1.SetVector(e1,p);
519 pprim1.SetInvariant(m1*m1);
523 pprim2.SetVector(e2,p);
524 pprim2.SetInvariant(m2*m2);
526 // Determine boost parameters from the parent particle
527 Double_t E=GetEnergy();
535 Ali4Vector p1=q.Inverse(pprim1); // Boost decay product 1
536 Ali4Vector p2=q.Inverse(pprim2); // Boost decay product 2
538 // Enter the boosted data into the decay tracks array
544 fDecays=new TObjArray();
547 fDecays->Add(new AliTrack);
548 ((AliTrack*)fDecays->At(0))->Set4Momentum(p1);
549 ((AliTrack*)fDecays->At(0))->SetMass(m1);
550 fDecays->Add(new AliTrack);
551 ((AliTrack*)fDecays->At(1))->Set4Momentum(p2);
552 ((AliTrack*)fDecays->At(1))->SetMass(m2);
554 ///////////////////////////////////////////////////////////////////////////
555 Int_t AliTrack::GetNdecay()
557 // Provide the number of decay produced tracks
560 ///////////////////////////////////////////////////////////////////////////
561 AliTrack* AliTrack::GetDecayTrack(Int_t j)
563 // Provide decay produced track number j
564 // Note : j=1 denotes the first decay track
567 cout << " *AliTrack::GetDecayTrack* No tracks present." << endl;
572 if ((j >= 1) && (j <= fNdec))
574 return (AliTrack*)fDecays->At(j-1);
578 cout << " *AliTrack* decay track number : " << j << " out of range."
579 << " Ndec = " << fNdec << endl;
584 ///////////////////////////////////////////////////////////////////////////
585 void AliTrack::AddSignal(AliSignal& s)
587 // Relate an AliSignal object to this track.
588 if (!fSignals) fSignals=new TObjArray();
592 ///////////////////////////////////////////////////////////////////////////
593 void AliTrack::RemoveSignal(AliSignal& s)
595 // Remove related AliSignal object to this track.
598 AliSignal* test=(AliSignal*)fSignals->Remove(&s);
602 fSignals->Compress();
606 ///////////////////////////////////////////////////////////////////////////
607 Int_t AliTrack::GetNsignals()
609 // Provide the number of related AliSignals.
612 ///////////////////////////////////////////////////////////////////////////
613 AliSignal* AliTrack::GetSignal(Int_t j)
615 // Provide the related AliSignal number j.
616 // Note : j=1 denotes the first signal.
619 cout << " *AliTrack::GetSignal* No signals present." << endl;
624 if ((j >= 1) && (j <= fNsig))
626 return (AliSignal*)fSignals->At(j-1);
630 cout << " *AliTrack* signal number : " << j << " out of range."
631 << " Nsig = " << fNsig << endl;
636 ///////////////////////////////////////////////////////////////////////////
637 void AliTrack::SetBeginPoint(AliPosition& p)
639 // Store the position of the track begin-point.
642 fBegin=new AliPositionObj(p);
649 ///////////////////////////////////////////////////////////////////////////
650 AliPosition* AliTrack::GetBeginPoint()
652 // Provide the position of the track begin-point.
655 ///////////////////////////////////////////////////////////////////////////
656 void AliTrack::SetEndPoint(AliPosition& p)
658 // Store the position of the track end-point.
661 fEnd=new AliPositionObj(p);
668 ///////////////////////////////////////////////////////////////////////////
669 AliPosition* AliTrack::GetEndPoint()
671 // Provide the position of the track end-point.
674 ///////////////////////////////////////////////////////////////////////////
675 void AliTrack::AddMassHypothesis(Double_t prob,Double_t m,Double_t dm)
677 // Add a mass hypothesis for this current track.
678 // prob=probalility m=mass value dm=error on the mass value.
679 // The default value for the mass error dm is 0.
680 if (!fMasses) fMasses=new TArrayD();
681 if (!fDmasses) fDmasses=new TArrayD();
682 if (!fPmasses) fPmasses=new TArrayD();
685 fMasses->Set(fNmasses);
686 fDmasses->Set(fNmasses);
687 fPmasses->Set(fNmasses);
689 fMasses->AddAt(m,fNmasses-1);
690 fDmasses->AddAt(dm,fNmasses-1);
691 fPmasses->AddAt(prob,fNmasses-1);
693 ///////////////////////////////////////////////////////////////////////////
694 Int_t AliTrack::GetNMassHypotheses()
696 // Provide the number of mass hypotheses for this track.
699 ///////////////////////////////////////////////////////////////////////////
700 Double_t AliTrack::GetMassHypothesis(Int_t j)
702 // Provide the mass of the jth hypothesis for this track.
703 // Note : the first hypothesis is indicated by j=1.
704 // Default : j=0 ==> Hypothesis with highest probability.
705 // The error on the mass can be obtained by invoking GetResultError()
706 // after invokation of GetMassHypothesis(j).
708 Double_t m=0,dm=0,prob=0;
710 // Check validity of index j
711 if (j<0 || j>fNmasses)
713 cout << " *AliTrack::GetMassHypothesis* Invalid index j : " << j
714 << " Number of mass hypotheses : " << fNmasses << endl;
719 // Select mass hypothesis with highest probability
726 prob=fPmasses->At(0);
727 for (Int_t i=1; i<fNmasses; i++)
729 if (fPmasses->At(i)>prob)
740 // Provide data of requested mass hypothesis
742 fDresult=fDmasses->At(j-1);
745 ///////////////////////////////////////////////////////////////////////////
746 Double_t AliTrack::GetMassHypothesisProb(Int_t j)
748 // Provide the probability of the jth hypothesis for this track.
749 // Note : the first hypothesis is indicated by j=1.
750 // Default : j=0 ==> Hypothesis with highest probability.
754 // Check validity of index j
755 if (j<0 || j>fNmasses)
757 cout << " *AliTrack::GetMassHypothesisProb* Invalid index j : " << j
758 << " Number of mass hypotheses : " << fNmasses << endl;
762 // Select mass hypothesis with highest probability
767 prob=fPmasses->At(0);
768 for (Int_t i=1; i<fNmasses; i++)
770 if (fPmasses->At(i)>prob) prob=fPmasses->At(i);
776 // Provide probability of requested mass hypothesis
777 prob=fPmasses->At(j-1);
780 ///////////////////////////////////////////////////////////////////////////
781 void AliTrack::SetMass()
783 // Set the mass and error to the value of the hypothesis with highest prob.
785 Double_t m=0,dm=0,prob=0;
787 // Select mass hypothesis with highest probability
792 prob=fPmasses->At(0);
793 for (Int_t i=1; i<fNmasses; i++)
795 if (fPmasses->At(i)>prob)
805 cout << " *AliTrack::SetMass()* No hypothesis present => No action." << endl;
808 ///////////////////////////////////////////////////////////////////////////
809 void AliTrack::RemoveMassHypothesis(Int_t j)
811 // Remove the jth mass hypothesis for this track.
812 // Note : the first hypothesis is indicated by j=1.
814 if (j<=0 || j>fNmasses) // Check validity of index j
816 cout << " *AliTrack::RemoveMassHypothesis* Invalid index j : " << j
817 << " Number of mass hypotheses : " << fNmasses << endl;
823 fMasses->AddAt(fMasses->At(fNmasses-1),j-1);
824 fDmasses->AddAt(fDmasses->At(fNmasses-1),j-1);
825 fPmasses->AddAt(fPmasses->At(fNmasses-1),j-1);
827 fMasses->AddAt(0,fNmasses-1);
828 fDmasses->AddAt(0,fNmasses-1);
829 fPmasses->AddAt(0,fNmasses-1);
831 fMasses->Set(fNmasses);
832 fDmasses->Set(fNmasses);
833 fPmasses->Set(fNmasses);
836 ///////////////////////////////////////////////////////////////////////////
837 Double_t AliTrack::GetPt()
839 // Provide trans. momentum value w.r.t. z-axis.
840 // The error on the value can be obtained by GetResultError()
841 // after invokation of GetPt().
844 Double_t norm=v.GetNorm();
845 fDresult=v.GetResultError();
849 ///////////////////////////////////////////////////////////////////////////
850 Double_t AliTrack::GetPl()
852 // Provide long. momentum value w.r.t. z-axis.
853 // Note : the returned value can also be negative.
854 // The error on the value can be obtained by GetResultError()
855 // after invokation of GetPl().
859 Double_t pl=v.GetNorm();
860 fDresult=v.GetResultError();
863 v.GetVector(a,"sph");
864 if (cos(a[1])<0) pl=-pl;
868 ///////////////////////////////////////////////////////////////////////////
869 Double_t AliTrack::GetEt()
871 // Provide trans. energy value w.r.t. z-axis.
872 // The error on the value can be obtained by GetResultError()
873 // after invokation of GetEt().
874 Double_t et=GetScaTrans();
878 ///////////////////////////////////////////////////////////////////////////
879 Double_t AliTrack::GetEl()
881 // Provide long. energy value w.r.t. z-axis.
882 // Note : the returned value can also be negative.
883 // The error on the value can be obtained by GetResultError()
884 // after invokation of GetEl().
885 Double_t el=GetScaLong();
889 ///////////////////////////////////////////////////////////////////////////
890 Double_t AliTrack::GetMt()
892 // Provide transverse mass value w.r.t. z-axis.
893 // The error on the value can be obtained by GetResultError()
894 // after invokation of GetMt().
896 Double_t dpt=GetResultError();
897 Double_t m=GetMass();
898 Double_t dm=GetResultError();
900 Double_t mt=sqrt(pt*pt+m*m);
902 if (mt) dmt2=(pow((pt*dpt),2)+pow((m*dm),2))/(mt*mt);
907 ///////////////////////////////////////////////////////////////////////////
908 Double_t AliTrack::GetMt(Int_t j)
910 // Provide transverse mass value w.r.t. z-axis and jth mass hypothesis.
911 // Note : the first hypothesis is indicated by j=1.
912 // j=0 ==> Hypothesis with highest probability.
913 // The error on the value can be obtained by GetResultError()
914 // after invokation of GetMt(j).
916 Double_t dpt=GetResultError();
917 Double_t m=GetMassHypothesis(j);
918 Double_t dm=GetResultError();
920 Double_t mt=sqrt(pt*pt+m*m);
922 if (mt) dmt2=(pow((pt*dpt),2)+pow((m*dm),2))/(mt*mt);
927 ///////////////////////////////////////////////////////////////////////////
928 Double_t AliTrack::GetRapidity()
930 // Provide rapidity value w.r.t. z-axis.
931 // The error on the value can be obtained by GetResultError()
932 // after invokation of GetRapidity().
933 // Note : Also GetPseudoRapidity() is available since this class is
934 // derived from Ali4Vector.
935 Double_t e=GetEnergy();
936 Double_t de=GetResultError();
938 Double_t dpl=GetResultError();
942 Double_t y=9999,dy2=0;
943 if (sum && dif) y=0.5*log(sum/dif);
945 if (sum*dif) dy2=(1./(sum*dif))*(pow((pl*de),2)+pow((e*dpl),2));
950 ///////////////////////////////////////////////////////////////////////////
951 void AliTrack::SetImpactPoint(AliPosition& p,TString q)
953 // Store the position of the impact-point in the plane "q=0".
954 // Here q denotes one of the axes X, Y or Z.
955 // Note : The character to denote the axis may be entered in lower or
958 if (q=="x" || q=="X") axis=1;
959 if (q=="y" || q=="Y") axis=2;
960 if (q=="z" || q=="Z") axis=3;
964 case 1: // Impact-point in the plane X=0
967 fImpactYZ=new AliPositionObj(p);
975 case 2: // Impact-point in the plane Y=0
978 fImpactXZ=new AliPositionObj(p);
986 case 3: // Impact-point in the plane Z=0
989 fImpactXY=new AliPositionObj(p);
997 default: // Unsupported axis
998 cout << "*AliTrack::SetImpactPoint* Unsupported axis : " << q << endl
999 << " Possible axes are 'X', 'Y' and 'Z'." << endl;
1003 ///////////////////////////////////////////////////////////////////////////
1004 AliPosition* AliTrack::GetImpactPoint(TString q)
1006 // Provide the position of the impact-point in the plane "q=0".
1007 // Here q denotes one of the axes X, Y or Z.
1008 // Note : The character to denote the axis may be entered in lower or
1011 if (q=="x" || q=="X") axis=1;
1012 if (q=="y" || q=="Y") axis=2;
1013 if (q=="z" || q=="Z") axis=3;
1017 case 1: // Impact-point in the plane X=0
1020 case 2: // Impact-point in the plane Y=0
1023 case 3: // Impact-point in the plane Z=0
1026 default: // Unsupported axis
1027 cout << "*AliTrack::GetImpactPoint* Unsupported axis : " << q << endl
1028 << " Possible axes are 'X', 'Y' and 'Z'." << endl;
1032 ///////////////////////////////////////////////////////////////////////////
1033 void AliTrack::SetId(Int_t id)
1035 // Set a user defined unique identifier for this track.
1038 ///////////////////////////////////////////////////////////////////////////
1039 Int_t AliTrack::GetId()
1041 // Provide the user defined unique identifier of this track.
1044 ///////////////////////////////////////////////////////////////////////////
1045 void AliTrack::SetClosestPoint(AliPosition& p)
1047 // Set position p as the point of closest approach w.r.t. some reference
1050 fClosest=new AliPositionObj(p);
1057 ///////////////////////////////////////////////////////////////////////////
1058 AliPosition* AliTrack::GetClosestPoint()
1060 // Provide the point of closest approach w.r.t. some reference
1063 ///////////////////////////////////////////////////////////////////////////
1064 void AliTrack::SetChi2(Float_t chi2)
1066 // Set the chi-squared value of the track fit.
1069 cout << " *AliTrack::SetChi2* Invalid chi2 value : " << chi2 << endl;
1076 ///////////////////////////////////////////////////////////////////////////
1077 void AliTrack::SetNdf(Int_t ndf)
1079 // Set the number of degrees of freedom for the track fit.
1082 cout << " *AliTrack::SetNdf* Invalid ndf value : " << ndf << endl;
1089 ///////////////////////////////////////////////////////////////////////////
1090 Float_t AliTrack::GetChi2()
1092 // Provide the chi-squared value of the track fit.
1095 ///////////////////////////////////////////////////////////////////////////
1096 Int_t AliTrack::GetNdf()
1098 // Provide the number of degrees of freedom for the track fit.
1101 ///////////////////////////////////////////////////////////////////////////
1102 void AliTrack::SetParticleCode(Int_t code)
1104 // Set the user defined particle id code (e.g. the PDF convention).
1107 ///////////////////////////////////////////////////////////////////////////
1108 Int_t AliTrack::GetParticleCode()
1110 // Provide the user defined particle id code.
1113 ///////////////////////////////////////////////////////////////////////////
1114 void AliTrack::SetParentTrack(AliTrack* t)
1116 // Set pointer to the parent track.
1119 ///////////////////////////////////////////////////////////////////////////
1120 AliTrack* AliTrack::GetParentTrack()
1122 // Provide pointer to the parent track.
1125 ///////////////////////////////////////////////////////////////////////////