{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 11:27:00 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-0.3281559,0.2281506,45.62136,0.3668206); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.1594828); c1->SetTopMargin(0.04872881); c1->SetBottomMargin(0.161017); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t xAxis18[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 *timeEnergy2DHighEMECCSlot12_2__18 = new TH1D("timeEnergy2DHighEMECCSlot12_2__18","Fitted value of par[2]=Sigma",56, xAxis18); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(9,0.3220323); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(10,0.3168374); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(11,0.3190491); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(12,0.3111944); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(13,0.3095366); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(14,0.3034476); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(15,0.3035609); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(16,0.3016288); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(17,0.3005025); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(18,0.3008937); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(19,0.2977256); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(20,0.2919322); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(21,0.2947349); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(22,0.2934079); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(23,0.2931744); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(24,0.2898405); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(25,0.2897467); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(26,0.2873988); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(27,0.2857842); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(28,0.2864397); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(29,0.2854356); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(30,0.2865714); timeEnergy2DHighEMECCSlot12_2__18->SetBinContent(31,0.2877007); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(9,0.00358542); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(10,0.002983825); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(11,0.002605892); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(12,0.00223175); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(13,0.002029614); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(14,0.001800224); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(15,0.00162203); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(16,0.001488849); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(17,0.001451853); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(18,0.001399938); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(19,0.001332142); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(20,0.001298582); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(21,0.001234191); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(22,0.00118178); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(23,0.001205169); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(24,0.001159485); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(25,0.001167174); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(26,0.00112515); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(27,0.001139369); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(28,0.001203148); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(29,0.001518211); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(30,0.002408724); timeEnergy2DHighEMECCSlot12_2__18->SetBinError(31,0.006421713); timeEnergy2DHighEMECCSlot12_2__18->SetMinimum(0.2504788); timeEnergy2DHighEMECCSlot12_2__18->SetMaximum(0.3600633); timeEnergy2DHighEMECCSlot12_2__18->SetEntries(23); timeEnergy2DHighEMECCSlot12_2__18->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6465517,0.720339,0.8534483,0.8940678,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("timeEnergy2DHighEMECCSlot12_2"); text->SetTextSize(0.02663842); text = ptstats->AddText("Entries = 23 "); text = ptstats->AddText("Mean = 23.27"); text = ptstats->AddText("RMS = 6.658"); text = ptstats->AddText("p0 = 2.171 #pm 0.044 "); text = ptstats->AddText("p1 = 0.2794 #pm 0.0007 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); timeEnergy2DHighEMECCSlot12_2__18->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(timeEnergy2DHighEMECCSlot12_2__18); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",7,41); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(2); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(40.4501); PrevFitTMP->SetNDF(21); 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.17132); PrevFitTMP->SetParError(0,0.04439419); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.279368); PrevFitTMP->SetParError(1,0.0007001893); PrevFitTMP->SetParLimits(1,0,0); timeEnergy2DHighEMECCSlot12_2__18->GetListOfFunctions()->Add(PrevFitTMP); timeEnergy2DHighEMECCSlot12_2__18->SetLineWidth(2); timeEnergy2DHighEMECCSlot12_2__18->SetMarkerStyle(20); timeEnergy2DHighEMECCSlot12_2__18->SetMarkerSize(1.2); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetTitle("Cell Energy [GeV]"); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetRange(4,37); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetXaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot12_2__18->GetYaxis()->SetTitle("Timing Resolution [ns]"); timeEnergy2DHighEMECCSlot12_2__18->GetYaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot12_2__18->GetYaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetYaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetYaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot12_2__18->GetZaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot12_2__18->GetZaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetZaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot12_2__18->GetZaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot12_2__18->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }