1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 #include "AliESDVertex.h"
20 #include "AliVertexer.h"
24 //////////////////////////////////////////////////////////////////////
25 // Base class for primary vertex reconstruction //
26 // AliESDVertexer is a class for full 3D primary vertex finding //
27 // derived classes: AliITSVertexer //
29 //////////////////////////////////////////////////////////////////////
31 //______________________________________________________________________
32 AliVertexer::AliVertexer() :
39 // Default Constructor
41 SetVtxStart(0.,0.,0.);
42 for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
46 //______________________________________________________________________
47 AliVertexer::AliVertexer(const AliVertexer &vtxr) :
49 fCurrentVertex(vtxr.fCurrentVertex),
50 fFirstEvent(vtxr.fFirstEvent),
51 fLastEvent(vtxr.fLastEvent),
55 // Copies are not allowed. The method is protected to avoid misuse.
56 AliFatal("Copy constructor not allowed");
59 //______________________________________________________________________
60 AliVertexer& AliVertexer::operator=(const AliVertexer& /* vtxr */){
61 // Assignment operator
62 // Assignment is not allowed. The method is protected to avoid misuse.
63 AliFatal("Assignment operator not allowed");
67 //______________________________________________________________________
68 AliVertexer::~AliVertexer() {
71 if(fMult) delete fMult;
72 // The objects pointed by the following pointers are not owned
73 // by this class and are not deleted
80 //---------------------------------------------------------------------------
81 void AliVertexer::SetVtxStart(AliESDVertex *vtx)
84 // Set initial vertex knowledge
86 vtx->GetXYZ(fNominalPos);
87 vtx->GetCovMatrix(fNominalCov);