]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAlignObj.h
Alignment framework (C.Cheshkov). More information is available in http://agenda...
[u/mrichter/AliRoot.git] / STEER / AliAlignObj.h
index 9a14457a888c9c1ae2053ab9fb5f3864b187329d..f4c3d6b179b5f2cd48ddc5cd9573cf2a2bd241de 100644 (file)
@@ -19,7 +19,8 @@ class AliAlignObj : public TObject {
   AliAlignObj(const AliAlignObj& theAlignObj);
   AliAlignObj& operator= (const AliAlignObj& theAlignObj);
   virtual ~AliAlignObj();
-  enum ELayerID{kSPD1=1, kSPD2=2,
+  enum ELayerID{kFirstLayer=1,
+               kSPD1=1, kSPD2=2,
                kSDD1=3, kSDD2=4,
                kSSD1=5, kSSD2=6,
                kTPC1=7, kTPC2=8,
@@ -27,7 +28,8 @@ class AliAlignObj : public TObject {
                kTOF=15,
                kPHOS1=16, kPHOS2=17,
                kRICH=18,
-               kMUON=19};
+               kMUON=19,
+               kLastLayer=20};
 
   //Setters
   virtual void SetTranslation(Double_t x, Double_t y, Double_t z) = 0;
@@ -38,7 +40,7 @@ class AliAlignObj : public TObject {
                Double_t theta, Double_t phi) = 0;
   virtual void SetMatrix(const TGeoMatrix& m) = 0;
   void  SetVolPath(const TString& volpath) {fVolPath=volpath;}
-  void  SetVolUID(const UShort_t voluid) {fVolUID=voluid;}
+  void  SetVolUID(UShort_t voluid) {fVolUID=voluid;}
   void  SetVolUID(ELayerID layerId, Int_t modId);
 
   //Getters
@@ -52,6 +54,9 @@ class AliAlignObj : public TObject {
 
   void  Print(Option_t *) const;
 
+  static Int_t       LayerSize(Int_t layer) { return fgLayerSize[layer]; }
+  static const char* LayerName(Int_t layer) { return fgLayerName[layer]; }
+
   static UShort_t LayerToVolUID(ELayerID layerId, Int_t modId);
   static ELayerID VolUIDToLayer(UShort_t voluid, Int_t &modId);
   static ELayerID VolUIDToLayer(UShort_t voluid);
@@ -61,8 +66,11 @@ class AliAlignObj : public TObject {
   Bool_t MatrixToAngles(const Double_t *rot, Double_t *angles) const;
 
   //Volume identifiers
-  TString fVolPath; // Volume path inside TGeo geometry
-  UShort_t fVolUID; // Unique volume ID
+  TString  fVolPath; // Volume path inside TGeo geometry
+  UShort_t fVolUID;  // Unique volume ID
+
+  static Int_t       fgLayerSize[kLastLayer - kFirstLayer];
+  static const char* fgLayerName[kLastLayer - kFirstLayer];
   
   ClassDef(AliAlignObj, 1)
 };