]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryEnvelopeStore.h
Corrected INCLUDE_PATH (removing non-existing paths)
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryEnvelopeStore.h
index 15ae23f4af4df0bc5d2eb54a8c1ed507eefbe4a3..1d96a24675a49334da57aebdd83a8d4e787d5413 100644 (file)
 #define ALI_MUON_GEOMETRY_ENVELOPE_STORE_H
 
 #include <TObject.h>
-#include <TString.h>
+#include <TGeoMatrix.h>
 
 class TGeoTranslation;
 class TGeoRotation;
 class TGeoCombiTrans;
 class TObjArray;
 class TArrayI;
+class TString;
 
 class AliMUONChamber;
 class AliMUONGeometryEnvelope;
@@ -113,6 +114,7 @@ class AliMUONGeometryEnvelopeStore : public TObject
                      Int_t npar, Double_t* param);
                                      
     void  SetDebug(Bool_t debug);
+    void  SetReferenceFrame(const TGeoCombiTrans& referenceFrame);
 
     // Alignement
     virtual Bool_t  GetAlign() const;
@@ -124,6 +126,7 @@ class AliMUONGeometryEnvelopeStore : public TObject
 
   private:
     // methods
+    TGeoHMatrix ConvertDETransform(const TGeoHMatrix& transform) const;
     AliMUONGeometryEnvelope* FindEnvelope(const TString& name) const;
     Bool_t AlignEnvelope(AliMUONGeometryEnvelope* envelope) const;
  
@@ -132,6 +135,9 @@ class AliMUONGeometryEnvelopeStore : public TObject
                            // wrt to the chamber position in mother volume                                 
     AliMUONGeometryStore*  fDetElements; // detection elements
                             // used for alignement of enevelopes
+    TGeoCombiTrans fReferenceFrame; // the transformation from the builder 
+                                    // reference frame to that of the transform 
+                                   // data files
     Bool_t      fDebug;     // Switch for debugging  
     Bool_t      fAlign;     // option to read transformations from a file
  
@@ -152,4 +158,8 @@ inline void AliMUONGeometryEnvelopeStore::SetAlign(Bool_t align)
 inline const TObjArray* AliMUONGeometryEnvelopeStore::GetEnvelopes() const
 { return fEnvelopes; }
 
+inline void 
+AliMUONGeometryEnvelopeStore::SetReferenceFrame(const TGeoCombiTrans& referenceFrame)
+{ fReferenceFrame = referenceFrame; }
+
 #endif //ALI_MUON_CHAMBER_ENVELOPE_STORE_H