]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed warnings [-Wunused-but-set-variable] from GCC 4.6 -
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 07:36:12 +0000 (07:36 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Oct 2011 07:36:12 +0000 (07:36 +0000)
switching to that will sure cause a lot of people to get
their SVN commit rights revoked :-)

PWG2/FORWARD/analysis2/AliCentralMultiplicityTask.cxx
PWG2/FORWARD/analysis2/AliFMDMCSharingFilter.cxx
PWG2/FORWARD/analysis2/AliFMDMCTrackDensity.cxx
PWG2/FORWARD/analysis2/AliForwardFlowTaskQC.cxx

index f6ed2dd43d5eb307d46a56932f9c2afbb5783db1..36633d191b4117f3553f19487103677b4f35f1ce 100644 (file)
@@ -303,14 +303,14 @@ void AliCentralMultiplicityTask::FindEtaLimits()
     TH1D* accClone   = static_cast<TH1D*>(hAcceptance->Clone(Form("acceptance%02d",v)));
     secs->Add(accClone);
     
-    Double_t prev = 0;
+    // Double_t prev = 0;
     for (Int_t e = 1; e <= proj->GetNbinsX(); e++) { 
       Double_t c = proj->GetBinContent(e);
       if (c > .5 /*&& TMath::Abs(c - prev) < .1*c*/) {
        fEtaMin[v-1] = e;
        break;
       }
-      prev = c;
+      // prev = c;
       after->SetBinContent(e, 0);
       after->SetBinError(e, 0);
       for(Int_t nn =1; nn <=obg->GetNbinsY();nn++)
@@ -323,7 +323,7 @@ void AliCentralMultiplicityTask::FindEtaLimits()
        fEtaMax[v-1] = e;
        break;
       }
-      prev = c;
+      // prev = c;
       after->SetBinContent(e, 0);
       after->SetBinError(e, 0);
       for(Int_t nn =1; nn <=obg->GetNbinsY();nn++)
index a880a4803cfb1495f91192645821fee67c0d8e66..1dca2b693f3b722f71a86e4986e29caec56e41f0 100644 (file)
@@ -259,9 +259,6 @@ AliFMDMCSharingFilter::Print(Option_t* option) const
   // Parameters:
   //    option Not used 
   //
-  char ind[gROOT->GetDirLevel()+1];
-  for (Int_t i = 0; i < gROOT->GetDirLevel(); i++) ind[i] = ' ';
-  ind[gROOT->GetDirLevel()] = '\0';
   AliFMDSharingFilter::Print(option);
   gROOT->IncreaseDirLevel();
   fTrackDensity.Print(option);
index 66b5f5444938452221ba178efd5c38102ce85e53..0cf1e6e6aa6eb3e7693124d8a0422090cf4920d3 100644 (file)
@@ -281,7 +281,7 @@ AliFMDMCTrackDensity::Calculate(const AliESDFMD&  input,
     Char_t   oR       = '\0';
     UShort_t nC       = 0;
     UShort_t nT       = 0;
-    Double_t oTheta   = 0;
+    // Double_t oTheta= 0;
     for (Int_t iTrRef = 0; iTrRef < nTrRef; iTrRef++) { 
       AliTrackReference* ref = particle->GetTrackReference(iTrRef);
       
@@ -364,7 +364,7 @@ AliFMDMCTrackDensity::Calculate(const AliESDFMD&  input,
        longest = iTrRef;
        angle   = ang;
       }
-      oTheta = ang;
+      // oTheta = ang;
     } // Loop over track references
     if (longest < 0) continue; // Nothing found
 
index 116072f3e1bcaed8c46b8d81d5c04a7d13113962..951d3b1660ad673981d380aef997b822ffabf777 100644 (file)
@@ -119,11 +119,12 @@ void AliForwardFlowTaskQC::UserCreateOutputObjects()
   fFlowUtil = new AliForwardFlowUtil(fOutputList);
   
   Double_t x[101] = { 0. };
-  Double_t etaMin = -6;
-  Double_t etaMax = 6;
+  // Double_t etaMin = -6;
+  // Double_t etaMax = 6;
 
-  // First we have a number of options for eta binning, also if it is not really eta, 
-  // but centrality or pt we want to do flow as a function of, then this is possible:
+  // First we have a number of options for eta binning, also if it is
+  // not really eta, but centrality or pt we want to do flow as a
+  // function of, then this is possible:
   if (fEtaBins == 5) {
     x[0] = 0.;
     x[1] = 1.;
@@ -131,16 +132,16 @@ void AliForwardFlowTaskQC::UserCreateOutputObjects()
     x[3] = 3.;
     x[4] = 4.5;
     x[5] = 6.0;
-    etaMin = 0;
-    etaMax = 6;
+    // etaMin = 0;
+    // etaMax = 6;
   }
 
   else if (fEtaBins == 100) { 
     for (Int_t e = 0; e<= 100; e++) {
       x[e] = e;
     }
-    etaMin = 0;
-    etaMax = 100;
+    // etaMin = 0;
+    // etaMax = 100;
   }
   
   else {
@@ -527,7 +528,7 @@ void AliForwardFlowTaskQC::Terminate(Option_t */*option*/)
   TList* vList = 0;
 
   // For flow calculations
-  Double_t two = 0, qc2 = 0, vnTwo = 0, four = 0, qc4 = 0, vnFour = 0
+  Double_t two = 0, qc2 = 0, /* vnTwo = 0, */ four = 0, qc4 = 0 /*, vnFour = 0*/
   Double_t twoPrime = 0, qc2Prime = 0, vnTwoDiff = 0, fourPrime = 0, qc4Prime = 0, vnFourDiff = 0;
   Double_t w2 = 0, w4 = 0, w2p = 0, w4p = 0;
   Double_t w2Two = 0, w2pTwoPrime = 0, w4Four = 0, w4pFourPrime = 0;
@@ -585,7 +586,7 @@ void AliForwardFlowTaskQC::Terminate(Option_t */*option*/)
             two = w2Two / w2;
             qc2 = two - TMath::Power(cosP1nPhi, 2) - TMath::Power(sinP1nPhi, 2);
             if (qc2 <= 0) continue;
-            vnTwo = TMath::Sqrt(qc2);
+            // vnTwo = TMath::Sqrt(qc2);
        //     if (!TMath::IsNaN(vnTwo*mult)) 
        //       cumulant2diffHist->Fill(eta, vnTwo, cumulantsHist->GetBinContent(0,vertexBin,0)); 
 
@@ -612,7 +613,7 @@ void AliForwardFlowTaskQC::Terminate(Option_t */*option*/)
                - 6.*TMath::Power((TMath::Power(cosP1nPhi,2.)+TMath::Power(sinP1nPhi,2.)),2.);
             
             if (qc4 >= 0) continue;
-            vnFour = TMath::Power(-qc4, 0.25);
+            // vnFour = TMath::Power(-qc4, 0.25);
        //     if (!TMath::IsNaN(vnFour*mult)) 
        //         cumulant4diffHist->Fill(eta, vnFour, cumulantsHist->GetBinContent(0,vertexBin,0));