Adding expansion of file name - necessary for testing the preprocessor.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 17:12:26 +0000 (17:12 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 17:12:26 +0000 (17:12 +0000)
TOF/AliTOFFEEReader.cxx

index 0825d6b..320ff04 100644 (file)
@@ -25,6 +25,7 @@
 //                                                                  //
 //////////////////////////////////////////////////////////////////////
 
+#include <TSystem.h>
 #include "AliTOFFEEReader.h"
 #include "AliTOFFEEConfig.h"
 #include "AliTOFRawStream.h"
@@ -119,8 +120,9 @@ AliTOFFEEReader::LoadFEEConfig(const Char_t *FileName) const
    *
    */
 
+  Char_t *expandedFileName = gSystem->ExpandPathName(FileName);
   std::ifstream is;
-  is.open(FileName, std::ios::binary);
+  is.open(expandedFileName, std::ios::binary);
   is.read((Char_t *)fFEEConfig, sizeof(AliTOFFEEConfig));
   is.close();
 }