]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity (Jacek)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Feb 2012 09:01:33 +0000 (09:01 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Feb 2012 09:01:33 +0000 (09:01 +0000)
PWGPP/TPC/AliTPCPerformanceSummary.cxx

index 3f052dee42bab5bc849ed256d7c5c7e8bd2c0da1..369f7e8f2dc131158d2fae4c77f0b741ad47ed7e 100644 (file)
@@ -541,8 +541,10 @@ Int_t AliTPCPerformanceSummary::AnalyzeDCARPhi(const AliPerformanceTPC* pTPC, TT
     his2D  = dynamic_cast<TH2*>(his3D->Project3D("xz"));
     if (his2D)
       his2D->FitSlicesY(0,0,-1,0,"QNR",&arrayWidth);
+
     width =  dynamic_cast<TH1*>(arrayWidth.At(2));
-    if (width)
+    if (width) 
+    {
       nXbins = width->GetNbinsX();
     for(Int_t i=2; i<nXbins; i++){
       x = width->GetBinCenter(i);
@@ -564,6 +566,7 @@ Int_t AliTPCPerformanceSummary::AnalyzeDCARPhi(const AliPerformanceTPC* pTPC, TT
        pn = Int_t(TMath::Abs(dcarAP1)/dcarAP1);
       dcarAP1 = pn*TMath::Sqrt(TMath::Abs(dcarAP1));
     }
+    }
 
     linearFit.ClearPoints();
     
@@ -572,8 +575,9 @@ Int_t AliTPCPerformanceSummary::AnalyzeDCARPhi(const AliPerformanceTPC* pTPC, TT
     his2D  = dynamic_cast<TH2*>(his3D->Project3D("xz"));
     if (his2D)
       his2D->FitSlicesY(0,0,-1,0,"QNR",&arrayWidth);
-    width =  dynamic_cast<TH1*>(arrayWidth.At(2));
-    if (width)
+      width =  dynamic_cast<TH1*>(arrayWidth.At(2));
+    if (width) 
+    {
       nXbins = width->GetNbinsX();
     for(Int_t i=2; i<nXbins; i++){
       x = width->GetBinCenter(i);
@@ -594,6 +598,7 @@ Int_t AliTPCPerformanceSummary::AnalyzeDCARPhi(const AliPerformanceTPC* pTPC, TT
        pn = Int_t(TMath::Abs(dcarCP1)/dcarCP1);
       dcarCP1 = pn*TMath::Sqrt(TMath::Abs(dcarCP1));
     }
+    }
     his3D->GetYaxis()->SetRangeUser(-1,1);
     his3D->GetZaxis()->SetRangeUser(0,20);