]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/AliL3Vertex.cxx
Additional protection
[u/mrichter/AliRoot.git] / HLT / src / AliL3Vertex.cxx
1 // @(#) $Id$
2
3 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
4 //*-- Copyright &copy ALICE HLT Group
5
6 #include "AliL3StandardIncludes.h"
7 #include "AliL3RootTypes.h"
8 #include "AliL3Logging.h"
9 #include "AliL3VertexData.h"
10 #include "AliL3Vertex.h"
11
12 /** \class AliL3Vertex
13 <pre>
14 //_____________________________________________________________
15 // AliL3Vertex
16 //
17 // Stores the information of the vertex position
18 //
19 </pre>
20 */
21
22 ClassImp(AliL3Vertex)
23
24 AliL3Vertex::AliL3Vertex(){
25   //
26   // default constructor for the AliL3Vertex class. 
27   //
28
29   SetZero();  
30 }
31
32 AliL3Vertex::~AliL3Vertex(){
33   //
34   // destructor
35   //
36 }
37
38 void AliL3Vertex::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 AliL3Vertex::Read(const AliL3VertexData *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