]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliTrack.h
remove obsolete macro
[u/mrichter/AliRoot.git] / RALICE / AliTrack.h
index 7bfb1ed5f18131ed64b4f51811c429047b9dd51f..c879664f1bc26b63ad149c40bcbcf9db834a2456 100644 (file)
@@ -20,13 +20,14 @@ class AliTrack : public TObject,public Ali4Vector
  public:
   AliTrack();                       // Default constructor
   ~AliTrack();                      // Destructor
+  AliTrack(AliTrack& t);            // Copy constructor
   void Reset();                     // Reset all values to 0
   void Set4Momentum(Ali4Vector& p); // Set track 4-momentum
   void Set3Momentum(Ali3Vector& p); // Set track 3-momentum
   void SetMass(Double_t m,Double_t dm=0); // Set particle mass and error
   void SetMass();                   // Set mass and error to mass hypothesis with highest prob.
   void SetCharge(Float_t q);        // Set particle charge
-  void Info(TString f="car");       // Print track information for coord. frame f
+  void Data(TString f="car");       // Print track information for coord. frame f
   void List(TString f="car");       // Print track and decay level 1 information for coord. frame f
   void ListAll(TString f="car");    // Print track and all decay level information for coord. frame f
   Ali3Vector Get3Momentum();        // Provide track 3-momentum
@@ -59,12 +60,20 @@ class AliTrack : public TObject,public Ali4Vector
   Double_t GetRapidity();           // Provide rapidity value w.r.t. z-axis
   void SetImpactPoint(AliPosition p,TString q); // Set the impact-point in plane "q=0"
   AliPosition GetImpactPoint(TString q);        // Provide the impact-point in plane "q=0"
-  void SetId(Int_t id);             // Set the user defined identifier
-  Int_t GetId();                    // Provide the user defined identifier
+  void SetId(Int_t id);             // Set the user defined unique track identifier
+  Int_t GetId();                    // Provide the user defined unique track 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
+  void SetParticleCode(Int_t code); // Set the user defined particle id code (e.g. the PDF convention)
+  Int_t GetParticleCode();          // Provide the user defined particle id code
+
  
  protected:
+  void Init();           // Initialisation of pointers etc...
   Float_t fQ;            // The charge of the particle
   Int_t fNdec;           // The number of decay products
   TObjArray* fDecays;    // The array of decay produced tracks
@@ -81,10 +90,13 @@ 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
+  Int_t fCode;           // The user defined particle id code
 
  private:
   void Dump(AliTrack* t,Int_t n,TString f); // Recursively print all decay levels
  
- ClassDef(AliTrack,1) // Handling of the attributes of a reconstructed particle track.
+ ClassDef(AliTrack,3) // Handling of the attributes of a reconstructed particle track.
 };
 #endif