]>
Commit | Line | Data |
---|---|---|
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 | ||
22 | ClassImp(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 | //______________________________________________________________________ | |
32 | AliVertexer::AliVertexer() : | |
33 | fCurrentVertex(0), | |
34 | fFirstEvent(0), | |
35 | fLastEvent(0), | |
36 | fMult() | |
37 | { | |
38 | // | |
39 | // Default Constructor | |
40 | // | |
41 | SetVtxStart(0.,0.,0.); | |
42 | for(Int_t i=0;i<6;i++)fNominalCov[i]=0.; | |
43 | } | |
44 | ||
45 | ||
46 | //______________________________________________________________________ | |
47 | AliVertexer::AliVertexer(const AliVertexer &vtxr) : | |
48 | TObject(vtxr), | |
49 | fCurrentVertex(vtxr.fCurrentVertex), | |
50 | fFirstEvent(vtxr.fFirstEvent), | |
51 | fLastEvent(vtxr.fLastEvent), | |
52 | fMult(vtxr.fMult) | |
53 | { | |
54 | // Copy constructor | |
55 | // Copies are not allowed. The method is protected to avoid misuse. | |
56 | AliFatal("Copy constructor not allowed"); | |
57 | } | |
58 | ||
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"); | |
64 | return *this; | |
65 | } | |
66 | ||
67 | //______________________________________________________________________ | |
68 | AliVertexer::~AliVertexer() { | |
69 | // Default Destructor | |
70 | ||
71 | if(fMult) delete fMult; | |
72 | // The objects pointed by the following pointers are not owned | |
73 | // by this class and are not deleted | |
74 | ||
75 | fCurrentVertex = 0; | |
76 | ||
77 | } | |
78 | ||
79 | ||
80 | //--------------------------------------------------------------------------- | |
81 | void AliVertexer::SetVtxStart(AliESDVertex *vtx) | |
82 | { | |
83 | // | |
84 | // Set initial vertex knowledge | |
85 | // | |
86 | vtx->GetXYZ(fNominalPos); | |
87 | vtx->GetCovMatrix(fNominalCov); | |
88 | return; | |
89 | } |