]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCVertex.cxx
- configure adapted to the new directory structure of the HOMER module in PubSub
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCVertex.cxx
1 // @(#) $Id$
2 // Original: AliL3Vertex.cxx,v 1.5 2004/07/02 11:41:18 loizides Exp $
3
4 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
5 //*-- Copyright &copy ALICE HLT Group
6
7 #include "AliHLTTPCLogging.h"
8 #include "AliHLTTPCVertexData.h"
9 #include "AliHLTTPCVertex.h"
10
11 /** \class AliHLTTPCVertex
12 <pre>
13 //_____________________________________________________________
14 // AliHLTTPCVertex
15 //
16 // Stores the information of the vertex position
17 //
18 </pre>
19 */
20
21 ClassImp(AliHLTTPCVertex)
22
23 AliHLTTPCVertex::AliHLTTPCVertex(){
24   //
25   // default constructor for the AliHLTTPCVertex class. 
26   //
27
28   SetZero();  
29 }
30
31 AliHLTTPCVertex::~AliHLTTPCVertex(){
32   //
33   // destructor
34   //
35 }
36
37 void AliHLTTPCVertex::SetZero()
38 {
39   // set vertex to zero
40   SetX(0);
41   SetY(0);
42   SetZ(0);
43   SetXErr(1);
44   SetYErr(1);
45   SetZErr(1);
46   fR=0;
47   fPhi=0;
48   fMWxy = 1.;
49 }
50
51 void AliHLTTPCVertex::Read(const AliHLTTPCVertexData *vertex)
52 {
53   // read vertex
54   SetX(vertex->fX);
55   SetY(vertex->fY);
56   SetZ(vertex->fZ);
57   SetXErr(vertex->fXErr);
58   SetYErr(vertex->fYErr);
59   SetZErr(vertex->fZErr);
60   fR=0;
61   fPhi=0;
62   fMWxy = 1.;
63 }
64