]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliVertexer.cxx
Optimisation
[u/mrichter/AliRoot.git] / STEER / AliVertexer.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18 #include "AliLog.h"
19 #include "AliESDVertex.h"
20 #include "AliVertexer.h"
21 #include "AliMultiplicity.h"
22
23 ClassImp(AliVertexer)
24
25 //////////////////////////////////////////////////////////////////////
26 // Base class for primary vertex reconstruction                     //
27 // AliESDVertexer is a class for full 3D primary vertex finding     //
28 // derived classes: AliITSVertexer                                  //
29 //                                                                  //
30 //////////////////////////////////////////////////////////////////////
31
32 //______________________________________________________________________
33 AliVertexer::AliVertexer() :
34   fCurrentVertex(NULL),
35   fMult(NULL)
36 {
37   //
38   // Default Constructor
39   //
40   SetVtxStart(0.,0.,0.);
41   for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
42 }
43
44 //______________________________________________________________________
45 AliVertexer::~AliVertexer() {
46   // Default Destructor
47
48   if(fMult) delete fMult;
49 }
50
51
52 //---------------------------------------------------------------------------
53 void  AliVertexer::SetVtxStart(AliESDVertex *vtx) 
54
55 //
56 // Set initial vertex knowledge
57 //
58   vtx->GetXYZ(fNominalPos);
59   vtx->GetCovMatrix(fNominalCov);
60   return; 
61 }