#include "StandardLabels.C" void eff_vs_p_vs_theta_wb(const char *suffix="") { gROOT->Reset(); gStyle->SetPalette(1); gStyle->SetPadRightMargin(0.16); TCanvas *c1 = new TCanvas("c1"); c1->SetTicks(); TFile *f = new TFile("hd_res_charged.root"); TH2D *h = (TH2D*)gROOT->FindObject("eff_vs_p_vs_theta_wb"); h->SetTitle("#pi^{+} Wire-based efficiency vs. p_{tot} and #theta"); h->GetXaxis()->SetRangeUser(0.0, 165.0); h->GetZaxis()->SetRangeUser(0.90, 1.0); h->GetZaxis()->SetTitleOffset(1.35); h->SetZTitle("Wire-based tracking Efficiency (#chi^{2}/N_{dof} < 5.0)"); h->Draw("colz"); StandardLabels2D(h); char fname[256]; sprintf(fname, "eff_vs_p_vs_theta%s_wb.gif", suffix); c1->SaveAs(fname); sprintf(fname, "eff_vs_p_vs_theta%s_wb.pdf", suffix); c1->SaveAs(fname); }