]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Using the same arguments in SetTruePos and GetTruePos
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Feb 2005 05:54:20 +0000 (05:54 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Feb 2005 05:54:20 +0000 (05:54 +0000)
STEER/AliESDVertex.h

index 5ea8e4a95e65053d583849a65d97380ed7375ebb..675a86ec6bb1c5bc7cc58c01939c1563bee6c419 100644 (file)
@@ -70,8 +70,8 @@ class AliESDVertex : public TNamed {
   void     Print(Option_t* option = "") const;
   void     PrintStatus() const {Print();}
   void SetTruePos(Double_t *tp){for(Int_t i=0;i<3;i++)fTruePos[i]=tp[i];}
-  void GetTruePos(Double_t &x,Double_t &y,Double_t &z) const 
-       {x=fTruePos[0]; y=fTruePos[1]; z=fTruePos[2];}
+  void GetTruePos(Double_t *tp) const 
+       {for(Int_t i=0;i<3;i++)tp[i]=fTruePos[i];}
 
   void Reset() { SetToZero(); SetName("Vertex"); }