{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 12:57:25 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.97297,-0.1759009,68.10811,0.9234795); 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 xAxis34[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 *energyGraphBarrel = new TH1D("energyGraphBarrel","HIGH gain, All EMB",56, xAxis34); energyGraphBarrel->SetBinContent(2,0.4557348); energyGraphBarrel->SetBinContent(3,0.4236794); energyGraphBarrel->SetBinContent(4,0.4002333); energyGraphBarrel->SetBinContent(5,0.3836469); energyGraphBarrel->SetBinContent(6,0.3715158); energyGraphBarrel->SetBinContent(7,0.3615172); energyGraphBarrel->SetBinContent(8,0.3543125); energyGraphBarrel->SetBinContent(9,0.3479342); energyGraphBarrel->SetBinContent(10,0.342673); energyGraphBarrel->SetBinContent(11,0.3389468); energyGraphBarrel->SetBinContent(12,0.3347623); energyGraphBarrel->SetBinContent(13,0.331391); energyGraphBarrel->SetBinContent(14,0.3279315); energyGraphBarrel->SetBinContent(15,0.3241858); energyGraphBarrel->SetBinContent(16,0.3236849); energyGraphBarrel->SetBinContent(17,0.3204376); energyGraphBarrel->SetBinContent(18,0.3185099); energyGraphBarrel->SetBinContent(19,0.3168738); energyGraphBarrel->SetBinContent(20,0.3167815); energyGraphBarrel->SetBinContent(21,0.3154566); energyGraphBarrel->SetBinContent(22,0.3157569); energyGraphBarrel->SetBinContent(23,0.3147874); energyGraphBarrel->SetBinContent(24,0.3129655); energyGraphBarrel->SetBinContent(25,0.3100759); energyGraphBarrel->SetBinContent(26,0.3094846); energyGraphBarrel->SetBinContent(27,0.3077873); energyGraphBarrel->SetBinContent(28,0.2979021); energyGraphBarrel->SetBinContent(29,0.3078581); energyGraphBarrel->SetBinContent(30,0.2986809); energyGraphBarrel->SetBinContent(31,0.3017628); energyGraphBarrel->SetBinContent(32,0.3055107); energyGraphBarrel->SetBinContent(33,0.3037407); energyGraphBarrel->SetBinContent(34,0.3046373); energyGraphBarrel->SetBinContent(35,0.2961249); energyGraphBarrel->SetBinContent(36,0.3128049); energyGraphBarrel->SetBinContent(37,0.290005); energyGraphBarrel->SetBinContent(38,0.3143665); energyGraphBarrel->SetBinContent(39,0.3537202); energyGraphBarrel->SetBinError(2,0.001184454); energyGraphBarrel->SetBinError(3,0.0009074547); energyGraphBarrel->SetBinError(4,0.0007784338); energyGraphBarrel->SetBinError(5,0.0006837256); energyGraphBarrel->SetBinError(6,0.000635832); energyGraphBarrel->SetBinError(7,0.0005965784); energyGraphBarrel->SetBinError(8,0.0005854265); energyGraphBarrel->SetBinError(9,0.0005795552); energyGraphBarrel->SetBinError(10,0.0005835007); energyGraphBarrel->SetBinError(11,0.0005998633); energyGraphBarrel->SetBinError(12,0.0006202345); energyGraphBarrel->SetBinError(13,0.0006574857); energyGraphBarrel->SetBinError(14,0.00069477); energyGraphBarrel->SetBinError(15,0.0007309625); energyGraphBarrel->SetBinError(16,0.0007976367); energyGraphBarrel->SetBinError(17,0.0008566989); energyGraphBarrel->SetBinError(18,0.0009225028); energyGraphBarrel->SetBinError(19,0.0009985697); energyGraphBarrel->SetBinError(20,0.00111389); energyGraphBarrel->SetBinError(21,0.00124681); energyGraphBarrel->SetBinError(22,0.001415656); energyGraphBarrel->SetBinError(23,0.001680837); energyGraphBarrel->SetBinError(24,0.001931043); energyGraphBarrel->SetBinError(25,0.001986824); energyGraphBarrel->SetBinError(26,0.002203339); energyGraphBarrel->SetBinError(27,0.002292638); energyGraphBarrel->SetBinError(28,0.002468473); energyGraphBarrel->SetBinError(29,0.002836128); energyGraphBarrel->SetBinError(30,0.002892494); energyGraphBarrel->SetBinError(31,0.003307798); energyGraphBarrel->SetBinError(32,0.003487958); energyGraphBarrel->SetBinError(33,0.004026022); energyGraphBarrel->SetBinError(34,0.004472054); energyGraphBarrel->SetBinError(35,0.00437557); energyGraphBarrel->SetBinError(36,0.005410665); energyGraphBarrel->SetBinError(37,0.005658717); energyGraphBarrel->SetBinError(38,0.008693766); energyGraphBarrel->SetBinError(39,0.01984379); energyGraphBarrel->SetEntries(38); energyGraphBarrel->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6278736,0.7457627,0.8635057,0.9110169,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("energyGraphBarrel"); text->SetTextSize(0.02533898); text = ptstats->AddText("Entries = 38 "); text = ptstats->AddText("Mean = 23.1"); text = ptstats->AddText("RMS = 11.22"); text = ptstats->AddText("p0 = 1.918 #pm 0.005 "); text = ptstats->AddText("p1 = 0.3092 #pm 0.0003 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); energyGraphBarrel->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(energyGraphBarrel); 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(470.5194); 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.917981); PrevFitTMP->SetParError(0,0.005344945); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3091884); PrevFitTMP->SetParError(1,0.0002675689); PrevFitTMP->SetParLimits(1,0,0); energyGraphBarrel->GetListOfFunctions()->Add(PrevFitTMP); energyGraphBarrel->SetLineWidth(2); energyGraphBarrel->SetMarkerStyle(20); energyGraphBarrel->SetMarkerSize(1.2); energyGraphBarrel->GetXaxis()->SetTitle("Cell Energy [GeV]"); energyGraphBarrel->GetXaxis()->SetLabelFont(42); energyGraphBarrel->GetXaxis()->SetLabelSize(0.05); energyGraphBarrel->GetXaxis()->SetTitleSize(0.05); energyGraphBarrel->GetXaxis()->SetTitleFont(42); energyGraphBarrel->GetYaxis()->SetTitle("Timing Resolution [ns]"); energyGraphBarrel->GetYaxis()->SetLabelFont(42); energyGraphBarrel->GetYaxis()->SetLabelSize(0.05); energyGraphBarrel->GetYaxis()->SetTitleSize(0.05); energyGraphBarrel->GetYaxis()->SetTitleFont(42); energyGraphBarrel->GetZaxis()->SetLabelFont(42); energyGraphBarrel->GetZaxis()->SetLabelSize(0.05); energyGraphBarrel->GetZaxis()->SetTitleSize(0.05); energyGraphBarrel->GetZaxis()->SetTitleFont(42); energyGraphBarrel->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }