{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 13:13:45 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.67442,0.2288465,68.25581,0.3575927); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.1566092); c1->SetTopMargin(0.05720339); c1->SetBottomMargin(0.1525424); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t xAxis51[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 *timeEnergy2DHighEMECCSlot13_2__45 = new TH1D("timeEnergy2DHighEMECCSlot13_2__45","Fitted value of par[2]=Sigma",56, xAxis51); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(14,0.3308825); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(15,0.2686106); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(16,0.2734919); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(17,0.3023037); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(18,0.3195743); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(19,0.30606); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(20,0.284916); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(21,0.3215814); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(22,0.2893832); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(23,0.3060544); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(24,0.3011806); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(25,0.3087262); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(26,0.3001027); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(27,0.3121347); timeEnergy2DHighEMECCSlot13_2__45->SetBinContent(28,0.3163738); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(14,0.01664354); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(15,0.01300042); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(16,0.0112088); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(17,0.01047204); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(18,0.01029736); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(19,0.009318559); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(20,0.00818518); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(21,0.008322169); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(22,0.007173277); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(23,0.007417613); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(24,0.006892059); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(25,0.007404973); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(26,0.006845315); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(27,0.008653005); timeEnergy2DHighEMECCSlot13_2__45->SetBinError(28,0.02018382); timeEnergy2DHighEMECCSlot13_2__45->SetMinimum(0.2484858); timeEnergy2DHighEMECCSlot13_2__45->SetMaximum(0.350228); timeEnergy2DHighEMECCSlot13_2__45->SetEntries(15); timeEnergy2DHighEMECCSlot13_2__45->SetDirectory(0); TF1 *res = new TF1("res","sqrt(sq([0]/x)+sq([1]))",10,40); res->SetFillColor(19); res->SetFillStyle(0); res->SetMarkerStyle(20); res->SetMarkerSize(1.2); res->SetLineColor(2); res->SetLineWidth(3); res->SetChisquare(35.25901); res->SetNDF(13); res->GetXaxis()->SetLabelFont(42); res->GetXaxis()->SetLabelSize(0.05); res->GetXaxis()->SetTitleSize(0.05); res->GetXaxis()->SetTitleFont(42); res->GetYaxis()->SetLabelFont(42); res->GetYaxis()->SetLabelSize(0.05); res->GetYaxis()->SetTitleSize(0.05); res->GetYaxis()->SetTitleFont(42); res->SetParameter(0,0.0002724193); res->SetParError(0,0.9228711); res->SetParLimits(0,0,0); res->SetParameter(1,0.301931); res->SetParError(1,0.002288361); res->SetParLimits(1,0,0); timeEnergy2DHighEMECCSlot13_2__45->GetListOfFunctions()->Add(res); TPaveStats *ptstats = new TPaveStats(0.6135057,0.7351695,0.841954,0.9067797,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("timeEnergy2DHighEMECCSlot13_2"); text->SetTextSize(0.02631356); text = ptstats->AddText("Entries = 15 "); text = ptstats->AddText("Mean = 24.56"); text = ptstats->AddText("RMS = 4.335"); text = ptstats->AddText("p0 = 0.0002724 #pm 0.9228711 "); text = ptstats->AddText("p1 = 0.3019 #pm 0.0023 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); timeEnergy2DHighEMECCSlot13_2__45->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(timeEnergy2DHighEMECCSlot13_2__45); timeEnergy2DHighEMECCSlot13_2__45->SetLineWidth(2); timeEnergy2DHighEMECCSlot13_2__45->SetMarkerStyle(20); timeEnergy2DHighEMECCSlot13_2__45->SetMarkerSize(1.2); timeEnergy2DHighEMECCSlot13_2__45->GetXaxis()->SetTitle("Cell Energy [GeV]"); timeEnergy2DHighEMECCSlot13_2__45->GetXaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot13_2__45->GetXaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetXaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetXaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot13_2__45->GetYaxis()->SetTitle("Timing Resolution [ns]"); timeEnergy2DHighEMECCSlot13_2__45->GetYaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot13_2__45->GetYaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetYaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetYaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot13_2__45->GetZaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot13_2__45->GetZaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetZaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot13_2__45->GetZaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot13_2__45->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }