]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCVertex.cxx
Major update required to handle old and new AliHLTEventDDL structures within HLT...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCVertex.cxx
1 // @(#) $Id$
2 // Original: AliHLTVertex.cxx,v 1.5 2004/07/02 11:41:18 loizides Exp $
3
4 // Author: Uli Frankenfeld <mailto:franken@fi.uib.no>
5 //*-- Copyright &copy ALICE HLT Group
6
7 #include "AliHLTTPCLogging.h"
8 #include "AliHLTTPCVertexData.h"
9 #include "AliHLTTPCVertex.h"
10
11 /** \class AliHLTTPCVertex
12 <pre>
13 //_____________________________________________________________
14 // AliHLTTPCVertex
15 //
16 // Stores the information of the vertex position
17 //
18 </pre>
19 */
20
21 ClassImp(AliHLTTPCVertex)
22
23 AliHLTTPCVertex::AliHLTTPCVertex()
24   :
25   fX(0.0),
26   fY(0.0),  
27   fZ(0.0),  
28   fPhi(0.0),
29   fR(0.0),  
30   fXErr(1.0),
31   fYErr(1.0),
32   fZErr(1.0),
33   fMWxy(1.0)
34 {
35   //
36   // default constructor for the AliHLTTPCVertex class. 
37   //
38
39   SetZero();  
40 }
41
42 AliHLTTPCVertex::AliHLTTPCVertex(const AliHLTTPCVertex&)
43   :
44   fX(0.0),
45   fY(0.0),  
46   fZ(0.0),  
47   fPhi(0.0),
48   fR(0.0),  
49   fXErr(1.0),
50   fYErr(1.0),
51   fZErr(1.0),
52   fMWxy(1.0)
53 {
54   //
55   // copy constructor not for use
56   //
57 }
58
59 AliHLTTPCVertex& AliHLTTPCVertex::operator=(const AliHLTTPCVertex&)
60 {
61   //
62   // assignment operator not for use
63   //
64   fX=0.0;
65   fY=0.0;  
66   fZ=0.0;  
67   fPhi=0.0;
68   fR=0.0;  
69   fXErr=1.0;
70   fYErr=1.0;
71   fZErr=1.0;
72   fMWxy=1.0;
73   return *this;
74 }
75
76 AliHLTTPCVertex::~AliHLTTPCVertex()
77 {
78   //
79   // destructor
80   //
81 }
82
83 void AliHLTTPCVertex::SetZero()
84 {
85   // set vertex to zero
86   SetX(0);
87   SetY(0);
88   SetZ(0);
89   SetXErr(1);
90   SetYErr(1);
91   SetZErr(1);
92   fR=0;
93   fPhi=0;
94   fMWxy = 1.;
95 }
96
97 void AliHLTTPCVertex::Read(const AliHLTTPCVertexData *vertex)
98 {
99   // read vertex
100   SetX(vertex->fX);
101   SetY(vertex->fY);
102   SetZ(vertex->fZ);
103   SetXErr(vertex->fXErr);
104   SetYErr(vertex->fYErr);
105   SetZErr(vertex->fZErr);
106   fR=0;
107   fPhi=0;
108   fMWxy = 1.;
109 }