{ //=========Macro generated from canvas: c45/c45 //========= (Tue Nov 4 11:27:43 2014) by ROOT version5.34/21 //TCanvas *c45 = new TCanvas("c45", "c45",50,44,589,512); TCanvas *c45 = new TCanvas("c45", "c45",0,22,1000,724); c45->Range(3750.376,18.62947,4350.226,114.3288); c45->SetFillColor(0); c45->SetBorderMode(0); c45->SetBorderSize(2); c45->SetFrameBorderMode(0); c45->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(5); gre->SetName("Graph0"); gre->SetTitle("Efficiency GE1/1-IV vs HV"); gre->SetFillColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.5); gre->SetPoint(0,3850,34.7); gre->SetPointError(0,0,0); gre->SetPoint(1,3950,67.9); gre->SetPointError(1,0,0); gre->SetPoint(2,4050,87.2); gre->SetPointError(2,0,0); gre->SetPoint(3,4150,97.4); gre->SetPointError(3,0,0); gre->SetPoint(4,4250,98.4); gre->SetPointError(4,0,0.003); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Efficiency GE1/1-IV vs HV",100,3810,4290); 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 TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Graph_Graph1->SetLineColor(ci); Graph_Graph1->GetXaxis()->SetTitle("High Voltage[V]"); 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.1847791,0.9345062,0.8152209,0.995,"blNDC"); 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 HV"); pt->Draw(); c45->Modified(); c45->cd(); c45->SetSelected(c45); TPaveText *pt1 = new TPaveText(0.3,0.8,0.7,0.9,"blNDC"); //TPaveText *pt1 = new TPaveText(0.3,0.8,0.7,0.9); //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(); }