]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliVertexer.cxx
Adding PHOS to EINCLUDE (Solaris x86)
[u/mrichter/AliRoot.git] / STEER / AliVertexer.cxx
index d8217f9a1679d66c9282940d09336fcd939b53d6..4b41e37d984f82aa32cf1f4a0e819aae6613385c 100644 (file)
@@ -16,6 +16,7 @@
 /* $Id$ */
 
 #include "AliLog.h"
+#include "AliESDVertex.h"
 #include "AliVertexer.h"
 
 ClassImp(AliVertexer)
@@ -31,11 +32,14 @@ ClassImp(AliVertexer)
 AliVertexer::AliVertexer() :
   fCurrentVertex(0),
   fFirstEvent(0),
-  fLastEvent(0)
+  fLastEvent(0),
+  fMult()
 {
   //
   // Default Constructor
   //
+  SetVtxStart(0.,0.,0.);
+  for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
 }
 
 
@@ -44,7 +48,8 @@ AliVertexer::AliVertexer(const AliVertexer &vtxr) :
   TObject(vtxr),
   fCurrentVertex(vtxr.fCurrentVertex),
   fFirstEvent(vtxr.fFirstEvent),
-  fLastEvent(vtxr.fLastEvent)
+  fLastEvent(vtxr.fLastEvent),
+  fMult(vtxr.fMult)
 {
   // Copy constructor
   // Copies are not allowed. The method is protected to avoid misuse.
@@ -62,15 +67,23 @@ AliVertexer& AliVertexer::operator=(const AliVertexer& /* vtxr */){
 //______________________________________________________________________
 AliVertexer::~AliVertexer() {
   // Default Destructor
+
+  if(fMult) delete fMult;
   // The objects pointed by the following pointers are not owned
   // by this class and are not deleted
 
     fCurrentVertex  = 0;
+
 }
 
-//______________________________________________________________________
-void AliVertexer::SetDebug(Int_t debug)
-{
-  AliWarning("Don't use this method any more, use AliDebug instead");
-  fDebug = debug;
+
+//---------------------------------------------------------------------------
+void  AliVertexer::SetVtxStart(AliESDVertex *vtx) 
+{ 
+//
+// Set initial vertex knowledge
+//
+  vtx->GetXYZ(fNominalPos);
+  vtx->GetCovMatrix(fNominalCov);
+  return; 
 }