]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
b661165c | 3 | // Author: Uli Frankenfeld <mailto:franken@fi.uib.no> |
3e87ef69 | 4 | //*-- Copyright © ALICE HLT Group |
108615fc | 5 | |
4aa41877 | 6 | #include "AliHLTStandardIncludes.h" |
7 | #include "AliHLTRootTypes.h" | |
8 | #include "AliHLTLogging.h" | |
9 | #include "AliHLTVertexData.h" | |
10 | #include "AliHLTVertex.h" | |
108615fc | 11 | |
4aa41877 | 12 | /** \class AliHLTVertex |
3e87ef69 | 13 | <pre> |
108615fc | 14 | //_____________________________________________________________ |
4aa41877 | 15 | // AliHLTVertex |
108615fc | 16 | // |
b661165c | 17 | // Stores the information of the vertex position |
108615fc | 18 | // |
3e87ef69 | 19 | </pre> |
20 | */ | |
108615fc | 21 | |
4aa41877 | 22 | ClassImp(AliHLTVertex) |
6e6ad594 | 23 | |
4aa41877 | 24 | AliHLTVertex::AliHLTVertex(){ |
108615fc | 25 | // |
4aa41877 | 26 | // default constructor for the AliHLTVertex class. |
108615fc | 27 | // |
28 | ||
108615fc | 29 | SetZero(); |
30 | } | |
31 | ||
4aa41877 | 32 | AliHLTVertex::~AliHLTVertex(){ |
108615fc | 33 | // |
34 | // destructor | |
35 | // | |
36 | } | |
37 | ||
4aa41877 | 38 | void AliHLTVertex::SetZero() |
6e6ad594 | 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 | ||
4aa41877 | 52 | void AliHLTVertex::Read(const AliHLTVertexData *vertex) |
6e6ad594 | 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 |