-#include <AliESDVertex.h>
-#include <AliVertexer.h>
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
+#include "AliLog.h"
+#include "AliESDVertex.h"
+#include "AliVertexer.h"
+#include "AliMultiplicity.h"
ClassImp(AliVertexer)
//////////////////////////////////////////////////////////////////////
//______________________________________________________________________
-AliVertexer::AliVertexer() {
+AliVertexer::AliVertexer() :
+ fCurrentVertex(NULL),
+ fMult(NULL)
+{
+ //
// Default Constructor
-
- fCurrentVertex = 0;
- SetDebug();
- 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) {
- // Copy constructor
- // Copies are not allowed. The method is protected to avoid misuse.
- Error("AliVertexer","Copy constructor not allowed\n");
-}
+AliVertexer::~AliVertexer() {
+ // Default Destructor
-//______________________________________________________________________
-AliVertexer& AliVertexer::operator=(const AliVertexer& /* vtxr */){
- // Assignment operator
- // Assignment is not allowed. The method is protected to avoid misuse.
- Error("= operator","Assignment operator not allowed\n");
- return *this;
+ if(fMult) delete fMult;
}
-//______________________________________________________________________
-AliVertexer::~AliVertexer() {
- // Default Destructor
- // The objects pointed by the following pointers are not owned
- // by this class and are not deleted
- fCurrentVertex = 0;
+//---------------------------------------------------------------------------
+void AliVertexer::SetVtxStart(AliESDVertex *vtx)
+{
+//
+// Set initial vertex knowledge
+//
+ vtx->GetXYZ(fNominalPos);
+ vtx->GetCovMatrix(fNominalCov);
+ return;
}