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