]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliJet.h
10-may-2006 NvE Distance determination between tracks and/or jets introduced in
[u/mrichter/AliRoot.git] / RALICE / AliJet.h
index edfc996ba90d2821ab63117db428d64322b39c32..339a95e3193165d78aca690749471fd4250fdea3 100644 (file)
@@ -37,6 +37,9 @@ class AliJet : public TNamed,public Ali4Vector
   AliTrack* GetTrack(Int_t i) const;       // Provide i-th track of the jet (1=first track)
   AliTrack* GetIdTrack(Int_t id) const;    // Provide the track with user identifier "id"
   TObjArray* GetTracks(Int_t idmode=0,Int_t chmode=2,Int_t pcode=0); // Provide references to selected tracks
+  TObjArray* GetTracks(TString name);      // Provide references to all tracks with a certain name
+  void RemoveTracks(Int_t idmode=0,Int_t chmode=2,Int_t pcode=0); // Remove selected tracks
+  void RemoveTracks(TString name);         // Remove all tracks with a certain name
   void ShowTracks(Int_t mode=1);           // Provide on overview of the available tracks
   Double_t GetPt();                        // Provide trans. momentum w.r.t. z-axis
   Double_t GetPl();                        // Provide long. momentum w.r.t. z-axis
@@ -51,6 +54,12 @@ class AliJet : public TNamed,public Ali4Vector
   void SetReferencePoint(AliPosition& p);  // Set the jet reference-point
   AliPosition* GetReferencePoint();        // Provide the jet reference-point
   TObjArray* SortTracks(Int_t mode=-1,TObjArray* tracks=0); // Sort tracks by a certain observable
+  Double_t GetDistance(AliPosition* p);    // Provide distance to position p
+  Double_t GetDistance(AliPosition& p) { return GetDistance(&p); }
+  Double_t GetDistance(AliTrack* t);       // Provide distance to track t
+  Double_t GetDistance(AliTrack& t) { return GetDistance(&t); }
+  Double_t GetDistance(AliJet* j);         // Provide distance to jet j
+  Double_t GetDistance(AliJet& j) { return GetDistance(&j); }
 
  protected:
   void Init();                           // Initialisation of pointers etc...
@@ -67,6 +76,6 @@ class AliJet : public TNamed,public Ali4Vector
   AliPositionObj* fRef;                  // The reference-point of the jet
   TObjArray* fSelected;                  //! Temp. array to hold user selected or ordered objects
  
- ClassDef(AliJet,14) // Creation and investigation of a jet of particle tracks.
+ ClassDef(AliJet,17) // Creation and investigation of a jet of particle tracks.
 };
 #endif