Added methods for finding a given module in the DDL map (F. Prino)
[u/mrichter/AliRoot.git] / STEER / AliVertexer.cxx
CommitLineData
0742d588 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
594d8990 18#include "AliLog.h"
4b3f8cff 19#include "AliESDVertex.h"
d65adc48 20#include "AliVertexer.h"
2257f27e 21
22ClassImp(AliVertexer)
23
24//////////////////////////////////////////////////////////////////////
25// Base class for primary vertex reconstruction //
26// AliESDVertexer is a class for full 3D primary vertex finding //
27// derived classes: AliITSVertexer //
28// //
29//////////////////////////////////////////////////////////////////////
30
31//______________________________________________________________________
90e48c0c 32AliVertexer::AliVertexer() :
33 fCurrentVertex(0),
34 fFirstEvent(0),
32e449be 35 fLastEvent(0),
32e449be 36 fMult()
90e48c0c 37{
38 //
2257f27e 39 // Default Constructor
90e48c0c 40 //
4b3f8cff 41 SetVtxStart(0.,0.,0.);
42 for(Int_t i=0;i<6;i++)fNominalCov[i]=0.;
2257f27e 43}
44
45
46//______________________________________________________________________
90e48c0c 47AliVertexer::AliVertexer(const AliVertexer &vtxr) :
48 TObject(vtxr),
49 fCurrentVertex(vtxr.fCurrentVertex),
50 fFirstEvent(vtxr.fFirstEvent),
fe12e09c 51 fLastEvent(vtxr.fLastEvent),
fe12e09c 52 fMult(vtxr.fMult)
90e48c0c 53{
2257f27e 54 // Copy constructor
55 // Copies are not allowed. The method is protected to avoid misuse.
594d8990 56 AliFatal("Copy constructor not allowed");
2257f27e 57}
58
59//______________________________________________________________________
60AliVertexer& AliVertexer::operator=(const AliVertexer& /* vtxr */){
61 // Assignment operator
62 // Assignment is not allowed. The method is protected to avoid misuse.
594d8990 63 AliFatal("Assignment operator not allowed");
2257f27e 64 return *this;
65}
66
67//______________________________________________________________________
68AliVertexer::~AliVertexer() {
69 // Default Destructor
32e449be 70
71 if(fMult) delete fMult;
2257f27e 72 // The objects pointed by the following pointers are not owned
73 // by this class and are not deleted
74
75 fCurrentVertex = 0;
32e449be 76
2257f27e 77}
594d8990 78
4b3f8cff 79
80//---------------------------------------------------------------------------
81void AliVertexer::SetVtxStart(AliESDVertex *vtx)
82{
83//
84// Set initial vertex knowledge
85//
86 vtx->GetXYZ(fNominalPos);
87 vtx->GetCovMatrix(fNominalCov);
88 return;
594d8990 89}