/* $Id$ */
#include "AliLog.h"
-#include <AliVertexer.h>
+#include "AliESDVertex.h"
+#include "AliVertexer.h"
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");
//______________________________________________________________________
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;
}