]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/totEt/AliAnalysisEmEtReconstructed.cxx
Coverity fix 24735
[u/mrichter/AliRoot.git] / PWGLF / totEt / AliAnalysisEmEtReconstructed.cxx
index ed7f9571141e8a1a1d4eb97b1ebbea754ad3e1db..8fd25f4ae142bee24ee64dc8297220df4be1147f 100644 (file)
@@ -201,7 +201,8 @@ Int_t AliAnalysisEmEtReconstructed::AnalyseEvent(AliVEvent* ev)
   Float_t pos[3] = {0};
   TVector3 caloPos(0,0,0);
   TVector3 trackPos(0,0,0);
-  Double_t res=0, delta_eta=0, delta_phi=0, maxPid=-99;
+//   Double_t res=0, delta_eta=0, delta_phi=0, maxPid=-99;
+  Double_t res=0, maxPid=-99;
   Double_t xCluster[4]={0}, xCharged[7]={0};
        
   AliESDtrack *track = 0;
@@ -220,8 +221,8 @@ Int_t AliAnalysisEmEtReconstructed::AnalyseEvent(AliVEvent* ev)
 
       // *********************
       // tender's matching
-      delta_eta = caloCluster->GetTrackDz(); 
-      delta_phi = caloCluster->GetTrackDx(); 
+//       delta_eta = caloCluster->GetTrackDz(); 
+//       delta_phi = caloCluster->GetTrackDx(); 
 
       if (caloCluster->GetTrackMatchedIndex() > 0) // tender's matching
           track = fESD->GetTrack(caloCluster->GetTrackMatchedIndex());
@@ -243,7 +244,7 @@ Int_t AliAnalysisEmEtReconstructed::AnalyseEvent(AliVEvent* ev)
       }
 
       // calculate ET
-      Double_t etDep = CalculateTransverseEnergy(*caloCluster);
+      Double_t etDep = CorrectForReconstructionEfficiency(*caloCluster);
                
       // All clusters
       //fHistAllRecEtaEDepETDep->Fill(caloE,caloPos.Eta(),etDep);