Adding expansion of file name - necessary for testing the preprocessor.
[u/mrichter/AliRoot.git] / TOF / AliTOFFEEReader.cxx
index 0825d6b9a77c0e93b59ad2f0beb6d4ee007eb4ea..320ff04de7ffa19c5a0210b52338a82036a6d73d 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();
 }