]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliVertexer.cxx
change TH1 status bit for expert, QA and image that were overlapping with other TH1...
[u/mrichter/AliRoot.git] / STEER / AliVertexer.cxx
index 545883dc64e125e327cdab1f2262ccf530021a68..cad4a0e9c052b40908473e091edcc9fcaca39f81 100644 (file)
@@ -16,7 +16,9 @@
 /* $Id$ */
 
 #include "AliLog.h"
-#include <AliVertexer.h>
+#include "AliESDVertex.h"
+#include "AliVertexer.h"
+#include "AliMultiplicity.h"
 
 ClassImp(AliVertexer)
 
@@ -29,48 +31,31 @@ ClassImp(AliVertexer)
 
 //______________________________________________________________________
 AliVertexer::AliVertexer() :
-  fCurrentVertex(0),
-  fFirstEvent(0),
-  fLastEvent(0)
+  fCurrentVertex(NULL),
+  fMult(NULL)
 {
   //
   // Default Constructor
   //
-}
-
-
-//______________________________________________________________________
-AliVertexer::AliVertexer(const AliVertexer &vtxr) : 
-  TObject(vtxr),
-  fCurrentVertex(vtxr.fCurrentVertex),
-  fFirstEvent(vtxr.fFirstEvent),
-  fLastEvent(vtxr.fLastEvent)
-{
-  // Copy constructor
-  // Copies are not allowed. The method is protected to avoid misuse.
-  AliFatal("Copy constructor not allowed");
-}
-
-//______________________________________________________________________
-AliVertexer& AliVertexer::operator=(const AliVertexer& /* vtxr */){
-  // Assignment operator
-  // Assignment is not allowed. The method is protected to avoid misuse.
-  AliFatal("Assignment operator not allowed");
-  return *this;
+  SetVtxStart(0.,0.,0.);
+  for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
 }
 
 //______________________________________________________________________
 AliVertexer::~AliVertexer() {
   // Default Destructor
-  // The objects pointed by the following pointers are not owned
-  // by this class and are not deleted
 
-    fCurrentVertex  = 0;
+  if(fMult) delete fMult;
 }
 
-//______________________________________________________________________
-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; 
 }