]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODVertex.h
Possibility to fix some of the parameters. New method to get the number of free param...
[u/mrichter/AliRoot.git] / STEER / AliAODVertex.h
index 74ed84406b347e8c3e46c7ad11efe71d9f96e4a6..e53cc9fb338ca5f1fa12fedaff21c30c4070d089 100644 (file)
@@ -27,12 +27,14 @@ class AliAODVertex : public TObject {
               const Double_t *covMatrix=0x0,
               Double_t chi2perNDF = -999.,
               TObject *parent = 0x0,
+              Short_t id=-1,
+              Char_t vtype=kUndef);
+  AliAODVertex(const Float_t *position, 
+              const Float_t *covMatrix=0x0,
+              Double_t chi2perNDF = -999.,
+              TObject *parent = 0x0,
+              Short_t id=-1,
               Char_t vtype=kUndef);
-    AliAODVertex(const Float_t *position, 
-                const Float_t *covMatrix=0x0,
-                Double_t chi2perNDF = -999.,
-                TObject *parent = 0x0,
-                Char_t vtype=kUndef);
     AliAODVertex(const Double_t *position, 
                 Double_t chi2perNDF,
                 Char_t vtype=kUndef);
@@ -77,6 +79,9 @@ class AliAODVertex : public TObject {
   Double_t GetChi2() const { return fChi2perNDF*(Double_t)GetNDF(); }
   Int_t    GetNDF() const { return 2*GetNContributors()-3; }
 
+  Short_t  GetID() const { return fID; }
+  void     SetID(Short_t id) { fID=id; }
+
   Char_t   GetType() const { return fType; }
   void     SetType(AODVtx_t vtype) { fType=vtype; }
 
@@ -85,6 +90,7 @@ class AliAODVertex : public TObject {
 
   void     AddDaughter(TObject *daughter) { fDaughters.Add(daughter);}
   void     RemoveDaughter(TObject *daughter) { fDaughters.Remove(daughter); }
+  void     RemoveDaughters() { fDaughters.Clear(); }
   TObject* GetDaughter(Int_t i) { return fDaughters.At(i); }
   Bool_t   HasDaughter(TObject *daughter) const;
   Int_t    GetNDaughters() const { return fDaughters.GetEntriesFast(); }
@@ -112,7 +118,8 @@ class AliAODVertex : public TObject {
 
   Double32_t      fPosition[3]; // vertex position
   Double32_t      fChi2perNDF;  // chi2/NDF of vertex fit
-  Char_t          fType;        // Vertex type
+  Short_t         fID;          // vertex ID; corresponds to the array index of the appropriate ESD container
+  Char_t          fType;        // vertex type
 
   AliAODRedCov<3> *fCovMatrix;  // vertex covariance matrix; values of and below the diagonal
   TRef            fParent;      // reference to the parent particle