+
+//______________________________________________________________________________
+TString AliMUONGeometryDetElement::GetVolumeName() const
+{
+/// Extract volume name from the path
+
+ std::string volPath = fVolumePath.Data();
+ std::string::size_type first = volPath.rfind('/')+1;
+ std::string::size_type last = volPath.rfind('_');
+
+ return volPath.substr(first, last-first );
+}
+
+//______________________________________________________________________________
+Int_t AliMUONGeometryDetElement::GetVolumeCopyNo() const
+{
+/// Extract volume copyNo from the path
+
+ string volPath = fVolumePath.Data();
+ std::string::size_type first = volPath.rfind('_');
+ std::string copyNoStr = volPath.substr(first+1, volPath.length());
+ std::istringstream in(copyNoStr);
+ Int_t copyNo;
+ in >> copyNo;
+
+ return copyNo;
+}
+