//* 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;
+ }
}