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