{ //=========Macro generated from canvas: c45/c45 //========= (Wed Jun 11 12:59:14 2014) by ROOT version5.34/01 TCanvas *c45 = new TCanvas("c45", "c45",0,22,1000,724); c45->Range(677.25,18.77425,789.75,114.3288); c45->SetFillColor(0); c45->SetBorderMode(0); c45->SetBorderSize(2); c45->SetFrameBorderMode(0); c45->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(5); gre->SetName("Graph"); gre->SetTitle("Efficiency GE1/1-IV vs Current"); gre->SetFillColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.5); gre->SetPoint(0,696,34.7); gre->SetPointError(0,0,0); gre->SetPoint(1,714,67.9); gre->SetPointError(1,0,0); gre->SetPoint(2,733,87.2); gre->SetPointError(2,0,0); gre->SetPoint(3,752,97.4); gre->SetPointError(3,0,0); gre->SetPoint(4,771,98.4); gre->SetPointError(4,0,0.003); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Efficiency GE1/1-IV vs Current",100,688.5,778.5); Graph_Graph1->SetMinimum(28.3297); Graph_Graph1->SetMaximum(104.7733); Graph_Graph1->SetDirectory(0); Graph_Graph1->SetStats(0); Int_t ci; // for color index setting ci = TColor::GetColor("#000099"); Graph_Graph1->SetLineColor(ci); Graph_Graph1->GetXaxis()->SetTitle("Current [#muA]"); Graph_Graph1->GetXaxis()->SetLabelFont(42); Graph_Graph1->GetXaxis()->SetLabelSize(0.035); Graph_Graph1->GetXaxis()->SetTitleSize(0.035); Graph_Graph1->GetXaxis()->SetTitleFont(42); Graph_Graph1->GetYaxis()->SetTitle("Efficiency [%]"); Graph_Graph1->GetYaxis()->SetLabelFont(42); Graph_Graph1->GetYaxis()->SetLabelSize(0.035); Graph_Graph1->GetYaxis()->SetTitleSize(0.035); Graph_Graph1->GetYaxis()->SetTitleFont(42); Graph_Graph1->GetZaxis()->SetLabelFont(42); Graph_Graph1->GetZaxis()->SetLabelSize(0.035); Graph_Graph1->GetZaxis()->SetTitleSize(0.035); Graph_Graph1->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1); gre->Draw("alp"); TPaveText *pt = new TPaveText(0.15,0.9345062,0.85,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *text = pt->AddText("Efficiency GE1/1-IV vs Current"); pt->Draw(); c45->Modified(); c45->cd(); c45->SetSelected(c45); TPaveText *pt1 = new TPaveText(0.3,0.8,0.7,0.9,"blNDC"); //pt1->AddText("Thr= 12/15 VFAT units"); pt1->AddText("Gas mixture: Ar/CO_{2}/CF_{4}(45:15:40)"); pt1->SetLabel("GE1/1-IV"); pt1->Draw(); }