]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSBase.cxx
Removing obsolete code + refactoring
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSBase.cxx
index b55386ec8b4e5f19734a9463743dd5239cf5ac88..c854c4f1d9ce37a1a5bcbc40ad161e9d5d5d8eb9 100644 (file)
@@ -1,3 +1,5 @@
+// $Id$
+
 /**************************************************************************
  * This file is property of and copyright by the Experimental Nuclear     *
  * Physics Group, Dep. of Physics                                         *
 #include "AliHLTPHOSBase.h"
 #include "AliHLTPHOSConfig.h"
 #include "AliHLTPHOSAltroConfig.h"
+//#include "AliHLTLogging.h"
 
 
 AliHLTPHOSBase::AliHLTPHOSBase(): AliHLTPHOSConfig(),  
                                  AliHLTPHOSAltroConfig(),
                                  fConfigPtr(0),
-                                 fAltroConfigPtr(0)
+                                 fAltroConfigPtr(0),
+                                 fLogPtr(0)
 {
-
+  fLogPtr = new  AliHLTLogging();
 }
 
 
@@ -36,22 +40,3 @@ 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;
-    }
-}