Fix warning
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Mar 2009 18:04:01 +0000 (18:04 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Mar 2009 18:04:01 +0000 (18:04 +0000)
ITS/AliITSRecoParam.cxx
ITS/AliITSTrackleterSPDEff.cxx

index 08000d0..13d1802 100644 (file)
@@ -14,6 +14,7 @@
  **************************************************************************/
 
 #include "AliITSRecoParam.h"
+#include "AliLog.h"
 
 /* $Id$ */
 
@@ -547,6 +548,10 @@ AliITSRecoParam *AliITSRecoParam::GetPlaneEffParam(Int_t i)
     param->SetMinContVtxPlaneEff(3);
     return param;
   }
+  else {
+    AliErrorGeneral("AliITSRecoParam",Form("Unrecognised value of i %d\n",i));
+    return 0;
+  }
 }
 //_____________________________________________________________________________
 void AliITSRecoParam::SetLayersParameters() 
index 38e9f99..868ef1c 100644 (file)
@@ -1636,7 +1636,7 @@ Bool_t AliITSTrackleterSPDEff::WriteHistosToFile(TString filename, Option_t* opt
   // Also the histograms from the base class are saved 
   //
   if (!GetHistOn()) return kFALSE;
-  if (filename.Data()=="") {
+  if (!strcmp(filename.Data(),"")) {
      AliWarning("WriteHistosToFile: null output filename!");
      return kFALSE;
   }