{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 11:41:51 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.97297,-0.21398,68.10811,1.123395); 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 xAxis21[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 *energyGraphEmec = new TH1D("energyGraphEmec","HIGH gain, All EMEC",56, xAxis21); energyGraphEmec->SetBinContent(2,0.4693607); energyGraphEmec->SetBinContent(3,0.4379818); energyGraphEmec->SetBinContent(4,0.4191742); energyGraphEmec->SetBinContent(5,0.4065178); energyGraphEmec->SetBinContent(6,0.3912523); energyGraphEmec->SetBinContent(7,0.3830248); energyGraphEmec->SetBinContent(8,0.3748783); energyGraphEmec->SetBinContent(9,0.3664041); energyGraphEmec->SetBinContent(10,0.3609001); energyGraphEmec->SetBinContent(11,0.3547494); energyGraphEmec->SetBinContent(12,0.3484152); energyGraphEmec->SetBinContent(13,0.3442757); energyGraphEmec->SetBinContent(14,0.3389856); energyGraphEmec->SetBinContent(15,0.3351901); energyGraphEmec->SetBinContent(16,0.3314998); energyGraphEmec->SetBinContent(17,0.3287072); energyGraphEmec->SetBinContent(18,0.3251075); energyGraphEmec->SetBinContent(19,0.322965); energyGraphEmec->SetBinContent(20,0.3202269); energyGraphEmec->SetBinContent(21,0.3176699); energyGraphEmec->SetBinContent(22,0.316347); energyGraphEmec->SetBinContent(23,0.3137465); energyGraphEmec->SetBinContent(24,0.3107515); energyGraphEmec->SetBinContent(25,0.308436); energyGraphEmec->SetBinContent(26,0.3075449); energyGraphEmec->SetBinContent(27,0.3063618); energyGraphEmec->SetBinContent(28,0.3056115); energyGraphEmec->SetBinContent(29,0.3066642); energyGraphEmec->SetBinContent(30,0.3117149); energyGraphEmec->SetBinContent(31,0.3149387); energyGraphEmec->SetBinContent(32,0.317272); energyGraphEmec->SetBinContent(33,0.3166336); energyGraphEmec->SetBinContent(34,0.3179621); energyGraphEmec->SetBinContent(35,0.3159534); energyGraphEmec->SetBinContent(36,0.3154213); energyGraphEmec->SetBinContent(37,0.3208304); energyGraphEmec->SetBinContent(38,0.3130046); energyGraphEmec->SetBinContent(39,0.3125888); energyGraphEmec->SetBinContent(40,0.3076196); energyGraphEmec->SetBinContent(41,0.2895218); energyGraphEmec->SetBinContent(42,0.2900239); energyGraphEmec->SetBinContent(43,0.2914363); energyGraphEmec->SetBinContent(44,0.2889894); energyGraphEmec->SetBinContent(45,0.2892128); energyGraphEmec->SetBinContent(46,0.2840716); energyGraphEmec->SetBinContent(47,0.285432); energyGraphEmec->SetBinContent(48,0.2860124); energyGraphEmec->SetBinContent(49,0.2837672); energyGraphEmec->SetBinContent(50,0.2750061); energyGraphEmec->SetBinContent(51,0.2882186); energyGraphEmec->SetBinContent(52,0.2693451); energyGraphEmec->SetBinContent(53,0.2836354); energyGraphEmec->SetBinContent(54,0.2823551); energyGraphEmec->SetBinContent(55,0.2860371); energyGraphEmec->SetBinContent(56,0.2899664); energyGraphEmec->SetBinContent(57,0.2843906); energyGraphEmec->SetBinError(2,0.00279885); energyGraphEmec->SetBinError(3,0.001965237); energyGraphEmec->SetBinError(4,0.001411411); energyGraphEmec->SetBinError(5,0.001074692); energyGraphEmec->SetBinError(6,0.0009413698); energyGraphEmec->SetBinError(7,0.0008489391); energyGraphEmec->SetBinError(8,0.0007890756); energyGraphEmec->SetBinError(9,0.0007163591); energyGraphEmec->SetBinError(10,0.0006777535); energyGraphEmec->SetBinError(11,0.0006544623); energyGraphEmec->SetBinError(12,0.0006173243); energyGraphEmec->SetBinError(13,0.0005974683); energyGraphEmec->SetBinError(14,0.0005731462); energyGraphEmec->SetBinError(15,0.000559894); energyGraphEmec->SetBinError(16,0.0005470641); energyGraphEmec->SetBinError(17,0.0005375141); energyGraphEmec->SetBinError(18,0.0005266187); energyGraphEmec->SetBinError(19,0.0005103697); energyGraphEmec->SetBinError(20,0.0005065025); energyGraphEmec->SetBinError(21,0.000500317); energyGraphEmec->SetBinError(22,0.0004972735); energyGraphEmec->SetBinError(23,0.0004980348); energyGraphEmec->SetBinError(24,0.0004888047); energyGraphEmec->SetBinError(25,0.0004883312); energyGraphEmec->SetBinError(26,0.000494822); energyGraphEmec->SetBinError(27,0.0005184284); energyGraphEmec->SetBinError(28,0.000551222); energyGraphEmec->SetBinError(29,0.0006257369); energyGraphEmec->SetBinError(30,0.0007413933); energyGraphEmec->SetBinError(31,0.0008933354); energyGraphEmec->SetBinError(32,0.00106381); energyGraphEmec->SetBinError(33,0.001281656); energyGraphEmec->SetBinError(34,0.001531561); energyGraphEmec->SetBinError(35,0.001825368); energyGraphEmec->SetBinError(36,0.002046091); energyGraphEmec->SetBinError(37,0.002336032); energyGraphEmec->SetBinError(38,0.002524983); energyGraphEmec->SetBinError(39,0.003162742); energyGraphEmec->SetBinError(40,0.003590455); energyGraphEmec->SetBinError(41,0.003619476); energyGraphEmec->SetBinError(42,0.004046134); energyGraphEmec->SetBinError(43,0.004485415); energyGraphEmec->SetBinError(44,0.004182297); energyGraphEmec->SetBinError(45,0.004268877); energyGraphEmec->SetBinError(46,0.004922818); energyGraphEmec->SetBinError(47,0.004767285); energyGraphEmec->SetBinError(48,0.005543338); energyGraphEmec->SetBinError(49,0.004929559); energyGraphEmec->SetBinError(50,0.004809123); energyGraphEmec->SetBinError(51,0.005641648); energyGraphEmec->SetBinError(52,0.004987961); energyGraphEmec->SetBinError(53,0.005599644); energyGraphEmec->SetBinError(54,0.005703307); energyGraphEmec->SetBinError(55,0.0061906); energyGraphEmec->SetBinError(56,0.006704343); energyGraphEmec->SetBinError(57,0.004007318); energyGraphEmec->SetEntries(56); energyGraphEmec->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.6465517,0.7478814,0.862069,0.9067797,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("energyGraphEmec"); text->SetTextSize(0.02436441); text = ptstats->AddText("Entries = 56 "); text = ptstats->AddText("Mean = 30.75"); text = ptstats->AddText("RMS = 16.1"); text = ptstats->AddText("p0 = 2.399 #pm 0.006 "); text = ptstats->AddText("p1 = 0.3033 #pm 0.0002 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); energyGraphEmec->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(energyGraphEmec); 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(3852.318); PrevFitTMP->SetNDF(53); 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.398514); PrevFitTMP->SetParError(0,0.006085707); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3033326); PrevFitTMP->SetParError(1,0.000167809); PrevFitTMP->SetParLimits(1,0,0); energyGraphEmec->GetListOfFunctions()->Add(PrevFitTMP); energyGraphEmec->SetLineWidth(2); energyGraphEmec->SetMarkerStyle(20); energyGraphEmec->SetMarkerSize(1.2); energyGraphEmec->GetXaxis()->SetTitle("Cell Energy [GeV]"); energyGraphEmec->GetXaxis()->SetLabelFont(42); energyGraphEmec->GetXaxis()->SetLabelSize(0.05); energyGraphEmec->GetXaxis()->SetTitleSize(0.05); energyGraphEmec->GetXaxis()->SetTitleFont(42); energyGraphEmec->GetYaxis()->SetTitle("Timing Resolution [ns]"); energyGraphEmec->GetYaxis()->SetLabelFont(42); energyGraphEmec->GetYaxis()->SetLabelSize(0.05); energyGraphEmec->GetYaxis()->SetTitleSize(0.05); energyGraphEmec->GetYaxis()->SetTitleFont(42); energyGraphEmec->GetZaxis()->SetLabelFont(42); energyGraphEmec->GetZaxis()->SetLabelSize(0.05); energyGraphEmec->GetZaxis()->SetTitleSize(0.05); energyGraphEmec->GetZaxis()->SetTitleFont(42); energyGraphEmec->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }