* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
+
#include "AliHLTPHOSBase.h"
+#include "AliHLTPHOSConfig.h"
+#include "AliHLTPHOSAltroConfig.h"
+
-AliHLTPHOSBase::AliHLTPHOSBase()
+AliHLTPHOSBase::AliHLTPHOSBase(): AliHLTPHOSConfig(),
+ AliHLTPHOSAltroConfig()
{
}
+
AliHLTPHOSBase::~AliHLTPHOSBase()
{
}
+
+bool
+AliHLTPHOSBase::CheckFile(const char *fileName, const char *opt) const
+{
+ //returns true if the file specified by "fileName exists and has acceees rights specified by "opt",
+ //returns false if it doesnt exist, or it exists, but doesnt have the access right specified by "opt"
+
+ FILE *fp = fopen(fileName, opt);
+
+ if(fp == 0)
+ {
+ cout <<"Error: from" << typeid(*this).name() <<"could not open file: "<< fileName <<endl;
+ return false;
+ }
+ else
+ {
+ fclose(fp);
+ return true;
+ }
+}