]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
24-jul-2001 NvE Support for Chi2 and NDF information of track fit introduced in AliTrack.
authornick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jul 2001 12:24:27 +0000 (12:24 +0000)
committernick <nick@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jul 2001 12:24:27 +0000 (12:24 +0000)
RALICE/AliTrack.cxx
RALICE/AliTrack.h
RALICE/history.txt

index 67ed2355edf86b26f09434c9c7e12a889fabcf90..c38721eb21a8e46c798ce39d044c86a721145a4b 100644 (file)
@@ -126,6 +126,8 @@ void AliTrack::Reset()
 {
 // Reset all variables to 0 and delete all auto-generated decay tracks.
  fQ=0;
+ fChi2=0;
+ fNdf=0;
  fUserId=0;
  fNdec=0;
  fNsig=0;
@@ -870,3 +872,41 @@ AliPosition AliTrack::GetClosestPoint()
  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;
+}
+///////////////////////////////////////////////////////////////////////////
index 7bfb1ed5f18131ed64b4f51811c429047b9dd51f..77f8298b61ddfff086e76a2c5b3b919d437af4a3 100644 (file)
@@ -63,6 +63,11 @@ class AliTrack : public TObject,public Ali4Vector
   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
@@ -81,6 +86,8 @@ class AliTrack : public TObject,public Ali4Vector
   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
index d0ec5fae6ff501c5a539883a5a1e9b8423588bf1..07cd44e5d2d703aea8f61368a52ac25583d09937 100644 (file)
                 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.