]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fixes. Mostly for diagnostics in FillHists function.
authorhansena <hansena@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Feb 2012 15:34:20 +0000 (15:34 +0000)
committerhansena <hansena@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Feb 2012 15:34:20 +0000 (15:34 +0000)
PWGLF/FORWARD/analysis2/AliFMDEventPlaneFinder.cxx

index 31ce9cb3051487d1e541c5058d4ad02a2a847447..84f3e07a5a3f6749f700d89c025dc7a127a0efff 100644 (file)
@@ -373,7 +373,7 @@ AliFMDEventPlaneFinder::CalcQVectors(TH2D* h, TH1D* eHist)
       if (fUsePhiWeights) weight *= GetPhiWeight(e, p);
       // fix for FMD1 hole
       if (e > 168 && p == 14) {
-       h->GetBinContent(e, 4);
+       weight = h->GetBinContent(e, 4);
         if (fUsePhiWeights) weight *= GetPhiWeight(e, 4);
       }
       fHistPhiDist->Fill(eta, phi, weight);
@@ -442,7 +442,7 @@ AliFMDEventPlaneFinder::FillHists(AliAODForwardEP* fmdEP)
   // TPC comparison
   AliEventplane* ep = fEvent->GetEventplane();
   Double_t tpcEP = -1;
-  if (ep) ep->GetEventplane("Q");
+  if (ep) tpcEP = ep->GetEventplane("Q");
 
   Double_t diffTPC = fmdEPt - tpcEP;
 
@@ -458,7 +458,7 @@ AliFMDEventPlaneFinder::FillHists(AliAODForwardEP* fmdEP)
 
   // VZERO comparison
   Double_t vzeroEP = -1;
-  if (ep) ep->GetEventplane("V0");
+  if (ep) vzeroEP = ep->GetEventplane("V0", fEvent, 2);
 
   Double_t diffVZERO = fmdEPt - vzeroEP;