]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliVertex.h
Added AliL3Stopwatch.
[u/mrichter/AliRoot.git] / RALICE / AliVertex.h
index 57507546b1a37af8e79a0a05a1c07aa78044eb3f..48b2351f02e3f50ad4c5e36a2a4a3a9deaeb589e 100644 (file)
@@ -10,6 +10,7 @@
  
 #include "TObject.h"
 #include "TObjArray.h"
+#include "TPolyLine3D.h"
  
 #include "AliJet.h"
 #include "AliPosition.h"
@@ -20,6 +21,8 @@ class AliVertex : public AliJet,public AliPosition
   AliVertex();                            // Default constructor
   AliVertex(Int_t n);                     // Create a vertex to hold initially n tracks
   ~AliVertex();                           // Default destructor
+  virtual void SetOwner(Bool_t own=kTRUE);// Set ownership of all added objects
+  AliVertex(AliVertex& v);                // Copy constructor
   void Reset();                           // Reset all values and stored vertex and jet lists
   void ResetVertices();                   // Reset stored vertex list
   void AddJet(AliJet& j,Int_t tracks=1);  // Add a jet (and its tracks) to the vertex
@@ -41,8 +44,12 @@ class AliVertex : public AliJet,public AliPosition
   void SetNjmax(Int_t n=2);               // Set the initial max. number of jets
   void SetJetCopy(Int_t j);               // (De)activate creation of private copies in fJets
   Int_t GetJetCopy();                     // Provide JetCopy flag value      
+  Int_t IsConnectTrack(AliTrack* t);      // Indicate if track is created by vertex connection
+  Int_t IsJetTrack(AliTrack* t);          // Indicate if track is resulting from jet addition
+  void Draw(Int_t secs=1,Int_t cons=1,Int_t jets=0); // Draw the vertex in an event display
 
  protected:
+  void Init();          // Initialisation of pointers etc... 
   Int_t fNvmax;         // The maximum number of (secondary) vertices
   Int_t fNvtx;          // The number of (secondary) vertices
   TObjArray* fVertices; // Array to hold the pointers to the (secondary) vertices
@@ -51,11 +58,13 @@ class AliVertex : public AliJet,public AliPosition
   Int_t fNjmax;         // The maximum number of jets
   Int_t fNjets;         // The number of jets
   TObjArray* fJets;     // Array to hold the pointers to the jets
+  TObjArray* fJetTracks;// Array to hold the pointers to tracks introduced by jet addition
   Int_t fJetCopy;       // Flag to denote creation of private copies in fJets
+  TObjArray* fLines;    //! Array to (temporarily) store the 3D lines for the event display 
 
  private:
   void Dump(AliVertex* v,Int_t n,TString f); // Recursively print all sec. vertices
  
- ClassDef(AliVertex,1) // Creation and investigation of an AliVertex.
+ ClassDef(AliVertex,3) // Creation and investigation of an AliVertex.
 };
 #endif