]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/Ali3Vector.h
Bug in geometry corrected
[u/mrichter/AliRoot.git] / RALICE / Ali3Vector.h
index 6c8c593bd8ecdceae12ee5de791f653f683765c1..c5912eb26eefe0b78cd7a769cce8ee8956d73e12 100644 (file)
@@ -3,9 +3,9 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
+// $Id$
 
-#include <iostream.h>
+#include "Riostream.h"
 #include <math.h>
  
 #include "TObject.h"
@@ -24,7 +24,7 @@ class Ali3Vector
   virtual void GetErrors(Double_t* e,TString f); // Provide errors of vector in frame f
   virtual void SetErrors(Float_t*  e,TString f); // Store errors of vector in frame f
   virtual void GetErrors(Float_t*  e,TString f); // Provide errors of vector in frame f
-  virtual void Info(TString f="car");            // Print vector components in frame f
+  virtual void Data(TString f="car");            // Print vector components in frame f
   Double_t GetNorm();                            // Provide norm of the vector
   Double_t Dot(Ali3Vector& q);                   // Provide dot product with q
   Double_t GetPseudoRapidity();                  // Provide the pseudorapidity w.r.t z-axis
@@ -38,12 +38,14 @@ class Ali3Vector
   Ali3Vector& operator-=(Ali3Vector& q);         // Subtract vector q
   Ali3Vector& operator*=(Double_t s);            // Multiply with scalar s
   Ali3Vector& operator/=(Double_t s);            // Divide by scalar s
+  Ali3Vector GetVecTrans();                      // Provide transverse vector w.r.t. z-axis
+  Ali3Vector GetVecLong();                       // Provide longitudinal vector w.r.t. z-axis
 
  protected:
   Double_t fV,fTheta,fPhi;    // Vector in spherical coordinates
   Double_t fDx,fDy,fDz;       // Errors on Cartesian coordinates
   Double_t fDresult;          // Error on scalar result (e.g. norm or dotproduct)
 
- ClassDef(Ali3Vector,1) // Handling of 3-vectors in various reference frames.
+ ClassDef(Ali3Vector,2) // Handling of 3-vectors in various reference frames.
 };
 #endif