fix for physical file name
authortkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2003 14:36:43 +0000 (14:36 +0000)
committertkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2003 14:36:43 +0000 (14:36 +0000)
MONITOR/AliMonitorProcess.cxx

index f3ba710..9dcc5fc 100644 (file)
@@ -345,17 +345,19 @@ Bool_t AliMonitorProcess::CheckForNewFile()
   result = fGrid->GetPhysicalFileNames(fLogicalFileName.Data());
   fFileName = result->Next();
 #else
-  handle = fGrid->GetPhysicalFileNames(fLogicalFileName.Data());
+  fileName = fAlienDir + "/" + fLogicalFileName;
+  handle = fGrid->GetPhysicalFileNames(fileName.Data());
   if (!handle) {
     Error("CheckForNewFile", "could not get physical file names for %s", 
-         fLogicalFileName.Data());
+         fileName.Data());
     return kFALSE;
   }
   result = fGrid->CreateGridResult(handle);
+  result->Reset();
   Grid_Result_t* resultEntry = result->Next();
   if (!resultEntry) {
     Error("CheckForNewFile", "could not get physical file names for %s", 
-         fLogicalFileName.Data());
+         fileName.Data());
     return kFALSE;
   }
   fFileName = resultEntry->name2.c_str();