]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/AliVertex.h
Changes required by Coding Conventions
[u/mrichter/AliRoot.git] / RALICE / AliVertex.h
CommitLineData
d88f97cc 1#ifndef ALIVERTEX_H
2#define ALIVERTEX_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
f531a546 6// $Id$
3da30618 7
d88f97cc 8#include <math.h>
9
10#include "TObject.h"
11#include "TObjArray.h"
a37bb40e 12#include "TPolyLine3D.h"
d88f97cc 13
14#include "AliJet.h"
15#include "AliPosition.h"
16
17class AliVertex : public AliJet,public AliPosition
18{
19 public:
29beb80d 20 AliVertex(); // Default constructor
21 AliVertex(Int_t n); // Create a vertex to hold initially n tracks
c72198f1 22 virtual ~AliVertex(); // Default destructor
6516b62d 23 AliVertex(AliVertex& v); // Copy constructor
c72198f1 24 virtual void SetOwner(Bool_t own=kTRUE);// Set ownership of all added objects
1c01b4f8 25 virtual void Reset(); // Reset all values and stored vertex and jet lists
7849a8ab 26 void ResetVertices(); // Reset stored vertex list
f34f4acb 27 void AddJet(AliJet& j,Int_t tracks=1); // Add a jet (and its tracks) to the vertex
f531a546 28 void AddVertex(AliVertex& v,Int_t connect=1);// Add (and connect) a (sec.) vertex to the current vertex
f34f4acb 29 void AddJet(AliJet* j,Int_t tracks=1) { AddJet(*j,tracks); }
f935b777 30 void AddVertex(AliVertex* v,Int_t connect=1) { AddVertex(*v,connect); }
1c01b4f8 31 virtual void Data(TString f="car"); // Print the vertex info within coordinate frame f
32 virtual void List(TString f="car"); // Print vertex prim. track information for coord. frame f
33 virtual void ListAll(TString f="car"); // Print prim. + sec. vertex full track info for coord. frame f
29beb80d 34 Int_t GetNvertices(); // Return the number of (secondary) vertices
35 AliVertex* GetVertex(Int_t i); // Provide i-th (secondary) vertex
43bfa5be 36 AliVertex* GetIdVertex(Int_t id); // Provide the vertex with user identifier "id"
29beb80d 37 void SetNvmax(Int_t n=2); // Set the initial max. number of (secondary) vertices
f34f4acb 38 void SetVertexCopy(Int_t j); // (De)activate creation of private copies in fVertices
39 Int_t GetVertexCopy(); // Provide VertexCopy flag value
40 Int_t GetNjets(); // Return the number of jets
41 AliJet* GetJet(Int_t i); // Provide i-th jet
43bfa5be 42 AliJet* GetIdJet(Int_t id); // Provide the jet with user identifier "id"
f34f4acb 43 void SetNjmax(Int_t n=2); // Set the initial max. number of jets
44 void SetJetCopy(Int_t j); // (De)activate creation of private copies in fJets
45 Int_t GetJetCopy(); // Provide JetCopy flag value
6516b62d 46 Int_t IsConnectTrack(AliTrack* t); // Indicate if track is created by vertex connection
47 Int_t IsJetTrack(AliTrack* t); // Indicate if track is resulting from jet addition
1c01b4f8 48 virtual void Draw(Option_t* opt) { Draw(1,1,0); } // Override TObject::Draw for default event display
49 virtual void Draw(Int_t secs,Int_t cons=1,Int_t jets=0); // Draw the vertex in an event display
d88f97cc 50
51 protected:
6516b62d 52 void Init(); // Initialisation of pointers etc...
d88f97cc 53 Int_t fNvmax; // The maximum number of (secondary) vertices
54 Int_t fNvtx; // The number of (secondary) vertices
55 TObjArray* fVertices; // Array to hold the pointers to the (secondary) vertices
29beb80d 56 TObjArray* fConnects; // Array to hold the pointers to the auto-generated connecting tracks
f34f4acb 57 Int_t fVertexCopy; // Flag to denote creation of private copies in fVertices
58 Int_t fNjmax; // The maximum number of jets
59 Int_t fNjets; // The number of jets
60 TObjArray* fJets; // Array to hold the pointers to the jets
6516b62d 61 TObjArray* fJetTracks;// Array to hold the pointers to tracks introduced by jet addition
f34f4acb 62 Int_t fJetCopy; // Flag to denote creation of private copies in fJets
a37bb40e 63 TObjArray* fLines; //! Array to (temporarily) store the 3D lines for the event display
d88f97cc 64
65 private:
1c01b4f8 66 void Dumps(AliVertex* v,Int_t n,TString f); // Recursively print all sec. vertices
d88f97cc 67
1c01b4f8 68 ClassDef(AliVertex,6) // Creation and investigation of an AliVertex.
d88f97cc 69};
70#endif