Correction in CreateMaterials
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 1999 06:16:38 +0000 (06:16 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 1999 06:16:38 +0000 (06:16 +0000)
ITS/AliITSv5.cxx

index c3d5dc129b41118036a358e71d2ff3e116a98eb3..2683fb245b85769b55446233e13ad6017a7a958e 100644 (file)
@@ -54,7 +54,11 @@ void AliITSv5::CreateMaterials()
   //
   // Read materials for the ITS
   //
-  FILE *file = fopen(fEuclidMaterial.Data(),"r");
+  char *filtmp;
+  //
+  filtmp=gSystem->ExpandPathName(fEuclidMaterial.Data());
+  FILE *file = fopen(filtmp,"r");
+  delete [] filtmp;
   if(file) {
     fclose(file);
     gAlice->ReadEuclidMedia(fEuclidMaterial.Data(),this);