]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONVGeometryBuilder.cxx
ATO-16 - Adding data member fSystematicErrorCluster to describe systematic error...
[u/mrichter/AliRoot.git] / MUON / AliMUONVGeometryBuilder.cxx
index 74f3538b363799a18459e60d0b611dacd2b79592..138b4eab83773657f4938c5f5e3a584bfa78aa45 100644 (file)
@@ -143,7 +143,7 @@ void AliMUONVGeometryBuilder::MapSV(const TString& path0,
   Int_t moduleId = AliMpDEManager::GetGeomModuleId(detElemId);
   AliMUONStringIntMap* svMap = GetSVMap(moduleId);     
 
-  Int_t nofDaughters = gMC->NofVolDaughters(volName);
+  Int_t nofDaughters = TVirtualMC::GetMC()->NofVolDaughters(volName);
   if (nofDaughters == 0) {
 
     // Get the name of the last volume in the path
@@ -165,8 +165,8 @@ void AliMUONVGeometryBuilder::MapSV(const TString& path0,
   }  
 
   for (Int_t i=0; i<nofDaughters; i++) {
-    Int_t copyNo = gMC->VolDaughterCopyNo(volName, i);
-    TString newName =  gMC->VolDaughterName(volName, i);
+    Int_t copyNo = TVirtualMC::GetMC()->VolDaughterCopyNo(volName, i);
+    TString newName =  TVirtualMC::GetMC()->VolDaughterName(volName, i);
             
     TString path = path0;
     path += ComposePath(newName, copyNo);