]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/Ali3Vector.h
Fixed a bug in the Digit reader, moved clusterfinder to initialize from OCDB, Added...
[u/mrichter/AliRoot.git] / RALICE / Ali3Vector.h
index c00fc5af2900e5df69923c80ae491ec8b28d2be5..8fcfabd230af4dea1a6941d06d912f4e8123628c 100644 (file)
@@ -19,15 +19,15 @@ class Ali3Vector
   Ali3Vector(const Ali3Vector& v);               // Copy constructor
   virtual void Load(Ali3Vector& q);              // Load all attributes of input Ali3Vector
   virtual void SetZero();                        // (Re)set all attributes to zero.
-  void SetVector(Double_t* v,TString f);         // Store vector v in frame f
-  void GetVector(Double_t* v,TString f) const;   // Provide vector v in frame f
-  void SetVector(Float_t*  v,TString f);         // Store vector v in frame f
-  void GetVector(Float_t*  v,TString f) const;   // Provide vector v in frame f
-  void SetErrors(Double_t* e,TString f);         // Store errors of vector in frame f
-  void GetErrors(Double_t* e,TString f) const;   // Provide errors of vector in frame f
-  void SetErrors(Float_t*  e,TString f);         // Store errors of vector in frame f
-  void GetErrors(Float_t*  e,TString f) const;   // Provide errors of vector in frame f
-  virtual void Data(TString f="car") const;      // Print vector components in frame f
+  void SetVector(Double_t* v,TString f,TString u="rad");       // Store vector v in frame f with ang units u
+  void GetVector(Double_t* v,TString f,TString u="rad") const; // Provide vector v in frame f in ang units u
+  void SetVector(Float_t*  v,TString f,TString u="rad");       // Store vector v in frame f with ang units u
+  void GetVector(Float_t*  v,TString f,TString u="rad") const; // Provide vector v in frame f in ang units u
+  void SetErrors(Double_t* e,TString f,TString u="rad");       // Store errors of vector in frame f with ang units u
+  void GetErrors(Double_t* e,TString f,TString u="rad") const; // Provide errors of vector in frame f in ang units u
+  void SetErrors(Float_t*  e,TString f,TString u="rad");       // Store errors of vector in frame f with ang units u
+  void GetErrors(Float_t*  e,TString f,TString u="rad") const; // Provide errors of vector in frame f in ang units u
+  virtual void Data(TString f="car",TString u="rad") const;    // Print vector components in frame f in ang units u
   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
@@ -45,12 +45,14 @@ class Ali3Vector
   Ali3Vector GetVecLong() const;                 // Provide longitudinal vector w.r.t. z-axis
   Ali3Vector GetPrimed(TRotMatrix* m) const;     // Provide vector components in a rotated frame
   Ali3Vector GetUnprimed(TRotMatrix* m) const;   // Provide original vector components from a rotated one
+  Double_t GetX(Int_t i,TString f,TString u="rad"); // Provide i-th vector component in frame f in units u
+  virtual Double_t GetOpeningAngle(Ali3Vector& q,TString u="rad"); // Provide opening angle with q in units u
 
  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)
+  Double32_t fV,fTheta,fPhi;    // Vector in spherical coordinates
+  Double32_t fDx,fDy,fDz;       // Errors on Cartesian coordinates
+  Double32_t fDresult;          //! Error on scalar result (e.g. norm or dotproduct)
 
- ClassDef(Ali3Vector,8) // Handling of 3-vectors in various reference frames.
+ ClassDef(Ali3Vector,11) // Handling of 3-vectors in various reference frames.
 };
 #endif