]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryDetElement.h
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryDetElement.h
index 1c6635b921122ebed7e3af4dea6b0b970647f0bf..87b78e703d685402d641930921d2a1690d44ef64 100644 (file)
@@ -7,7 +7,7 @@
 /// \class AliMUONGeometryDetElement
 /// \brief Class for storing detection element transformations 
 ///
-/// Author: Ivana Hrivnacova, IPN Orsay
+/// \author Ivana Hrivnacova, IPN Orsay
 
 #ifndef ALI_MUON_GEOMETRY_DET_ELEMENT_H
 #define ALI_MUON_GEOMETRY_DET_ELEMENT_H
@@ -25,6 +25,9 @@ class AliMUONGeometryDetElement : public TObject
     AliMUONGeometryDetElement();
     virtual ~AliMUONGeometryDetElement();
 
+    // static methods
+    static TString GetDENamePrefix();
+
     // methods
     void Global2Local(
                  Float_t xg, Float_t yg, Float_t zg, 
@@ -49,6 +52,7 @@ class AliMUONGeometryDetElement : public TObject
     
     // get methods
     Int_t    GetId() const;
+    TString  GetDEName() const;
     TString  GetVolumePath() const;
     TString  GetVolumeName() const;
     Int_t    GetVolumeCopyNo() const;
@@ -56,16 +60,20 @@ class AliMUONGeometryDetElement : public TObject
     const TGeoHMatrix*  GetGlobalTransformation() const;
 
   protected:
+    /// Not implemented
     AliMUONGeometryDetElement(const AliMUONGeometryDetElement& rhs);
-
-    // operators  
+    /// Not implemented
     AliMUONGeometryDetElement& operator = (const AliMUONGeometryDetElement& rhs);
   
   private:
     // methods
     void PrintTransform(const TGeoHMatrix* transform) const;
-  
+     // static data members
+    static const TString  fgkDENamePrefix; ///< Geometry module name prefix
     // data members
+    TString       fDEName;     ///< detection element name
     TString       fVolumePath; ///< \brief the full path of aligned volume
                                ///  or envelope in geometry
     TGeoHMatrix*  fLocalTransformation;  ///< the transformation wrt module
@@ -76,19 +84,32 @@ class AliMUONGeometryDetElement : public TObject
 
 // inline functions
 
+/// Return module name prefix
+inline TString AliMUONGeometryDetElement::GetDENamePrefix()
+{ return fgkDENamePrefix; }
+
+/// Set the full path of the aligned volume or envelope in geometry
 inline void AliMUONGeometryDetElement::SetVolumePath(const TString& volumePath)
 { fVolumePath = volumePath; }
 
+/// Return detection element ID
 inline Int_t AliMUONGeometryDetElement::GetId() const
 { return GetUniqueID(); }
 
+/// Return detection element ID
+inline TString AliMUONGeometryDetElement::GetDEName() const
+{ return fDEName; }
+
+/// Return the full path of the aligned volume or envelope in geometry
 inline TString AliMUONGeometryDetElement::GetVolumePath() const
 { return fVolumePath; }
 
+/// Return the detection element transformation wrt module
 inline const TGeoHMatrix* 
 AliMUONGeometryDetElement::GetLocalTransformation() const
 { return fLocalTransformation; }
 
+/// Return the detection element transformation wrt world
 inline const TGeoHMatrix* 
 AliMUONGeometryDetElement::GetGlobalTransformation() const
 { return fGlobalTransformation; }