]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliTrack.h
Forces clean of data before reloading. Do systematically the reload even if already...
[u/mrichter/AliRoot.git] / RALICE / AliTrack.h
index f5add2e39afde07a8713cdc6e7a32be5c82ca346..f10c2483452a156edb9e4edceb1a91ebc0b4a3d9 100644 (file)
 class AliTrack : public TNamed,public Ali4Vector
 {
  public:
-  AliTrack();                           // Default constructor
-  virtual ~AliTrack();                  // Destructor
-  AliTrack(AliTrack& t);                // Copy constructor
-  virtual TObject* Clone(const char* name=""); // Make a deep copy and provide its pointer
-  virtual void Reset();                 // Reset all values to 0
-  void Set4Momentum(Ali4Vector& p);     // Set track 4-momentum
-  void Set3Momentum(Ali3Vector& p);     // Set track 3-momentum
+  AliTrack();                             // Default constructor
+  virtual ~AliTrack();                    // Destructor
+  AliTrack(const AliTrack& t);            // Copy constructor
+  virtual TObject* Clone(const char* name="") const; // Make a deep copy and provide its pointer
+  virtual 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 the values of the hypothesis with highest prob.
-  void SetCharge(Float_t q);            // Set particle charge
-  virtual void Data(TString f="car");   // Print track information for coord. frame f
-  virtual void List(TString f="car");   // Print track and decay level 1 information for coord. frame f
-  virtual void ListAll(TString f="car");// Print track and all decay level information for coord. frame f
-  Ali3Vector Get3Momentum();            // Provide track 3-momentum
-  Double_t GetMomentum();               // Provide value of track 3-momentum
-  Double_t GetMass();                   // Provide particle mass
-  Float_t GetCharge();                  // Provide particle charge
-  Double_t GetEnergy();                 // Provide particle total energy
+  void SetMass();                         // Set mass and error to the values of the hyp. with highest prob.
+  void SetCharge(Float_t q);              // Set particle charge
+  virtual void Data(TString f="car");     // Print track information for coord. frame f
+  virtual void List(TString f="car");     // Print track and decay level 1 information for coord. frame f
+  virtual void ListAll(TString f="car");  // Print track and all decay level information for coord. frame f
+  Ali3Vector Get3Momentum() const;        // Provide track 3-momentum
+  Double_t GetMomentum();                 // Provide value of track 3-momentum
+  Double_t GetMass();                     // Provide particle mass
+  Float_t GetCharge() const;              // Provide particle charge
+  Double_t GetEnergy();                   // Provide particle total energy
   void Decay(Double_t m1,Double_t m2,Double_t thcms,Double_t phicms); // Perform 2-body decay
-  Int_t GetNdecay();                    // Provide number of decay products
-  AliTrack* GetDecayTrack(Int_t j);     // Access to decay produced track number j
-  void RemoveDecays();                  // Remove all the decay products of this track
-  void AddSignal(AliSignal& s);         // Relate an AliSignal to this track
-  void RemoveSignal(AliSignal& s);      // Remove related AliSignal from this track
-  void RemoveSignals();                 // Remove all related AliSignals from this track
-  Int_t GetNsignals();                  // Provide number of related AliSignals
-  AliSignal* GetSignal(Int_t j);        // Access to the related AliSignal number j
-  void SetBeginPoint(AliPosition& p);   // Set the track begin-point
-  AliPosition* GetBeginPoint();         // Provide the track begin-point
-  void SetEndPoint(AliPosition& p);     // Set the track end-point
-  AliPosition* GetEndPoint();           // Provide the track end-point
-  void AddTrackHypothesis(AliTrack& t); // Add track hypothesis
+  Int_t GetNdecay() const;                // Provide number of decay products
+  AliTrack* GetDecayTrack(Int_t j) const; // Access to decay produced track number j
+  void RemoveDecays();                    // Remove all the decay products of this track
+  void AddSignal(AliSignal& s);           // Relate an AliSignal to this track
+  void RemoveSignal(AliSignal& s);        // Remove related AliSignal from this track
+  void RemoveSignals();                   // Remove all related AliSignals from this track
+  Int_t GetNsignals() const;              // Provide number of related AliSignals
+  AliSignal* GetSignal(Int_t j) const;    // Access to the related AliSignal number j
+  void SetBeginPoint(AliPosition& p);     // Set the track begin-point
+  AliPosition* GetBeginPoint();           // Provide the track begin-point
+  void SetEndPoint(AliPosition& p);       // Set the track end-point
+  AliPosition* GetEndPoint();             // Provide the track end-point
+  void AddTrackHypothesis(AliTrack& t);   // Add track hypothesis
   void AddTrackHypothesis(Double_t prob,Double_t m,Double_t dm=0); // Add track hypothesis with mass data
-  Int_t GetNhypotheses();               // Provide number of track hypotheses
-  AliTrack* GetTrackHypothesis(Int_t j=0) // Provide the j-th track hypothesis 
-  void RemoveTrackHypothesis(AliTrack& t);  // Remove the specified track hypothesis 
-  void RemoveTrackHypotheses();         // Remove all track hypotheses 
-  Double_t GetPt();                     // Provide trans. momentum w.r.t. z-axis
-  Double_t GetPl();                     // Provide long. momentum w.r.t. z-axis
-  Double_t GetEt();                     // Provide trans. energy w.r.t. z-axis
-  Double_t GetEl();                     // Provide long. energy w.r.t. z-axis
-  Double_t GetMt();                     // Provide trans. mass w.r.t. z-axis
-  Double_t GetRapidity();               // Provide rapidity value w.r.t. z-axis
+  Int_t GetNhypotheses() const;           // Provide number of track hypotheses
+  AliTrack* GetTrackHypothesis(Int_t j=0) const; // Provide the j-th track hypothesis 
+  void RemoveTrackHypothesis(AliTrack& t);// Remove the specified track hypothesis 
+  void RemoveTrackHypotheses();           // Remove all track hypotheses 
+  Double_t GetPt();                       // Provide trans. momentum w.r.t. z-axis
+  Double_t GetPl();                       // Provide long. momentum w.r.t. z-axis
+  Double_t GetEt();                       // Provide trans. energy w.r.t. z-axis
+  Double_t GetEl();                       // Provide long. energy w.r.t. z-axis
+  Double_t GetMt();                       // Provide trans. mass w.r.t. z-axis
+  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 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
-  void SetParentTrack(AliTrack* t);     // Set pointer to the parent track
-  AliTrack* GetParentTrack();           // Provide pointer to the parent track
-  void SetProb(Double_t prob);          // Set the hypothesis probability for this track
-  Float_t GetProb();                    // Provide the hypothesis probability for this track
+  void SetId(Int_t id);                   // Set the user defined unique track identifier
+  Int_t GetId() const;                    // 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() const;                // Provide the chi-squared value of the track fit
+  Int_t GetNdf() const;                   // 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() const;          // Provide the user defined particle id code
+  void SetParentTrack(AliTrack* t);       // Set pointer to the parent track
+  AliTrack* GetParentTrack();             // Provide pointer to the parent track
+  void SetProb(Double_t prob);            // Set the hypothesis probability for this track
+  Float_t GetProb() const;                // Provide the hypothesis probability for this track
 
  
  protected:
@@ -102,6 +102,6 @@ class AliTrack : public TNamed,public Ali4Vector
  private:
   void Dumps(AliTrack* t,Int_t n,TString f); // Recursively print all decay levels
  
- ClassDef(AliTrack,10) // Handling of the attributes of a reconstructed particle track.
+ ClassDef(AliTrack,11) // Handling of the attributes of a reconstructed particle track.
 };
 #endif