]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliKFVertex.h
Label for the ITS tracklets (Jan Fiete)
[u/mrichter/AliRoot.git] / STEER / AliKFVertex.h
index 060151bc97a67df7e4744681d6ee495ae1ffb0d3..8fed979b6df3b0065386d2d7a853280dc717c1c8 100644 (file)
@@ -47,6 +47,13 @@ class AliKFVertex :public AliKFParticle
 
   void CopyToESDVertex( AliESDVertex &Vtx ) const ;
 
+  //*
+  //*  ACCESSORS
+  //*
+
+  //* Number of tracks composing the vertex
+
+  Int_t GetNContributors() const { return (fNDF+3)/2; }
 
   //* 
   //* CONSTRUCTION OF THE VERTEX BY ITS DAUGHTERS 
@@ -54,9 +61,7 @@ class AliKFVertex :public AliKFParticle
   //*
 
 
-  //* Simple way to construct vertices ex. D0 = Pion + Kaon; 
-
-  AliKFParticle operator +( const AliKFParticle &Daughter ) const;
+  //* Simple way to construct vertices ex. D0 = Pion + Kaon;   
 
   void operator +=( const AliKFParticle &Daughter );  
 
@@ -68,8 +73,8 @@ class AliKFVertex :public AliKFParticle
 
   //* Construct vertex with selection of tracks (primary vertex)
 
-  void ConstructPrimaryVertex( const AliKFParticle *vDaughters[], int NDaughters, 
-                              Double_t ChiCut=3.5  );
+  void ConstructPrimaryVertex( const AliKFParticle *vDaughters[], int NDaughters,
+                              Bool_t vtxFlag[], Double_t ChiCut=3.5  );
 
   ClassDef( AliKFVertex, 1 );
 
@@ -89,6 +94,11 @@ inline void AliKFVertex::CopyToESDVertex( AliESDVertex &v ) const
   v = AliESDVertex( vTmp.fP, vTmp.fC, vTmp.fChi2, (vTmp.fNDF +3)/2 );
 }
 
+inline void AliKFVertex::operator +=( const AliKFParticle &Daughter )
+{
+  AliKFParticle::operator +=( Daughter );
+}
+  
 
 inline void AliKFVertex::operator -=( const AliKFParticle &Daughter )
 {