Fork me on GitHub

source: svn/trunk/paper/sourceCode/performances_size.C@ 677

Last change on this file since 677 was 207, checked in by Xavier Rouby, 16 years ago

performance plots

File size: 2.8 KB
Line 
1{
2//=========Macro generated from canvas: c1/c1
3//========= (Mon Jan 26 21:37:50 2009) by ROOT version5.18/00
4 TCanvas *c1 = new TCanvas("c1", "c1",4,27,600,600);
5 gStyle->SetOptStat(0);
6 c1->Range(-5.097561,-123.1171,55.26829,1324.322);
7 c1->SetFillColor(0);
8 c1->SetBorderMode(0);
9 c1->SetBorderSize(2);
10 c1->SetTickx();
11 c1->SetTicky();
12 c1->SetLeftMargin(0.13);
13 c1->SetRightMargin(0.05);
14 c1->SetTopMargin(0.05);
15 c1->SetBottomMargin(0.13);
16 c1->SetFrameFillStyle(0);
17 c1->SetFrameBorderMode(0);
18 c1->SetFrameFillStyle(0);
19 c1->SetFrameBorderMode(0);
20
21 TMultiGraph *multigraph = new TMultiGraph();
22 multigraph->SetName("");
23 multigraph->SetTitle("");
24
25 TGraph *graph = new TGraph(6);
26 graph->SetName("Graph");
27 graph->SetTitle("Graph");
28 graph->SetFillColor(1);
29 graph->SetMarkerStyle(21);
30 graph->SetPoint(0,5,119);
31 graph->SetPoint(1,10,236);
32 graph->SetPoint(2,20,496);
33 graph->SetPoint(3,30,702);
34 graph->SetPoint(4,40,936);
35 graph->SetPoint(5,50,1198);
36
37 TF1 *fit = new TF1("fit","[0]+[1]*x",5,50);
38 fit->SetFillColor(19);
39 fit->SetFillStyle(0);
40 fit->SetMarkerStyle(20);
41 fit->SetLineWidth(1);
42 fit->SetLineStyle(2);
43 fit->SetChisquare(848.7014);
44 fit->GetXaxis()->SetLabelFont(42);
45 fit->GetXaxis()->SetLabelOffset(0.007);
46 fit->GetXaxis()->SetTitleSize(0.05);
47 fit->GetXaxis()->SetTitleOffset(0.9);
48 fit->GetXaxis()->SetTitleFont(42);
49 fit->GetYaxis()->SetLabelFont(42);
50 fit->GetYaxis()->SetLabelOffset(0.007);
51 fit->GetYaxis()->SetTitleSize(0.05);
52 fit->GetYaxis()->SetTitleOffset(1.05);
53 fit->GetYaxis()->SetTitleFont(42);
54 fit->SetParameter(0,2.526027);
55 fit->SetParError(0,13.0878);
56 fit->SetParLimits(0,0,0);
57 fit->SetParameter(1,23.68932);
58 fit->SetParError(1,0.4312966);
59 fit->SetParLimits(1,0,0);
60 graph->GetListOfFunctions()->Add(fit);
61 multigraph->Add(graph,"P");
62 multigraph->Draw("A");
63 multigraph->GetXaxis()->SetTitle("N (kevts)");
64 multigraph->GetXaxis()->SetLabelFont(42);
65 multigraph->GetXaxis()->SetLabelOffset(0.007);
66 multigraph->GetXaxis()->SetTitleSize(0.05);
67 multigraph->GetXaxis()->SetTitleOffset(0.9);
68 multigraph->GetXaxis()->SetTitleFont(42);
69 multigraph->GetYaxis()->SetTitle("File size(MB)");
70 multigraph->GetYaxis()->SetLabelFont(42);
71 multigraph->GetYaxis()->SetLabelOffset(0.007);
72 multigraph->GetYaxis()->SetTitleSize(0.05);
73 multigraph->GetYaxis()->SetTitleOffset(1.31);
74 multigraph->GetYaxis()->SetTitleFont(42);
75
76 TPaveText *pt = new TPaveText(5,944,35,1200,"r");
77 pt->SetBorderSize(0);
78 pt->SetFillColor(19);
79 pt->SetFillStyle(0);
80 pt->SetTextAlign(12);
81 pt->SetTextFont(42);
82 TText *text = pt->AddText("Delphes performances");
83 text = pt->AddText("1 kevts in 23.69 MB");
84 text = pt->AddText("pp #rightarrow t #bar{t} X");
85 pt->Draw();
86 c1->Modified();
87 c1->cd();
88 c1->SetSelected(c1);
89}
Note: See TracBrowser for help on using the repository browser.