]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
displaying bg histograms (Michele)
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Dec 2009 14:42:52 +0000 (14:42 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Dec 2009 14:42:52 +0000 (14:42 +0000)
PWG0/eventStats/show.C

index 2321f0370aa5588c888f0959af05bf208e82ab35..6aab3de5aede4a49ffdc8acb7bba13017fa5bf94 100644 (file)
@@ -19,4 +19,28 @@ void show(const char* fileName = "event_stat.root")
   hist->SetStats(0);
   hist->Draw("TEXT");
   c->SaveAs("bc.png");
+
+  // BG
+  gStyle->SetStatX(0.87);
+  gStyle->SetStatY(0.93);
+
+  TH2F * hBB  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1B-ABCE-NOPF-ALL");
+  TH2F * hBE  = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1C-ABCE-NOPF-ALL");
+  TH2F * hBEA = (TH2F*) gDirectory->Get("physics_selection/background_identification/h_CINT1A-ABCE-NOPF-ALL");
+
+  if(!hBB || !hBE || !hBEA) {
+    printf("WARNING: no BG histos\n");
+  }
+  else
+  {
+    hBE->Add(hBEA);
+    hBE->SetTitle("CINT1A-ABCE-NOPF-ALL + CINT1C-ABCE-NOPF-ALL");
+    c = new TCanvas("cbg","cbg",800,400);
+    c->Divide(2,1);
+    c->cd(1);
+    hBB->Draw("colz");
+    c->cd(2);
+    hBE->Draw("colz");
+    c->Print("bg.png");
+  }
 }