{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 12:59:26 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.97297,-0.1828873,68.10811,0.9601584); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t xAxis35[57] = {0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60}; TH1D *energyGraphEmec = new TH1D("energyGraphEmec","HIGH gain, All EMEC",56, xAxis35); energyGraphEmec->SetBinContent(2,0.4365632); energyGraphEmec->SetBinContent(3,0.4083935); energyGraphEmec->SetBinContent(4,0.4003509); energyGraphEmec->SetBinContent(5,0.3833027); energyGraphEmec->SetBinContent(6,0.3699718); energyGraphEmec->SetBinContent(7,0.3630141); energyGraphEmec->SetBinContent(8,0.3609337); energyGraphEmec->SetBinContent(9,0.3517003); energyGraphEmec->SetBinContent(10,0.3474867); energyGraphEmec->SetBinContent(11,0.3470013); energyGraphEmec->SetBinContent(12,0.3410936); energyGraphEmec->SetBinContent(13,0.3350664); energyGraphEmec->SetBinContent(14,0.3311522); energyGraphEmec->SetBinContent(15,0.3296424); energyGraphEmec->SetBinContent(16,0.3279822); energyGraphEmec->SetBinContent(17,0.3227239); energyGraphEmec->SetBinContent(18,0.3216447); energyGraphEmec->SetBinContent(19,0.3183645); energyGraphEmec->SetBinContent(20,0.3209861); energyGraphEmec->SetBinContent(21,0.3201928); energyGraphEmec->SetBinContent(22,0.3163813); energyGraphEmec->SetBinContent(23,0.3099719); energyGraphEmec->SetBinContent(24,0.3117986); energyGraphEmec->SetBinContent(25,0.3126261); energyGraphEmec->SetBinContent(26,0.3092777); energyGraphEmec->SetBinContent(27,0.3052943); energyGraphEmec->SetBinContent(28,0.3059891); energyGraphEmec->SetBinContent(29,0.3076285); energyGraphEmec->SetBinContent(30,0.3120354); energyGraphEmec->SetBinContent(31,0.3125528); energyGraphEmec->SetBinContent(32,0.3173925); energyGraphEmec->SetBinContent(33,0.3140105); energyGraphEmec->SetBinContent(34,0.3171572); energyGraphEmec->SetBinContent(35,0.3137797); energyGraphEmec->SetBinContent(36,0.3154878); energyGraphEmec->SetBinContent(37,0.3160733); energyGraphEmec->SetBinContent(38,0.3008641); energyGraphEmec->SetBinContent(39,0.3313809); energyGraphEmec->SetBinContent(40,0.3037594); energyGraphEmec->SetBinContent(41,0.3134784); energyGraphEmec->SetBinContent(50,0.3412712); energyGraphEmec->SetBinContent(53,0.2695578); energyGraphEmec->SetBinContent(57,0.2730232); energyGraphEmec->SetBinError(2,0.006901291); energyGraphEmec->SetBinError(3,0.005104576); energyGraphEmec->SetBinError(4,0.003750586); energyGraphEmec->SetBinError(5,0.003103308); energyGraphEmec->SetBinError(6,0.002719765); energyGraphEmec->SetBinError(7,0.002434754); energyGraphEmec->SetBinError(8,0.002434698); energyGraphEmec->SetBinError(9,0.002187868); energyGraphEmec->SetBinError(10,0.002013281); energyGraphEmec->SetBinError(11,0.001960336); energyGraphEmec->SetBinError(12,0.001858329); energyGraphEmec->SetBinError(13,0.001806612); energyGraphEmec->SetBinError(14,0.001744237); energyGraphEmec->SetBinError(15,0.001692351); energyGraphEmec->SetBinError(16,0.001646248); energyGraphEmec->SetBinError(17,0.00162966); energyGraphEmec->SetBinError(18,0.001590098); energyGraphEmec->SetBinError(19,0.001548563); energyGraphEmec->SetBinError(20,0.001604244); energyGraphEmec->SetBinError(21,0.00155351); energyGraphEmec->SetBinError(22,0.001550071); energyGraphEmec->SetBinError(23,0.001529458); energyGraphEmec->SetBinError(24,0.001522933); energyGraphEmec->SetBinError(25,0.00149885); energyGraphEmec->SetBinError(26,0.001480591); energyGraphEmec->SetBinError(27,0.001534795); energyGraphEmec->SetBinError(28,0.001618139); energyGraphEmec->SetBinError(29,0.001741277); energyGraphEmec->SetBinError(30,0.001996899); energyGraphEmec->SetBinError(31,0.002225882); energyGraphEmec->SetBinError(32,0.002670594); energyGraphEmec->SetBinError(33,0.003026725); energyGraphEmec->SetBinError(34,0.00364055); energyGraphEmec->SetBinError(35,0.004279208); energyGraphEmec->SetBinError(36,0.004873383); energyGraphEmec->SetBinError(37,0.00541188); energyGraphEmec->SetBinError(38,0.006014342); energyGraphEmec->SetBinError(39,0.009205443); energyGraphEmec->SetBinError(40,0.01127052); energyGraphEmec->SetBinError(41,0.01448481); energyGraphEmec->SetBinError(50,0.02454644); energyGraphEmec->SetBinError(53,0.01929401); energyGraphEmec->SetBinError(57,0.01213112); energyGraphEmec->SetEntries(43); energyGraphEmec->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6221264,0.75,0.841954,0.904661,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("energyGraphEmec"); text->SetTextSize(0.02371469); text = ptstats->AddText("Entries = 43 "); text = ptstats->AddText("Mean = 25.5"); text = ptstats->AddText("RMS = 13.11"); text = ptstats->AddText("p0 = 2.009 #pm 0.019 "); text = ptstats->AddText("p1 = 0.3068 #pm 0.0005 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); energyGraphEmec->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(energyGraphEmec); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",0,60); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(2); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(292.7397); PrevFitTMP->SetNDF(40); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,2.008537); PrevFitTMP->SetParError(0,0.01915568); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3068133); PrevFitTMP->SetParError(1,0.0004718537); PrevFitTMP->SetParLimits(1,0,0); energyGraphEmec->GetListOfFunctions()->Add(PrevFitTMP); energyGraphEmec->SetLineWidth(2); energyGraphEmec->SetMarkerStyle(20); energyGraphEmec->SetMarkerSize(1.2); energyGraphEmec->GetXaxis()->SetTitle("Cell Energy [GeV]"); energyGraphEmec->GetXaxis()->SetLabelFont(42); energyGraphEmec->GetXaxis()->SetLabelSize(0.05); energyGraphEmec->GetXaxis()->SetTitleSize(0.05); energyGraphEmec->GetXaxis()->SetTitleFont(42); energyGraphEmec->GetYaxis()->SetTitle("Timing Resolution [ns]"); energyGraphEmec->GetYaxis()->SetLabelFont(42); energyGraphEmec->GetYaxis()->SetLabelSize(0.05); energyGraphEmec->GetYaxis()->SetTitleSize(0.05); energyGraphEmec->GetYaxis()->SetTitleFont(42); energyGraphEmec->GetZaxis()->SetLabelFont(42); energyGraphEmec->GetZaxis()->SetLabelSize(0.05); energyGraphEmec->GetZaxis()->SetTitleSize(0.05); energyGraphEmec->GetZaxis()->SetTitleFont(42); energyGraphEmec->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }