]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix coverity warnings, variables defined but not used
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Tue, 8 Jul 2014 22:45:06 +0000 (00:45 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Tue, 8 Jul 2014 22:46:11 +0000 (00:46 +0200)
PWGGA/EMCALTasks/AliAnalysisTaskEMCALPhotonIsolation.cxx

index 3973d2065071a4046f76004abcaacbe378b45bc7..c184a525a1bfde2b2da7ebb97550599bff8e5ad8 100644 (file)
@@ -693,7 +693,7 @@ void AliAnalysisTaskEMCALPhotonIsolation::EtIsoCellPhiBand(TLorentzVector c, Flo
         Int_t inModule = -1;
         Int_t iColLoc  = -1;
         if(iCol < AliEMCALGeoParams::fgkEMCALCols){ // if the SM number is odd the column is the one corresponding in the supermodule
-          iModule = 2*iSector + 1;
+          inModule = 2*iSector + 1;
           iColLoc  = iCol;
         }
         else if(iCol > AliEMCALGeoParams::fgkEMCALCols - 1){ // if the SM number is even the column isn't the one corresponding in the supermodule
@@ -705,12 +705,12 @@ void AliAnalysisTaskEMCALPhotonIsolation::EtIsoCellPhiBand(TLorentzVector c, Flo
         
         if(TMath::Abs(iCol-colCellLeadingClust)<nbConeSize && TMath::Abs(iCol+colCellLeadingClust)>nbConeSize){
           if(iRow<iRowMaxCone && iRow>iRowMinCone){
-            Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(iModule,iRow,iCol);  // verifier les iRow et iCol
+            Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(inModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
             sumEnergyPhiBandCells+=cells->GetAmplitude(iabsId); //should be Et
           }
         }
         else if (TMath::Abs(iCol-colCellLeadingClust)>nbConeSize && TMath::Abs(iCol+colCellLeadingClust)<nbConeSize){
-          Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(iModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
+          Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(inModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
           sumEnergyConeCells+=cells->GetAmplitude(iabsId); //should be Et
         }
       }
@@ -786,7 +786,7 @@ void AliAnalysisTaskEMCALPhotonIsolation::EtIsoCellEtaBand(TLorentzVector c, Flo
         Int_t inModule = -1;
         Int_t iColLoc  = -1;
         if(iCol < AliEMCALGeoParams::fgkEMCALCols){ // if the SM number is odd the column is the one corresponding in the supermodule
-          iModule = 2*iSector + 1;
+          inModule = 2*iSector + 1;
           iColLoc  = iCol;
         }
         else if(iCol > AliEMCALGeoParams::fgkEMCALCols - 1){ // if the SM number is even the column isn't the one corresponding in the supermodule
@@ -798,12 +798,12 @@ void AliAnalysisTaskEMCALPhotonIsolation::EtIsoCellEtaBand(TLorentzVector c, Flo
         
         if(TMath::Abs(iCol-colCellLeadingClust)<nbConeSize && TMath::Abs(iCol+colCellLeadingClust)>nbConeSize){
           if(iCol<iColMaxCone && iCol>iColMinCone){
-            Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(iModule,iRow,iCol);  // verifier les iRow et iCol
+            Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(inModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
             sumEnergyEtaBandCells+=cells->GetAmplitude(iabsId); //should be Et
           }
         }
         else if (TMath::Abs(iCol-colCellLeadingClust)>nbConeSize && TMath::Abs(iCol+colCellLeadingClust)<nbConeSize){
-          Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(iModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
+          Int_t iabsId = emcalGeom->GetAbsCellIdFromCellIndexes(inModule,iRowLoc,iColLoc);  // verifier les iRow et iCol
           sumEnergyConeCells+=cells->GetAmplitude(iabsId); //should be Et
         }
       }
@@ -1101,7 +1101,7 @@ Bool_t AliAnalysisTaskEMCALPhotonIsolation::FillGeneralHistograms(AliVCluster *c
     nTracks++;
   }
   
-  Double_t eTCOI = 0., m02COI = 0., lambda0cluster = 0., phiCOI = 0., etaCOI = 0., ptmc = 0., mcptsum = 0.;
+  Double_t eTCOI = 0., m02COI = 0., lambda0cluster = 0., ptmc = 0., mcptsum = 0.;
   //Int_t Ntracks;
   //Definition of the Array for Davide's Output
   const Int_t ndims =   fNDimensions;
@@ -1109,8 +1109,7 @@ Bool_t AliAnalysisTaskEMCALPhotonIsolation::FillGeneralHistograms(AliVCluster *c
   
   eTCOI = vecCOI.Et();
   m02COI = coi->GetM02();
-  etaCOI = vecCOI.Eta();
-  phiCOI = vecCOI.Phi();
+
   
   // ******** Isolation and UE calculation with different methods *********