]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added Fatal logmessage in the case
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 May 2010 05:49:04 +0000 (05:49 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 May 2010 05:49:04 +0000 (05:49 +0000)
the constants handler cannot load an instance of
PHOS/EMCAL constants.

HLT/CALO/AliHLTCaloConstantsHandler.cxx
HLT/CALO/AliHLTCaloConstantsHandler.h

index ca54c0c51e96aee46c2bdd3e19bb66ab57ef1e13..42df171b117f718c619232f4e29f796ca838ded3 100644 (file)
 #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, 
@@ -44,11 +46,16 @@ AliHLTCaloConstantsHandler::AliHLTCaloConstantsHandler(TString det):
       fCaloConstants = AliHLTMisc::LoadInstance( ( AliHLTCaloConstants* ) NULL, 
                                                 "AliHLTEMCALConstants" , "libAliHLTEMCAL.so");
     }
+  
+  if( fCaloConstants == 0 )
+    {
+      AliHLTLogging *log = new AliHLTLogging();
+      log->Logging(kHLTLogFatal, __FILE__, "fCaloConstants == ZERO ",  "fCaloConstants == ZERO " ); 
+      delete log;
+    }
 }
 
 
-
-
 AliHLTCaloConstantsHandler::~AliHLTCaloConstantsHandler()
 {
   //Default destructor
index 38874751df2c990121dcb0250322f686ef6ba3aa..f2f5106e114a26fa2eb2ccf325f9519130c91813 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliHLTCaloConstants.h"
 #include "TString.h"
 
+
 class AliHLTCaloConstantsHandler
 {
 public:
@@ -33,6 +34,7 @@ protected:
 private:
   
 
+
   /** Keep the standard constructor private, since we must alway initialize by specific calorimeter**/
   AliHLTCaloConstantsHandler();