#include <TArrayI.h>
#include <Riostream.h>
+using std::endl;
/// \cond CLASSIMP
ClassImp(AliMUONGeometryModuleTransformer)
/// \endcond
-const TString AliMUONGeometryModuleTransformer::fgkModuleNamePrefix = "GM";
+//
+// static methods
+//
+
+//______________________________________________________________________________
+const TString& AliMUONGeometryModuleTransformer::GetModuleNamePrefix()
+{
+ /// Geometry module name prefix
+ static const TString kModuleNamePrefix = "GM";
+ return kModuleNamePrefix;
+}
//______________________________________________________________________________
TString AliMUONGeometryModuleTransformer::GetModuleName(Int_t moduleId)
{
/// Return the module name for given moduleId
- TString moduleName(fgkModuleNamePrefix);
+ TString moduleName(GetModuleNamePrefix());
moduleName += moduleId;
return moduleName;
}
+//
+// ctor, dtor
+//
+
//______________________________________________________________________________
AliMUONGeometryModuleTransformer::AliMUONGeometryModuleTransformer(Int_t moduleId)
: TObject(),
fTransformation = new TGeoHMatrix("");
// Det elements transformation stores
- fDetElements = new AliMpExMap(true);
+ fDetElements = new AliMpExMap;
}
std::string volPath = fVolumePath.Data();
std::string::size_type first = volPath.rfind('/');
- volPath = volPath.substr(0, first);
+ if ( first != std::string::npos )
+ volPath = volPath.substr(0, first);
std::string::size_type next = volPath.rfind('/')+1;
std::string::size_type last = volPath.rfind('_');