]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCVertex.cxx
Imported files from the existing L3 code directories (../src, ../comp,
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCVertex.cxx
CommitLineData
a6c02c85 1// @(#) $Id$
2
3// Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
4//*-- Copyright &copy ALICE HLT Group
5
6#include "AliHLTTPCStandardIncludes.h"
7#include "AliHLTTPCRootTypes.h"
8#include "AliHLTTPCLogging.h"
9#include "AliHLTTPCVertexData.h"
10#include "AliHLTTPCVertex.h"
11
12/** \class AliHLTTPCVertex
13<pre>
14//_____________________________________________________________
15// AliHLTTPCVertex
16//
17// Stores the information of the vertex position
18//
19</pre>
20*/
21
22ClassImp(AliHLTTPCVertex)
23
24AliHLTTPCVertex::AliHLTTPCVertex(){
25 //
26 // default constructor for the AliHLTTPCVertex class.
27 //
28
29 SetZero();
30}
31
32AliHLTTPCVertex::~AliHLTTPCVertex(){
33 //
34 // destructor
35 //
36}
37
38void AliHLTTPCVertex::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
52void AliHLTTPCVertex::Read(const AliHLTTPCVertexData *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