#include "StandardLabels.C" void topologies(void) { TFile *f = new TFile("hd_root.root"); TH1D *topologies_a = (TH1D*)gROOT->FindObject("topologies_a"); TH1D *topologies_b = (TH1D*)gROOT->FindObject("topologies_b"); gStyle->SetPadBottomMargin(0.15); gStyle->SetPadRightMargin(0.2); TCanvas *c1 = new TCanvas("c1", "", 1350, 500); c1->SetTicks(); c1->SetGridy(); topologies_a->Draw(); topologies_b->Draw("same"); StandardLabels1D(topologies_a, "0.5^{o} #leq #theta_{#pm} #leq 10^{o}", "W_{#pi^{+}#pi^{-}} < 0.4 GeV/c^{2} E_{#pi^{+}#pi^{-}} in coherent peak", "generated events only", "NO PID (pion assumption)"); c1->SaveAs("topologies.pdf"); c1->SaveAs("topologies.png"); }