{ //=========Macro generated from canvas: c1/ //========= (Fri Nov 18 18:37:57 2011) by ROOT version5.28/00 TCanvas *c1 = new TCanvas("c1", "",0,22,800,600); c1->Range(46.87499,-3.75,803.125,33.75); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName("mg"); multigraph->SetTitle("MPV_MPP_radComp"); TGraphErrors *gre = new TGraphErrors(2); gre->SetName("t_MPP1_July_deg0_fl0e15"); gre->SetTitle("MPP1_July, #phi = 0^{#circ}"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetMarkerStyle(21); gre->SetPoint(0,150,19.7764); gre->SetPointError(0,0,1.066661); gre->SetPoint(1,200,19.68853); gre->SetPointError(1,0,1.062589); TH1F *t_MPP1_July_deg0_fl0e151__1 = new TH1F("t_MPP1_July_deg0_fl0e151__1","MPP1_July, #phi = 0^{#circ}",100,145,205); t_MPP1_July_deg0_fl0e151__1->SetMinimum(18.40422); t_MPP1_July_deg0_fl0e151__1->SetMaximum(21.06478); t_MPP1_July_deg0_fl0e151__1->SetDirectory(0); t_MPP1_July_deg0_fl0e151__1->SetStats(0); gre->SetHistogram(t_MPP1_July_deg0_fl0e151); multigraph->Add(gre,""); gre = new TGraphErrors(5); gre->SetName("t_MPP1_October_deg0_fl1e15"); gre->SetTitle("MPP1_October, #phi = 0^{#circ}"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetMarkerStyle(22); gre->SetPoint(0,250,6.961735); gre->SetPointError(0,0,0.5302494); gre->SetPoint(1,350,8.937343); gre->SetPointError(1,0,0.5997418); gre->SetPoint(2,500,12.6952); gre->SetPointError(2,0,0.7502801); gre->SetPoint(3,700,16.4929); gre->SetPointError(3,0,0.9165366); gre->SetPoint(4,550,13.7293); gre->SetPointError(4,0,0.7945024); TH1F *t_MPP1_October_deg0_fl1e152__2 = new TH1F("t_MPP1_October_deg0_fl1e152__2","MPP1_October, #phi = 0^{#circ}",100,205,745); t_MPP1_October_deg0_fl1e152__2->SetMinimum(5.33369); t_MPP1_October_deg0_fl1e152__2->SetMaximum(18.50723); t_MPP1_October_deg0_fl1e152__2->SetDirectory(0); t_MPP1_October_deg0_fl1e152__2->SetStats(0); gre->SetHistogram(t_MPP1_October_deg0_fl1e152); multigraph->Add(gre,""); gre = new TGraphErrors(2); gre->SetName("t_MPP2_July_deg0_fl0e15"); gre->SetTitle("MPP2_July, #phi = 0^{#circ}"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetMarkerColor(2); gre->SetMarkerStyle(21); gre->SetPoint(0,150,18.10161); gre->SetPointError(0,0,0.9895304); gre->SetPoint(1,200,21.92861); gre->SetPointError(1,0,1.167116); TH1F *t_MPP2_July_deg0_fl0e153__3 = new TH1F("t_MPP2_July_deg0_fl0e153__3","MPP2_July, #phi = 0^{#circ}",100,145,205); t_MPP2_July_deg0_fl0e153__3->SetMinimum(16.51371); t_MPP2_July_deg0_fl0e153__3->SetMaximum(23.69409); t_MPP2_July_deg0_fl0e153__3->SetDirectory(0); t_MPP2_July_deg0_fl0e153__3->SetStats(0); gre->SetHistogram(t_MPP2_July_deg0_fl0e153); multigraph->Add(gre,""); gre = new TGraphErrors(2); gre->SetName("t_MPP2_October_deg0_fl1e15"); gre->SetTitle("MPP2_October, #phi = 0^{#circ}"); gre->SetFillColor(1); gre->SetFillStyle(0); gre->SetMarkerColor(2); gre->SetMarkerStyle(22); gre->SetPoint(0,500,11.8609); gre->SetPointError(0,0,0.7153338); gre->SetPoint(1,550,13.65111); gre->SetPointError(1,0,0.7911271); TH1F *t_MPP2_October_deg0_fl1e154__4 = new TH1F("t_MPP2_October_deg0_fl1e154__4","MPP2_October, #phi = 0^{#circ}",100,495,555); t_MPP2_October_deg0_fl1e154__4->SetMinimum(10.8159); t_MPP2_October_deg0_fl1e154__4->SetMaximum(14.7719); t_MPP2_October_deg0_fl1e154__4->SetDirectory(0); t_MPP2_October_deg0_fl1e154__4->SetStats(0); gre->SetHistogram(t_MPP2_October_deg0_fl1e154); multigraph->Add(gre,""); multigraph->Draw("AP"); multigraph->GetXaxis()->SetTitle("Bias [V]"); multigraph->GetYaxis()->SetTitle("MPV [ke]"); TPaveText *pt = new TPaveText(0.01,0.9404546,0.3629146,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(1); pt->SetFillColor(0); TText *text = pt->AddText("MPV_MPP_radComp"); pt->Draw(); TLegend *leg = new TLegend(0.55,0.66,0.9,0.85,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("t_MPP1_July_deg0_fl0e15","MPP1_July, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP1_October_deg0_fl1e15","MPP1_October, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP2_July_deg0_fl0e15","MPP2_July, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP2_October_deg0_fl1e15","MPP2_October, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); leg->Draw(); leg = new TLegend(0.55,0.66,0.9,0.85,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(62); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); entry=leg->AddEntry("t_MPP1_July_deg0_fl0e15","MPP1_July, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP1_October_deg0_fl1e15","MPP1_October, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP2_July_deg0_fl0e15","MPP2_July, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("t_MPP2_October_deg0_fl1e15","MPP2_October, #phi = 0^{#circ}","lpf"); entry->SetFillColor(1); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(22); entry->SetMarkerSize(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }