]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Folder location for lego train added, and update to hTotSelEvents plotting.
authorhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Sep 2012 12:46:24 +0000 (12:46 +0000)
committerhqvigsta <hqvigsta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Sep 2012 12:46:24 +0000 (12:46 +0000)
PWGGA/PHOSTasks/PHOS_PbPb/macros/DrawPi0Flow.C
PWGGA/PHOSTasks/PHOS_PbPb/macros/MakeMmixPi0.C

index 3c74cfad19ebe68fa8e30e3c85451630320d87e4..1f47cb1701a332d573c96258d6254982fba81b7b 100644 (file)
@@ -4,7 +4,8 @@ DrawPi0Flow(const TString filename = "Pi0Flow_000167920.root")
 
   gStyle->SetOptStat(0);
   TFile * f = new TFile(filename) ;
-  TList *histoList = (TList*)f->Get("PHOSPi0Flow");
+  //TList *histoList = (TList*)f->Get("PHOSPi0Flow");
+  TList *histoList = (TList*)f->Get("PHOSPi0Flow/PHOSPi0FlowCoutput1"); // lego train
 
   TH1F *hev        = (TH1F*)histoList->FindObject("hTotSelEvents") ;
   TH2F* hZvertex   = (TH2F*)histoList->FindObject("hZvertex");
@@ -20,19 +21,15 @@ DrawPi0Flow(const TString filename = "Pi0Flow_000167920.root")
 
   //-----------------------------------------------------------------------------
   TCanvas *c1 = new TCanvas("c1","Event selection");
+  hev->GetXaxis()->SetRangeUser(0,5);
   hev->GetXaxis()->SetBinLabel(1,"Total");
-  hev->GetXaxis()->SetBinLabel(2,"Total");
-  hev->GetXaxis()->SetBinLabel(3,"Goog vertex");
-  hev->GetXaxis()->SetBinLabel(4,"No pileup");
-  hev->GetXaxis()->SetBinLabel(5,"Good centrality");
-  hev->GetXaxis()->SetBinLabel(6,"Good RP");
-  hev->GetXaxis()->SetBinLabel(7,"MC");
-  hev->GetXaxis()->SetBinLabel(8,"QA filled");
-  hev->GetXaxis()->SetBinLabel(9,"Clusters filled");
-  hev->GetXaxis()->SetBinLabel(10,"Pi0 filled");
-  hev->GetXaxis()->SetBinLabel(11,"Mixed filled");
-  hev->GetXaxis()->SetBinLabel(12,"Lists updated");
+  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->SetYTitle("N_{events}");
+  hev->GetYaxis()->SetTitleOffset(1.2);
   hev->Draw();
   c1->Print("PHOS_EvSel.eps");
 
index 2c3036017299625cd0eccc9805836706ea005263..0121040ddc7223978e2e2497039bb3abc8f6d3e1 100644 (file)
@@ -10,7 +10,9 @@ void MakeMmixPi0(const TString filename = "Pi0Flow_000167920.root",
   //Fit Real/Mixed ratio, normalize Mixed and subtract it from Real
 
   TFile * f = new TFile(filename) ;
-  TList *histoList = (TList*)f->Get("PHOSPi0Flow");
+  //TList *histoList = (TList*)f->Get("PHOSPi0Flow");
+  TList *histoList = (TList*)f->Get("PHOSPi0Flow/PHOSPi0FlowCoutput1"); // lego train
+
   char key[125] ;
 
   TH1F * hev = (TH1F*)histoList->FindObject("hTotSelEvents") ;