]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryDetElement.h
Adding name as attribute and GetDEName() method;
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryDetElement.h
index 7f1e5da858013f5f8240c718631e95440148839a..c787b97c850a06bef0762377fdee7a5b9794d5eb 100644 (file)
@@ -49,6 +49,7 @@ class AliMUONGeometryDetElement : public TObject
     
     // get methods
     Int_t    GetId() const;
+    TString  GetDEName() const;
     TString  GetVolumePath() const;
     TString  GetVolumeName() const;
     Int_t    GetVolumeCopyNo() const;
@@ -62,8 +63,12 @@ class AliMUONGeometryDetElement : public TObject
   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
@@ -82,6 +87,10 @@ inline void AliMUONGeometryDetElement::SetVolumePath(const TString& volumePath)
 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; }