]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added selection step to check for photon clusters.
authorhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Sep 2012 09:53:23 +0000 (09:53 +0000)
committerhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Sep 2012 09:53:23 +0000 (09:53 +0000)
PWGGA/PHOSTasks/PHOS_PbPb/AliAnalysisTaskPi0Flow.cxx
PWGGA/PHOSTasks/PHOS_PbPb/macros/DrawPi0Flow.C

index 6bbe07d214fa1f538e89e62a1a6538afa5115c11..c0c4093555f0ebd3958f8f8e9f3837b09c4589d0 100644 (file)
@@ -582,6 +582,12 @@ void AliAnalysisTaskPi0Flow::UserExec(Option_t *)
   FillSelectedClusterHistograms();
   LogProgress(8);
 
+  if( ! fCaloPhotonsPHOS->GetEntriesFast() )
+    return;
+  else
+    LogSelection(6, fInternalRunNumber);
+
+
   // Step 9: Consider pi0 (photon/cluster) pairs.
   ConsiderPi0s();
   LogProgress(9);
index 1f47cb1701a332d573c96258d6254982fba81b7b..1ea12049a129334d1f0d9eada7d53aa725622579 100644 (file)
@@ -21,13 +21,14 @@ DrawPi0Flow(const TString filename = "Pi0Flow_000167920.root")
 
   //-----------------------------------------------------------------------------
   TCanvas *c1 = new TCanvas("c1","Event selection");
-  hev->GetXaxis()->SetRangeUser(0,5);
+  hev->GetXaxis()->SetRangeUser(0,6);
   hev->GetXaxis()->SetBinLabel(1,"Total");
   hev->GetXaxis()->SetBinLabel(2,"Has Vertex");
   hev->GetXaxis()->SetBinLabel(3,"abs(z_vertex) < 10.");
   hev->GetXaxis()->SetBinLabel(4,"Has Centrality");
   hev->GetXaxis()->SetBinLabel(5,"C. upper edge");
   hev->GetXaxis()->SetBinLabel(6,"C. lower edge");
+  hev->GetXaxis()->SetBinLabel(7,"Has PClusters");
   hev->SetYTitle("N_{events}");
   hev->GetYaxis()->SetTitleOffset(1.2);
   hev->Draw();