]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliVertex.h
09-jul-2001 NvE Support for impact points and user identifier introduced in AliTrack.
[u/mrichter/AliRoot.git] / RALICE / AliVertex.h
index 3c36fbfbb8f0f7d95d8f45aabeccd6a34bd30cd5..57507546b1a37af8e79a0a05a1c07aa78044eb3f 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
+// $Id$
 
 #include <iostream.h>
 #include <math.h>
 class AliVertex : public AliJet,public AliPosition
 {
  public:
-  AliVertex();                        // Default constructor
-  AliVertex(Int_t n);                 // Create a vertex to hold initially n tracks
-  ~AliVertex();                       // Default destructor
-  void Reset();                       // Reset all values
-  void Add(AliJet& j);                // Add a jet of tracks to the vertex
-  void Add(AliVertex& v);             // Add a (secondary) vertex to the current vertex
-  void Add(AliJet* j)    { Add(*j); }
-  void Add(AliVertex* v) { Add(*v); }
-  void Info(TString f="car");         // Print the vertex info within coordinate frame f
-  void List(TString f="car");         // Print vertex prim. track information for coord. frame f
-  void ListAll(TString f="car");      // Print prim. + sec. vertex full track info for coord. frame f
-  Int_t GetNvertices();               // Return the number of (secondary) vertices
-  AliVertex* GetVertex(Int_t i);      // Provide i-th (secondary) vertex
-  void SetNvmax(Int_t n=2);           // Set the initial max. number of (secondary) vertices
+  AliVertex();                            // Default constructor
+  AliVertex(Int_t n);                     // Create a vertex to hold initially n tracks
+  ~AliVertex();                           // Default destructor
+  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
+  void AddVertex(AliVertex& v,Int_t connect=1);// Add (and connect) a (sec.) vertex to the current vertex
+  void AddJet(AliJet* j,Int_t tracks=1)    { AddJet(*j,tracks); }
+  void AddVertex(AliVertex* v,Int_t connect=1) { AddVertex(*v,connect); }
+  void Info(TString f="car");             // Print the vertex info within coordinate frame f
+  void List(TString f="car");             // Print vertex prim. track information for coord. frame f
+  void ListAll(TString f="car");          // Print prim. + sec. vertex full track info for coord. frame f
+  Int_t GetNvertices();                   // Return the number of (secondary) vertices
+  AliVertex* GetVertex(Int_t i);          // Provide i-th (secondary) vertex
+  AliVertex* GetIdVertex(Int_t id);       // Provide the vertex with user identifier "id"
+  void SetNvmax(Int_t n=2);               // Set the initial max. number of (secondary) vertices
+  void SetVertexCopy(Int_t j);            // (De)activate creation of private copies in fVertices
+  Int_t GetVertexCopy();                  // Provide VertexCopy flag value      
+  Int_t GetNjets();                       // Return the number of jets
+  AliJet* GetJet(Int_t i);                // Provide i-th jet
+  AliJet* GetIdJet(Int_t id);             // Provide the jet with user identifier "id"
+  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      
 
  protected:
   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
+  TObjArray* fConnects; // Array to hold the pointers to the auto-generated connecting tracks
+  Int_t fVertexCopy;    // Flag to denote creation of private copies in fVertices
+  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
+  Int_t fJetCopy;       // Flag to denote creation of private copies in fJets
 
  private:
   void Dump(AliVertex* v,Int_t n,TString f); // Recursively print all sec. vertices