]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryEnvelopeStore.h
Formatting changes.
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryEnvelopeStore.h
index a60574559df2c596b3723bd3e2bde061b2b23422..1e73b8f45d8db45d4abaaab1b320dcb16775114c 100644 (file)
@@ -2,25 +2,28 @@
  * See cxx source for full Copyright notice                               */
 
 // $Id$
-//
-// Class AliMUONGeometryEnvelopeStore
-// ----------------------------------
-// Class for definititon of the temporary volume envelopes
-// used in geometry construction
-//
-// Author: Ivana Hrivnacova, IPN Orsay
+
+/// \ingroup geometry
+/// \class AliMUONGeometryEnvelopeStore
+/// \brief Store for temporary volumes envelopes
+///
+/// Class for definititon of the temporary volume envelopes
+/// used in geometry construction
+///
+/// Author: Ivana Hrivnacova, IPN Orsay
 
 #ifndef ALI_MUON_GEOMETRY_ENVELOPE_STORE_H
 #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;
@@ -111,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;
@@ -122,16 +126,20 @@ class AliMUONGeometryEnvelopeStore : public TObject
 
   private:
     // methods
+    TGeoHMatrix ConvertDETransform(const TGeoHMatrix& transform) const;
     AliMUONGeometryEnvelope* FindEnvelope(const TString& name) const;
     Bool_t AlignEnvelope(AliMUONGeometryEnvelope* envelope) const;
  
     // data members
-    TObjArray*  fEnvelopes; // the envelopes names and transformations
-                           // wrt to the chamber position in mother volume                                 
-    AliMUONGeometryStore*  fDetElements; // detection elements
-                            // used for alignement of enevelopes
-    Bool_t      fDebug;     // Switch for debugging  
-    Bool_t      fAlign;     // option to read transformations from a file
+    TObjArray*  fEnvelopes; ///< \brief the envelopes names and transformations
+                           /// wrt to the chamber position in mother volume                                 
+    AliMUONGeometryStore*  fDetElements; ///< \brief detection elements
+                            /// used for alignement of enevelopes
+    TGeoCombiTrans fReferenceFrame; ///< \brief 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
  
   ClassDef(AliMUONGeometryEnvelopeStore,2) // Geometry envelope store
 };
@@ -150,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