- else
- Error("AliPHOSGridFile", " %s is an unknown grid system", grid.Data()) ;
- if ( !fGrid )
- Error("ctor", "Cannot connect to alien://aliendb1.cern.ch:15000/?direct") ;
-
- fRoot = "/alice/production/aliprod" ;
- if ( !fGrid->OpenDir(fRoot) )
- Error("ctor", "Cannot find directory %s ", fRoot.Data() ) ;
-
- fYear = "" ;
- fProd = "" ;
- fVers = "" ;
- fType = "" ;
- fRun = "" ;
- fEvt = "" ;
-
- fPath += fRoot ;
+ else
+ Error("AliPHOSGridFile", " %s is an unknown grid system", grid.Data()) ;
+ if ( !fGrid )
+ Error("ctor", "Cannot connect to alien://aliendb1.cern.ch:15000/?direct") ;
+
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,0,0)
+ if ( !fGrid->OpenDir(fRoot) )
+ Error("ctor", "Cannot find directory %s ", fRoot.Data() ) ;
+#else
+ Error("AliPHOSGridFile", "needs to be ported to new TGrid");
+#endif
+
+ fPath += fRoot ;
+}