]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAlignObj.h
New getters which can be used to extract the local reference system alignment object...
[u/mrichter/AliRoot.git] / STEER / AliAlignObj.h
index 7c507d47f8e65b2794c3eedfb53a71b629a97b0b..7a6bd38a419958483bdd258ef82b5c09a04c78bd 100644 (file)
@@ -2,11 +2,14 @@
 #define ALIALIGNOBJ_H
 
 //************************************************************************
-// AliAlignObj: alignment base class for the storage of alignment        *
-//   information for a single volume, that is a displacement (a shift    *
-//   a rotation) plus the identity of the volume itself in form of a     *
-//   symbolic volume name (eventually a TGeo path) and as a unique       *
-//   integer identifier                                                  *
+// AliAlignObj: alignment base class for the storage of the alignment    *
+//   constants for a single volume:                                      *
+//   -  a displacement (a shift and a rotation) either as                *
+//      - the 6 doubles which identify it or as                          *
+//      - the matrix which identifies it                                 *
+//   -  the identity of the volume itself in form of a symbolic volume   *
+//      name for alignable volumes, in form of a TGeo path otherwise,    *
+//      and as a unique integer identifier                               *
 //************************************************************************
 #include "TObject.h"
 #include "TString.h"
@@ -28,7 +31,7 @@ class AliAlignObj : public TObject {
                kTRD1=9, kTRD2=10, kTRD3=11, kTRD4=12, kTRD5=13, kTRD6=14,
                kTOF=15,
                kPHOS1=16, kPHOS2=17,
-               kRICH=18,
+               kHMPID=18,
                kMUON=19,
                kLastLayer=20};
   AliAlignObj();
@@ -42,8 +45,12 @@ class AliAlignObj : public TObject {
   //Setters
   virtual void SetTranslation(Double_t x, Double_t y, Double_t z) = 0;
   virtual void SetTranslation(const TGeoMatrix& m) = 0;
+  virtual Bool_t SetLocalTranslation(Double_t x, Double_t y, Double_t z);
+  virtual Bool_t SetLocalTranslation(const TGeoMatrix& m);
   virtual void SetRotation(Double_t psi, Double_t theta, Double_t phi) = 0;
   virtual Bool_t SetRotation(const TGeoMatrix& m) = 0;
+  virtual Bool_t SetLocalRotation(Double_t psi, Double_t theta, Double_t phi);
+  virtual Bool_t SetLocalRotation(const TGeoMatrix& m);
   virtual void SetPars(Double_t x, Double_t y, Double_t z, Double_t psi,
                Double_t theta, Double_t phi);
   virtual Bool_t SetLocalPars(Double_t x, Double_t y, Double_t z,
@@ -59,9 +66,13 @@ class AliAlignObj : public TObject {
   UShort_t     GetVolUID()     const {return fVolUID;}
   void         GetVolUID(ELayerID &layerId, Int_t &modId) const;
   virtual void GetTranslation(Double_t* tr)  const=0;
+  virtual Bool_t GetLocalTranslation(Double_t* tr) const;
   virtual Bool_t GetAngles(Double_t* angles) const=0;
-  virtual Bool_t GetPars(Double_t transl[], Double_t rot[]) const;
+  virtual Bool_t GetLocalAngles(Double_t* angles) const;
+  virtual Bool_t GetPars(Double_t transl[], Double_t angles[]) const;
+  virtual Bool_t GetLocalPars(Double_t transl[], Double_t angles[]) const;
   virtual void GetMatrix(TGeoHMatrix& m) const=0;
+  virtual Bool_t GetLocalMatrix(TGeoHMatrix& m) const;
 
   Bool_t   IsSortable() const {return kTRUE;}
   Int_t         GetLevel() const;
@@ -101,7 +112,7 @@ class AliAlignObj : public TObject {
 
   //Volume identifiers
   TString  fVolPath; // Symbolic volume name; in case could coincide with
-                     // the volume path inside TGeo geometry
+      // the volume path inside TGeo geometry (for non-alignable volumes)
   UShort_t fVolUID;  // Unique volume ID
 
   static Int_t       fgLayerSize[kLastLayer - kFirstLayer]; // Size of layers