{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 13:11:04 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.67442,-0.1522431,68.25581,0.8457951); 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 xAxis48[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 *timeEnergy2DHighEMECCSlot10_2__42 = new TH1D("timeEnergy2DHighEMECCSlot10_2__42","Fitted value of par[2]=Sigma",56, xAxis48); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(2,0.4346533); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(3,0.4133358); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(4,0.3926486); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(5,0.3633839); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(6,0.3590402); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(7,0.3531958); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(8,0.3586179); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(9,0.3471364); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(10,0.3472709); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(11,0.3441834); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(12,0.3453336); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(13,0.3378112); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(14,0.3363696); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(15,0.3344889); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(16,0.3372696); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(17,0.334942); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(18,0.3299391); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(19,0.3288619); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(20,0.3315179); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(21,0.3264845); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(22,0.3289422); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(23,0.3247579); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(24,0.3191758); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(25,0.3234311); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(26,0.3266908); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(27,0.3171624); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(28,0.3175451); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(29,0.3129596); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(30,0.322439); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(31,0.3113984); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(32,0.3267512); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(33,0.3142476); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(34,0.3037593); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(35,0.3072687); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(36,0.3002741); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(37,0.3259289); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(38,0.3040143); timeEnergy2DHighEMECCSlot10_2__42->SetBinContent(39,0.3518949); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(2,0.01097972); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(3,0.007440469); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(4,0.005970291); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(5,0.00481635); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(6,0.004236943); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(7,0.004174546); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(8,0.004204312); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(9,0.003561517); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(10,0.003500862); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(11,0.003509547); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(12,0.003476836); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(13,0.003331604); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(14,0.003311202); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(15,0.003127871); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(16,0.003303004); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(17,0.003252374); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(18,0.00312653); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(19,0.003438145); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(20,0.003501656); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(21,0.003236605); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(22,0.003623277); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(23,0.003670592); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(24,0.003556207); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(25,0.003790681); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(26,0.003686062); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(27,0.003801195); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(28,0.004034876); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(29,0.00384695); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(30,0.004486242); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(31,0.004403913); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(32,0.004716987); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(33,0.005231674); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(34,0.006007511); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(35,0.00736644); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(36,0.009540451); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(37,0.01106991); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(38,0.01219217); timeEnergy2DHighEMECCSlot10_2__42->SetBinError(39,0.02671509); timeEnergy2DHighEMECCSlot10_2__42->SetEntries(38); timeEnergy2DHighEMECCSlot10_2__42->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6135057,0.7076271,0.8433908,0.8877119,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("timeEnergy2DHighEMECCSlot10_2"); text->SetTextSize(0.02761299); text = ptstats->AddText("Entries = 38 "); text = ptstats->AddText("Mean = 23.29"); text = ptstats->AddText("RMS = 11.13"); text = ptstats->AddText("p0 = 1.7 #pm 0.0 "); text = ptstats->AddText("p1 = 0.3188 #pm 0.0009 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); timeEnergy2DHighEMECCSlot10_2__42->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(timeEnergy2DHighEMECCSlot10_2__42); 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(81.88502); PrevFitTMP->SetNDF(36); 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,1.700377); PrevFitTMP->SetParError(0,0.03658297); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3187726); PrevFitTMP->SetParError(1,0.0009397994); PrevFitTMP->SetParLimits(1,0,0); timeEnergy2DHighEMECCSlot10_2__42->GetListOfFunctions()->Add(PrevFitTMP); timeEnergy2DHighEMECCSlot10_2__42->SetLineWidth(2); timeEnergy2DHighEMECCSlot10_2__42->SetMarkerStyle(20); timeEnergy2DHighEMECCSlot10_2__42->SetMarkerSize(1.2); timeEnergy2DHighEMECCSlot10_2__42->GetXaxis()->SetTitle("Cell Energy [GeV]"); timeEnergy2DHighEMECCSlot10_2__42->GetXaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot10_2__42->GetXaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetXaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetXaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot10_2__42->GetYaxis()->SetTitle("Timing Resolution [ns]"); timeEnergy2DHighEMECCSlot10_2__42->GetYaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot10_2__42->GetYaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetYaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetYaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot10_2__42->GetZaxis()->SetLabelFont(42); timeEnergy2DHighEMECCSlot10_2__42->GetZaxis()->SetLabelSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetZaxis()->SetTitleSize(0.05); timeEnergy2DHighEMECCSlot10_2__42->GetZaxis()->SetTitleFont(42); timeEnergy2DHighEMECCSlot10_2__42->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }