Fix for coverity - mainly unused variables
authorzampolli <Chiara.Zampolli@cern.ch>
Mon, 14 Jul 2014 16:55:55 +0000 (18:55 +0200)
committerzampolli <Chiara.Zampolli@cern.ch>
Mon, 14 Jul 2014 16:56:07 +0000 (18:56 +0200)
PWGPP/ITS/AliMeanVertexPreprocessorOffline.cxx
STEER/STEER/AliGRPPreprocessor.cxx
TOF/AliTOFPreprocessor.cxx
TOF/AliTOFcalib.cxx

index 3a26a26..285a097 100644 (file)
@@ -296,6 +296,7 @@ void AliMeanVertexPreprocessorOffline::ProcessOutput(const char *filename, AliCD
        useSPDvtx = kTRUE;
        fStatus=kUseOfflineSPDvtx;
       }
+      AliDebug(2, Form("xHistoRMS = %f, yHistoRMS = %f, zHistoRMS = %f", xHistoRMS, yHistoRMS, zHistoRMS)); 
     }
     
     
@@ -355,6 +356,7 @@ void AliMeanVertexPreprocessorOffline::ProcessOutput(const char *filename, AliCD
        sigmaOnline[1] = vtxOnline->GetYRes();
        sigmaOnline[2] = vtxOnline->GetZRes();
        
+       AliDebug(2, Form("sigmaOnline[0] = %f, sigmaOnline[1] = %f, sigmaOnline[2] = %f", sigmaOnline[0], sigmaOnline[1], sigmaOnline[2]));
        //vtxOnline->GetSigmaXYZ(sigmaOnline);
        
        if ((TMath::Abs(posOnline[0]-xMeanVtx) > 0.1) || (TMath::Abs(posOnline[1]-yMeanVtx) > 0.1) || (TMath::Abs(posOnline[2]-zMeanVtx) > 1.)){
index 3bdb08b..36b7efd 100644 (file)
@@ -1346,7 +1346,7 @@ UInt_t AliGRPPreprocessor::ProcessDqmFxs()
 
        // TriggerClassesAndHistosToClone
        TList* list = GetFileSources(kDQM, "TriggerClassesAndHistosToClone");
-       Bool_t storeResult = kTRUE;
+       Bool_t openFileResult = kTRUE;
        Bool_t storeResultQAThr = kTRUE;
        if (list !=0x0 && list->GetEntries()!=0){
                AliInfo("The following sources produced files with the id TriggerClassesAndHistosToClone for GRP");
@@ -1367,7 +1367,7 @@ UInt_t AliGRPPreprocessor::ProcessDqmFxs()
                                }
                                else {
                                        AliError("Can't open file");
-                                       storeResult = kFALSE;
+                                       openFileResult = kFALSE;
                                }
                        }
                        else{
@@ -1460,7 +1460,9 @@ UInt_t AliGRPPreprocessor::ProcessDqmFxs()
                Printf("No valid QAThresholds entries found, storing nothing in the OCDB");
        }
 
-       //      return storeResult;
+       Printf("openFileResult for QAThr processing would be %d, but we return kTRUE anyway", (Int_t)openFileResult);
+       Printf("storeResultQAThr for QAThr processing would be %d, but we return kTRUE anyway", (Int_t)storeResultQAThr);
+       //      return storeResultQAThr;
        return kTRUE;  // temporary!!
 }
 
@@ -2447,6 +2449,7 @@ Float_t* AliGRPPreprocessor::ProcessFloatAll(const TObjArray* array)
                }
        }
 
+       AliDebug(2, Form("nentriesUsed = %d", nentriesUsed));
        Float_t temp = 0;
        Float_t temp1 = 0;
        Float_t sumweights = 0; 
index 7611488..074f064 100644 (file)
@@ -681,8 +681,8 @@ UInt_t AliTOFPreprocessor::ProcessOnlineDelays()
                                                          }
                                                          mean= mean/nent; //<x>
                                                          sumw2=sumw2/nent; //<x^2>
-                                                         Double_t rmsmean= 0;
-                                                         rmsmean = TMath::Sqrt((sumw2-mean*mean)/nent);
+                                                         //Double_t rmsmean= 0;  // not used for the time being
+                                                         //rmsmean = TMath::Sqrt((sumw2-mean*mean)/nent);
                                                          if (ich<fNChannels) {
                                                                  Float_t delay = mean*AliTOFGeometry::TdcBinWidth()*1.E-3; // delay in ns
                                                                  fCal->SetDelay(ich,delay);  // delay in ns
index 6f1cf01..b52764e 100644 (file)
@@ -1759,9 +1759,9 @@ TH1F* AliTOFcalib::Profile(Int_t ich)
   Float_t minToT = 0; //ns
   Float_t maxToT = 5.; //ns
   Float_t deltaToT = (maxToT-minToT)/knbinToT;
-  Double_t mTime[knbinToT+1],mToT[knbinToT+1],meanTime[knbinToT+1], meanTime2[knbinToT+1],vToT[knbinToT+1], vToT2[knbinToT+1],meanToT[knbinToT+1],meanToT2[knbinToT+1],vTime[knbinToT+1],vTime2[knbinToT+1],xlow[knbinToT+1],sigmaTime[knbinToT+1];
+  Double_t mTime[knbinToT+1],mToT[knbinToT+1],meanTime[knbinToT+1], meanTime2[knbinToT+1],vToT[knbinToT+1], vToT2[knbinToT+1],meanToT[knbinToT+1],meanToT2[knbinToT+1],vTime[knbinToT+1],vTime2[knbinToT+1],sigmaTime[knbinToT+1];
   Int_t n[knbinToT+1], nentrx[knbinToT+1];
-  Double_t sigmaToT[knbinToT+1];
+  //Double_t xlow[knbinToT+1],sigmaToT[knbinToT+1];  // not used for the time being
   for (Int_t i = 0; i < knbinToT+1 ; i++){
     mTime[i]=0;
     mToT[i]=0;
@@ -1774,9 +1774,9 @@ TH1F* AliTOFcalib::Profile(Int_t ich)
     meanToT2[i]=0;
     vTime[i]=0;
     vTime2[i]=0;
-    xlow[i]=0;
+    //xlow[i]=0;
     sigmaTime[i]=0;
-    sigmaToT[i]=0;
+    //sigmaToT[i]=0;
     n[i]=0;
     nentrx[i]=0;
   }
@@ -1832,12 +1832,12 @@ TH1F* AliTOFcalib::Profile(Int_t ich)
           *(meanToT2[usefulBins]-meanToT[usefulBins]
             *meanToT[usefulBins]/n[usefulBins]))< 0) {
        AliError(" too small radical" );
-       sigmaToT[usefulBins]=0;
+       //sigmaToT[usefulBins]=0;
       }
       else{       
-       sigmaToT[usefulBins]=TMath::Sqrt(1./n[usefulBins]/n[usefulBins]
-                            *(meanToT2[usefulBins]-meanToT[usefulBins]
-                            *meanToT[usefulBins]/n[usefulBins]));
+       //sigmaToT[usefulBins]=TMath::Sqrt(1./n[usefulBins]/n[usefulBins]
+       //                   *(meanToT2[usefulBins]-meanToT[usefulBins]
+       //                   *meanToT[usefulBins]/n[usefulBins]));
       }
       usefulBins++;
     }