From 14e709e61c0d7ed92680d2ae255b8a822cf5374b Mon Sep 17 00:00:00 2001 From: fprino Date: Wed, 18 Jun 2014 18:40:22 +0200 Subject: [PATCH] Fix compilation warnings --- ITS/AliITSPreprocessorSDD.cxx | 11 ++++++++++- ITS/AliITSQASSDChecker.cxx | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ITS/AliITSPreprocessorSDD.cxx b/ITS/AliITSPreprocessorSDD.cxx index a0e61292308..b73ecc95bf7 100644 --- a/ITS/AliITSPreprocessorSDD.cxx +++ b/ITS/AliITSPreprocessorSDD.cxx @@ -134,7 +134,11 @@ UInt_t AliITSPreprocessorSDD::ProcessPulser(AliITSDDLModuleMapSDD* ddlmap){ if(feefil){ retfscf=fscanf(feefil,"%d \n",&amSamplFreq); fclose(feefil); - Log(Form("AM sampling frequency = %d MHz",amSamplFreq)); + if(retfscf<0){ + Log("Error reading from fee.conf. AM sampling set at 40 MHz by default"); + }else{ + Log(Form("AM sampling frequency = %d MHz",amSamplFreq)); + } }else{ Log("File fee.conf not found. AM sampling set at 40 MHz by default"); } @@ -172,6 +176,7 @@ UInt_t AliITSPreprocessorSDD::ProcessPulser(AliITSDDLModuleMapSDD* ddlmap){ } retfscf=fscanf(basFil,"%d %d %d\n",&im,&is,&isgoodmod); + if(retfscf<0) isgoodmod=kFALSE; if(!isgoodmod){ if(isid==0){ sid0ok=kFALSE; @@ -278,6 +283,10 @@ UInt_t AliITSPreprocessorSDD::ProcessInjector(AliITSDDLModuleMapSDD* ddlmap){ continue; } retfscf=fscanf(injFil,"%d",&polDeg); + if(retfscf<0){ + Log(Form("File %s has bad format.",inpFileName.Data())); + continue; + } while (!feof(injFil)){ retfscf=fscanf(injFil,"%d %u ",&evNumb,&timeStamp); if(evNumb==-99){ diff --git a/ITS/AliITSQASSDChecker.cxx b/ITS/AliITSQASSDChecker.cxx index 4ea3aed1872..acb358c921f 100644 --- a/ITS/AliITSQASSDChecker.cxx +++ b/ITS/AliITSQASSDChecker.cxx @@ -149,6 +149,7 @@ void AliITSQASSDChecker::CheckRaws(TH1* histo) { else if (histo->GetMean()GetMean()>maxMeanDDLDataSize) AliWarning(Form("Mean data size of DDL %s is %-.2g kB",histname(histname.Length()-3,3).Data(), histo->GetMean())); } + /* Lines below commented out because nothing was checked with them since the AliWarning was commented (F. Prino, June 18 2014) if (histname.Contains("SSDAverageOccupancy")) { const char* side = ""; @@ -174,7 +175,7 @@ void AliITSQASSDChecker::CheckRaws(TH1* histo) { }//module loop }//ladder loop } - + */ } -- 2.39.3