]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/CALO/AliHLTCaloConstantsHandler.cxx
New CMake build implementation
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloConstantsHandler.cxx
index 69c139559c98d76d8dec50f36dd901e28e77d3a3..36a85d121cf0a3bb85f2ff4aacd8b30fca3b2a8b 100644 (file)
@@ -4,7 +4,7 @@
 //* This file is property of and copyright by the ALICE HLT Project        * 
 //* ALICE Experiment at CERN, All rights reserved.                         *
 //*                                                                        *
-//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+//* Primary Authors: Svein Lindal <slindal@fys.uio.no>
 //*                  for The ALICE HLT Project.                            *
 //*                                                                        *
 //* Permission to use, copy, modify and distribute this software and its   *
 #include "AliHLTCaloConstantsHandler.h"
 #include "AliHLTCaloConstants.h"
 #include "AliHLTMisc.h"
+#include "AliHLTLogging.h"
+
+
+ClassImp(AliHLTCaloConstantsHandler)
+
 
 AliHLTCaloConstantsHandler::AliHLTCaloConstantsHandler(TString det):
fCaloConstants(NULL)
 fCaloConstants(0)
 {
+    
   if (det.CompareTo("PHOS") == 0) {
-    fCaloConstants = AliHLTMisc::LoadInstance( (AliHLTCaloConstants*) NULL, "AliHLTPHOSConstants", "PHOS");
-  } else {
-    fCaloConstants = AliHLTMisc::LoadInstance( (AliHLTCaloConstants*) NULL, "AliHLTEMCALConstants", "EMCAL");
-  }
+    fCaloConstants = AliHLTMisc::LoadInstance( ( AliHLTCaloConstants*  ) NULL, 
+                                              "AliHLTPHOSConstants", "libAliHLTPHOS.so");
+  } 
+  else 
+    {
+      fCaloConstants = AliHLTMisc::LoadInstance( ( AliHLTCaloConstants* ) NULL, 
+                                                "AliHLTEMCALConstants" , "libAliHLTEMCAL.so");
+    }
+  
+  if( fCaloConstants == 0 )
+    {
+      AliHLTLogging *log = new AliHLTLogging();
+      log->Logging(kHLTLogDebug, __FILE__, "fCaloConstants == ZERO ",  "fCaloConstants == ZERO " ); 
+      delete log;
+    }
 }