3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
12 #include "TObjArray.h"
14 #include "Ali4Vector.h"
17 class AliJet : public TObject,public Ali4Vector
20 AliJet(); // Default constructor
21 AliJet(Int_t n); // Create a Jet to hold initially n Tracks
22 ~AliJet(); // Default destructor
23 void Reset(); // Reset all values
24 virtual void Add(AliTrack& t); // Add a track to the jet
25 virtual void Add(AliTrack* t) { Add(*t); }
26 void Info(TString f); // Print jet information in coordinate frame f
27 void List(TString f="car"); // Print jet prim. track information for coord. frame f
28 void ListAll(TString f="car"); // Print jet prim. and decay track information for coord. frame f
29 Double_t GetEnergy(); // Provide the total jet energy
30 Double_t GetMomentum(); // Provide the value of the total jet 3-momentum
31 Ali3Vector Get3Momentum(); // Provide the total jet 3-momentum
32 Double_t GetInvmass(); // Provide the invariant mass
33 Float_t GetCharge(); // Provide the total charge of the jet
34 Int_t GetNtracks(); // Return the number of tracks in the jet
35 AliTrack* GetTrack(Int_t i); // Provide i-th track of the jet (1=first track)
38 void SetNtinit(Int_t n=2); // Set the initial max. number of tracks for this Jet
39 Int_t fNtinit; // The initial max. number of tracks for this jet
40 Int_t fNtmax; // The maximum number of tracks for this Jet
41 Float_t fQ; // The total charge of the jet
42 Int_t fNtrk; // The number of tracks in the jet
43 TObjArray* fTracks; // Array to hold the pointers to the tracks of the jet
45 ClassDef(AliJet,1) // Creation and investigation of a jet of particle tracks.