{ //=========Macro generated from canvas: c1/c1 //========= (Thu Jun 7 15:04:20 2012) by ROOT version5.32/03 TCanvas *c1 = new TCanvas("c1", "c1",66,52,700,500); c1->Range(-13.21637,0.2182866,68.18713,0.4664559); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.1623563); c1->SetTopMargin(0.04852321); c1->SetBottomMargin(0.1603376); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t xAxis3[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, xAxis3); energyGraphBarrel->SetBinContent(2,0.4401776); energyGraphBarrel->SetBinContent(3,0.4067573); energyGraphBarrel->SetBinContent(4,0.3825435); energyGraphBarrel->SetBinContent(5,0.3642792); energyGraphBarrel->SetBinContent(6,0.3515105); energyGraphBarrel->SetBinContent(7,0.3407338); energyGraphBarrel->SetBinContent(8,0.333207); energyGraphBarrel->SetBinContent(9,0.3255585); energyGraphBarrel->SetBinContent(10,0.3204744); energyGraphBarrel->SetBinContent(11,0.3159508); energyGraphBarrel->SetBinContent(12,0.3121587); energyGraphBarrel->SetBinContent(13,0.3086111); energyGraphBarrel->SetBinContent(14,0.3058028); energyGraphBarrel->SetBinContent(15,0.3039361); energyGraphBarrel->SetBinContent(16,0.3010153); energyGraphBarrel->SetBinContent(17,0.2987374); energyGraphBarrel->SetBinContent(18,0.2973684); energyGraphBarrel->SetBinContent(19,0.2982893); energyGraphBarrel->SetBinContent(20,0.2979931); energyGraphBarrel->SetBinContent(21,0.2963729); energyGraphBarrel->SetBinContent(22,0.298178); energyGraphBarrel->SetBinContent(23,0.2943764); energyGraphBarrel->SetBinContent(24,0.2943545); energyGraphBarrel->SetBinContent(25,0.2951826); energyGraphBarrel->SetBinContent(26,0.2963092); energyGraphBarrel->SetBinContent(27,0.295853); energyGraphBarrel->SetBinContent(28,0.2986714); energyGraphBarrel->SetBinContent(29,0.2882947); energyGraphBarrel->SetBinContent(30,0.2894972); energyGraphBarrel->SetBinContent(31,0.2990286); energyGraphBarrel->SetBinContent(32,0.298411); energyGraphBarrel->SetBinContent(33,0.2933383); energyGraphBarrel->SetBinContent(34,0.2980017); energyGraphBarrel->SetBinContent(35,0.2998689); energyGraphBarrel->SetBinContent(36,0.3025313); energyGraphBarrel->SetBinContent(37,0.3035058); energyGraphBarrel->SetBinContent(38,0.300329); energyGraphBarrel->SetBinContent(39,0.3145337); energyGraphBarrel->SetBinContent(40,0.3064479); energyGraphBarrel->SetBinError(2,0.0008297317); energyGraphBarrel->SetBinError(3,0.0006448508); energyGraphBarrel->SetBinError(4,0.0005469441); energyGraphBarrel->SetBinError(5,0.0004918166); energyGraphBarrel->SetBinError(6,0.0004662109); energyGraphBarrel->SetBinError(7,0.0004535047); energyGraphBarrel->SetBinError(8,0.0004591886); energyGraphBarrel->SetBinError(9,0.0004624635); energyGraphBarrel->SetBinError(10,0.0004824025); energyGraphBarrel->SetBinError(11,0.0005168603); energyGraphBarrel->SetBinError(12,0.0005414057); energyGraphBarrel->SetBinError(13,0.0005883115); energyGraphBarrel->SetBinError(14,0.0006367923); energyGraphBarrel->SetBinError(15,0.0006926556); energyGraphBarrel->SetBinError(16,0.0007610306); energyGraphBarrel->SetBinError(17,0.0008291126); energyGraphBarrel->SetBinError(18,0.0008883014); energyGraphBarrel->SetBinError(19,0.0009959076); energyGraphBarrel->SetBinError(20,0.001096206); energyGraphBarrel->SetBinError(21,0.001223577); energyGraphBarrel->SetBinError(22,0.001434432); energyGraphBarrel->SetBinError(23,0.001670588); energyGraphBarrel->SetBinError(24,0.001861675); energyGraphBarrel->SetBinError(25,0.001961535); energyGraphBarrel->SetBinError(26,0.00223224); energyGraphBarrel->SetBinError(27,0.002393912); energyGraphBarrel->SetBinError(28,0.002670383); energyGraphBarrel->SetBinError(29,0.002642587); energyGraphBarrel->SetBinError(30,0.002839753); energyGraphBarrel->SetBinError(31,0.003324176); energyGraphBarrel->SetBinError(32,0.003337461); energyGraphBarrel->SetBinError(33,0.00342287); energyGraphBarrel->SetBinError(34,0.003887472); energyGraphBarrel->SetBinError(35,0.004469454); energyGraphBarrel->SetBinError(36,0.004152293); energyGraphBarrel->SetBinError(37,0.005335495); energyGraphBarrel->SetBinError(38,0.007085795); energyGraphBarrel->SetBinError(39,0.01083236); energyGraphBarrel->SetBinError(40,0.02202123); energyGraphBarrel->SetMinimum(0.2580775); energyGraphBarrel->SetMaximum(0.454414); energyGraphBarrel->SetEntries(39); energyGraphBarrel->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6149425,0.7172996,0.8663793,0.9008439,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("Entries = 39 "); text = ptstats->AddText("Mean = 23.71"); text = ptstats->AddText("RMS = 11.56"); text = ptstats->AddText("p0 = 1.879 #pm 0.004 "); text = ptstats->AddText("p1 = 0.288 #pm 0.000 "); ptstats->SetOptStat(1110); 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(243.3023); PrevFitTMP->SetNDF(37); 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.878902); PrevFitTMP->SetParError(0,0.003935628); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.2880459); PrevFitTMP->SetParError(1,0.0002352081); 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(""); TPaveText *pt = new TPaveText(0.3994253,0.9535865,0.6853448,0.9957806,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); text = pt->AddText("HIGH gain, All EMB"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }