{
// Reset all variables to 0 and delete all auto-generated decay tracks.
fQ=0;
+ fChi2=0;
+ fNdf=0;
fUserId=0;
fNdec=0;
fNsig=0;
return fClosest;
}
///////////////////////////////////////////////////////////////////////////
+void AliTrack::SetChi2(Float_t chi2)
+{
+// Set the chi-squared value of the track fit.
+ if (chi2<0)
+ {
+ cout << " *AliTrack::SetChi2* Invalid chi2 value : " << chi2 << endl;
+ }
+ else
+ {
+ fChi2=chi2;
+ }
+}
+///////////////////////////////////////////////////////////////////////////
+void AliTrack::SetNdf(Int_t ndf)
+{
+// Set the number of degrees of freedom for the track fit.
+ if (ndf<0)
+ {
+ cout << " *AliTrack::SetNdf* Invalid ndf value : " << ndf << endl;
+ }
+ else
+ {
+ fNdf=ndf;
+ }
+}
+///////////////////////////////////////////////////////////////////////////
+Float_t AliTrack::GetChi2()
+{
+// Provide the chi-squared value of the track fit.
+ return fChi2;
+}
+///////////////////////////////////////////////////////////////////////////
+Int_t AliTrack::GetNdf()
+{
+// Provide the number of degrees of freedom for the track fit.
+ return fNdf;
+}
+///////////////////////////////////////////////////////////////////////////
Int_t GetId(); // Provide the user defined identifier
void SetClosestPoint(AliPosition p); // Set position p as point of closest approach w.r.t. some reference
AliPosition GetClosestPoint(); // Provide point of closest approach w.r.t. some reference
+ void SetChi2(Float_t chi2); // Set the chi-squared value of the track fit
+ void SetNdf(Int_t ndf); // Set the number of degrees of freedom for the track fit
+ Float_t GetChi2(); // Provide the chi-squared value of the track fit
+ Int_t GetNdf(); // Provide the number of degrees of freedom for the track fit
+
protected:
Float_t fQ; // The charge of the particle
AliPosition fImpactYZ; // The (extrapolated) impact-point in the plane x=0
Int_t fUserId; // The user defined identifier
AliPosition fClosest; // The (extrapolated) point of closest approach w.r.t some reference
+ Float_t fChi2; // The Chi-squared of the track fit
+ Int_t fNdf; // The number of degrees of freedom of the track fit
private:
void Dump(AliTrack* t,Int_t n,TString f); // Recursively print all decay levels
Also user identifier facility introduced for AliJet and AliVertex.
12-jul-2001 NvE Memberfunction GetDistance() introduced for AliPosition and support for
point of closest approach introduced in AliTrack.
+24-jul-2001 NvE Support for Chi2 and NDF information of track fit introduced in AliTrack.