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
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...
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