Do not save CVS subdirectories
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.cxx
index e38a93a8bfbfd0e348617c6bf7893aa558143551..3c4bf2703143e5c067c8a84e23d5c9c463b46e8d 100644 (file)
@@ -303,7 +303,7 @@ void AliPHOSv2::CreateGeometry()
 
   AliMC* pMC = AliMC::GetMC();
 
-  AliPHOSv2 *PHOS_tmp = (AliPHOSv2*)gAlice->GetDetector("PHOS");
+  AliPHOSv2 *PHOS_tmp = (AliPHOSv2*)gAlice->GetModule("PHOS");
   if(PHOS_tmp==NULL){
     
     fprintf(stderr,"PHOS detector not found!\n");