3e87ef69 |
1 | // @(#) $Id$ |
2 | |
b661165c |
3 | // Author: Uli Frankenfeld <mailto:franken@fi.uib.no> |
3e87ef69 |
4 | //*-- Copyright © ALICE HLT Group |
108615fc |
5 | |
118c26c3 |
6 | #include "AliL3StandardIncludes.h" |
108615fc |
7 | #include "AliL3RootTypes.h" |
108615fc |
8 | #include "AliL3Logging.h" |
6e6ad594 |
9 | #include "AliL3VertexData.h" |
108615fc |
10 | #include "AliL3Vertex.h" |
11 | |
3e87ef69 |
12 | /** \class AliL3Vertex |
13 | <pre> |
108615fc |
14 | //_____________________________________________________________ |
108615fc |
15 | // AliL3Vertex |
16 | // |
b661165c |
17 | // Stores the information of the vertex position |
108615fc |
18 | // |
3e87ef69 |
19 | </pre> |
20 | */ |
108615fc |
21 | |
22 | ClassImp(AliL3Vertex) |
6e6ad594 |
23 | |
108615fc |
24 | AliL3Vertex::AliL3Vertex(){ |
25 | // |
26 | // default constructor for the AliL3Vertex class. |
27 | // |
28 | |
108615fc |
29 | SetZero(); |
30 | } |
31 | |
32 | AliL3Vertex::~AliL3Vertex(){ |
33 | // |
34 | // destructor |
35 | // |
36 | } |
37 | |
6e6ad594 |
38 | void AliL3Vertex::SetZero() |
39 | { |
40 | // set vertex to zero |
108615fc |
41 | SetX(0); |
42 | SetY(0); |
43 | SetZ(0); |
44 | SetXErr(1); |
45 | SetYErr(1); |
46 | SetZErr(1); |
47 | fR=0; |
48 | fPhi=0; |
108615fc |
49 | fMWxy = 1.; |
50 | } |
51 | |
6e6ad594 |
52 | void AliL3Vertex::Read(const AliL3VertexData *vertex) |
53 | { |
54 | // read vertex |
108615fc |
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; |
108615fc |
63 | fMWxy = 1.; |
64 | } |
65 | |