]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliJet.h
Added AliL3Stopwatch.
[u/mrichter/AliRoot.git] / RALICE / AliJet.h
index 43d191059f75d9ccd523f98b1459ea29d353147a..2f40b0a33e0598e340981aa1d6b635921d8305ab 100644 (file)
@@ -20,9 +20,11 @@ class AliJet : public TObject,public Ali4Vector
   AliJet();                          // Default constructor
   AliJet(Int_t n);                   // Create a Jet to hold initially n Tracks
   ~AliJet();                         // Default destructor
+  virtual void SetOwner(Bool_t own=kTRUE);// Set ownership of all added objects
+  AliJet(AliJet& j);                 // Copy constructor
   void Reset();                      // Reset all values
-  virtual void AddTrack(AliTrack& t);// Add a track to the jet
-  virtual void AddTrack(AliTrack* t) { AddTrack(*t); }
+  void AddTrack(AliTrack& t,Int_t copy=1);// Add a track to the jet
+  void AddTrack(AliTrack* t,Int_t copy=1) { AddTrack(*t,copy); }
   void Info(TString f);              // Print jet information in coordinate frame f 
   void List(TString f="car");        // Print jet prim. track information for coord. frame f
   void ListAll(TString f="car");     // Print jet prim. and decay track information for coord. frame f
@@ -46,6 +48,7 @@ class AliJet : public TObject,public Ali4Vector
   Int_t GetId();                     // Provide the user defined identifier
 
  protected:
+  void Init();               // Initialisation of pointers etc...
   void SetNtinit(Int_t n=2); // Set the initial max. number of tracks for this Jet
   Int_t fNtinit;             // The initial max. number of tracks for this jet
   Int_t fNtmax;              // The maximum number of tracks for this Jet
@@ -55,6 +58,6 @@ class AliJet : public TObject,public Ali4Vector
   Int_t fTrackCopy;          // Flag to denote creation of private copies in fTracks
   Int_t fUserId;             // The user defined identifier
  
- ClassDef(AliJet,1) // Creation and investigation of a jet of particle tracks.
+ ClassDef(AliJet,2) // Creation and investigation of a jet of particle tracks.
 };
 #endif