]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EMCAL/AliHLTEMCALRecoParamHandler.cxx
initializing variables that were declare without a value
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALRecoParamHandler.cxx
index 3b90797e570cb47300a38a3894405dde2c8a1bac..3e520bec9607cc72f6df76964b5009502cbf1f30 100644 (file)
@@ -41,6 +41,7 @@ Int_t
 AliHLTEMCALRecoParamHandler::GetParametersFromCDB()
 {
   // Avoiding linking error in EMCAL
+  return 0;
 }
 
 
@@ -50,8 +51,13 @@ void AliHLTEMCALRecoParamHandler::FillParameters()
    //See header file for class documentation
    if(fRecoParamPtr)
    {
-      fLogWeight = dynamic_cast<AliEMCALRecParam*>(fRecoParamPtr)->GetW0(); 
-      fRecPointMemberThreshold = dynamic_cast<AliEMCALRecParam*>(fRecoParamPtr)->GetMinECut();
-      fRecPointThreshold = dynamic_cast<AliEMCALRecParam*>(fRecoParamPtr)->GetClusteringThreshold();
+
+      AliEMCALRecParam *tmp = dynamic_cast<AliEMCALRecParam*>(fRecoParamPtr);
+      if(tmp)
+       {
+         fLogWeight = tmp->GetW0(); 
+         fRecPointMemberThreshold = tmp->GetMinECut();
+         fRecPointThreshold = tmp->GetClusteringThreshold();
+       }
    }
 }