]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliVertexer.cxx
Changes needed by the new TRD tracker (Alex)
[u/mrichter/AliRoot.git] / STEER / AliVertexer.cxx
index 0888440e61f8fa89ed91295f8f1f1fe7228bcc44..4b41e37d984f82aa32cf1f4a0e819aae6613385c 100644 (file)
@@ -16,7 +16,8 @@
 /* $Id$ */
 
 #include "AliLog.h"
-#include <AliVertexer.h>
+#include "AliESDVertex.h"
+#include "AliVertexer.h"
 
 ClassImp(AliVertexer)
 
@@ -28,17 +29,28 @@ ClassImp(AliVertexer)
 //////////////////////////////////////////////////////////////////////
 
 //______________________________________________________________________
-AliVertexer::AliVertexer() {
+AliVertexer::AliVertexer() :
+  fCurrentVertex(0),
+  fFirstEvent(0),
+  fLastEvent(0),
+  fMult()
+{
+  //
   // Default Constructor
-
-    fCurrentVertex  = 0;
-    SetFirstEvent(0);
-    SetLastEvent(0);
+  //
+  SetVtxStart(0.,0.,0.);
+  for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
 }
 
 
 //______________________________________________________________________
-AliVertexer::AliVertexer(const AliVertexer &vtxr) : TObject(vtxr) {
+AliVertexer::AliVertexer(const AliVertexer &vtxr) : 
+  TObject(vtxr),
+  fCurrentVertex(vtxr.fCurrentVertex),
+  fFirstEvent(vtxr.fFirstEvent),
+  fLastEvent(vtxr.fLastEvent),
+  fMult(vtxr.fMult)
+{
   // Copy constructor
   // Copies are not allowed. The method is protected to avoid misuse.
   AliFatal("Copy constructor not allowed");
@@ -55,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; 
 }