#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"
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();
//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,
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;
//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