{ //=========Macro generated from canvas: c1/c1 //========= (Sun Feb 24 22:56:32 2013) by ROOT version5.34/04 TCanvas *c1 = new TCanvas("c1", "c1",18,41,700,500); gStyle->SetOptTitle(0); c1->Range(-10.81081,0.2258071,56.75676,0.4930603); 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); TH1D *High Gain D (Brown/Purple) = new TH1D("High Gain D (Brown/Purple)","HIGH gain, All EMB",50,0,50); High Gain D (Brown/Purple)->SetBinContent(6,0.4526172); High Gain D (Brown/Purple)->SetBinContent(7,0.4170956); High Gain D (Brown/Purple)->SetBinContent(8,0.3935334); High Gain D (Brown/Purple)->SetBinContent(9,0.3758955); High Gain D (Brown/Purple)->SetBinContent(10,0.3641935); High Gain D (Brown/Purple)->SetBinContent(11,0.3548645); High Gain D (Brown/Purple)->SetBinContent(12,0.3461805); High Gain D (Brown/Purple)->SetBinContent(13,0.3391473); High Gain D (Brown/Purple)->SetBinContent(14,0.3335877); High Gain D (Brown/Purple)->SetBinContent(15,0.3298478); High Gain D (Brown/Purple)->SetBinContent(16,0.3261092); High Gain D (Brown/Purple)->SetBinContent(17,0.3210269); High Gain D (Brown/Purple)->SetBinContent(18,0.3186306); High Gain D (Brown/Purple)->SetBinContent(19,0.3167882); High Gain D (Brown/Purple)->SetBinContent(20,0.3128266); High Gain D (Brown/Purple)->SetBinContent(21,0.3113864); High Gain D (Brown/Purple)->SetBinContent(22,0.3094789); High Gain D (Brown/Purple)->SetBinContent(23,0.3080998); High Gain D (Brown/Purple)->SetBinContent(24,0.307157); High Gain D (Brown/Purple)->SetBinContent(25,0.3058831); High Gain D (Brown/Purple)->SetBinContent(26,0.3054992); High Gain D (Brown/Purple)->SetBinContent(27,0.304734); High Gain D (Brown/Purple)->SetBinContent(28,0.3062631); High Gain D (Brown/Purple)->SetBinContent(29,0.3026805); High Gain D (Brown/Purple)->SetBinContent(30,0.3029289); High Gain D (Brown/Purple)->SetBinContent(31,0.3034096); High Gain D (Brown/Purple)->SetBinContent(32,0.301905); High Gain D (Brown/Purple)->SetBinContent(33,0.2997365); High Gain D (Brown/Purple)->SetBinContent(34,0.2982761); High Gain D (Brown/Purple)->SetBinContent(35,0.302387); High Gain D (Brown/Purple)->SetBinContent(36,0.3001156); High Gain D (Brown/Purple)->SetBinContent(37,0.2896212); High Gain D (Brown/Purple)->SetBinContent(38,0.3003639); High Gain D (Brown/Purple)->SetBinContent(39,0.2926382); High Gain D (Brown/Purple)->SetBinContent(40,0.3080832); High Gain D (Brown/Purple)->SetBinContent(41,0.3064242); High Gain D (Brown/Purple)->SetBinContent(42,0.292738); High Gain D (Brown/Purple)->SetBinContent(43,0.3080721); High Gain D (Brown/Purple)->SetBinContent(44,0.3630731); High Gain D (Brown/Purple)->SetBinError(6,0.0009671364); High Gain D (Brown/Purple)->SetBinError(7,0.0007243785); High Gain D (Brown/Purple)->SetBinError(8,0.0006089519); High Gain D (Brown/Purple)->SetBinError(9,0.0005374211); High Gain D (Brown/Purple)->SetBinError(10,0.0005079971); High Gain D (Brown/Purple)->SetBinError(11,0.0004922638); High Gain D (Brown/Purple)->SetBinError(12,0.0004943799); High Gain D (Brown/Purple)->SetBinError(13,0.0005019833); High Gain D (Brown/Purple)->SetBinError(14,0.0005139766); High Gain D (Brown/Purple)->SetBinError(15,0.0005517615); High Gain D (Brown/Purple)->SetBinError(16,0.000584587); High Gain D (Brown/Purple)->SetBinError(17,0.000617644); High Gain D (Brown/Purple)->SetBinError(18,0.0006648164); High Gain D (Brown/Purple)->SetBinError(19,0.0007245517); High Gain D (Brown/Purple)->SetBinError(20,0.0007903626); High Gain D (Brown/Purple)->SetBinError(21,0.0008543835); High Gain D (Brown/Purple)->SetBinError(22,0.0009271425); High Gain D (Brown/Purple)->SetBinError(23,0.001007949); High Gain D (Brown/Purple)->SetBinError(24,0.001096084); High Gain D (Brown/Purple)->SetBinError(25,0.001242925); High Gain D (Brown/Purple)->SetBinError(26,0.001417712); High Gain D (Brown/Purple)->SetBinError(27,0.001663247); High Gain D (Brown/Purple)->SetBinError(28,0.001949198); High Gain D (Brown/Purple)->SetBinError(29,0.002087355); High Gain D (Brown/Purple)->SetBinError(30,0.00230192); High Gain D (Brown/Purple)->SetBinError(31,0.002515076); High Gain D (Brown/Purple)->SetBinError(32,0.002666071); High Gain D (Brown/Purple)->SetBinError(33,0.002764533); High Gain D (Brown/Purple)->SetBinError(34,0.002764786); High Gain D (Brown/Purple)->SetBinError(35,0.003290575); High Gain D (Brown/Purple)->SetBinError(36,0.003443369); High Gain D (Brown/Purple)->SetBinError(37,0.003336306); High Gain D (Brown/Purple)->SetBinError(38,0.003973497); High Gain D (Brown/Purple)->SetBinError(39,0.004001477); High Gain D (Brown/Purple)->SetBinError(40,0.004935336); High Gain D (Brown/Purple)->SetBinError(41,0.005842939); High Gain D (Brown/Purple)->SetBinError(42,0.006864568); High Gain D (Brown/Purple)->SetBinError(43,0.01203256); High Gain D (Brown/Purple)->SetBinError(44,0.02773507); High Gain D (Brown/Purple)->SetMinimum(0.2685676); High Gain D (Brown/Purple)->SetMaximum(0.4796976); High Gain D (Brown/Purple)->SetEntries(39); TPaveStats *ptstats = new TPaveStats(0.5545977,0.7510549,0.7801724,0.9219409,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("High Gain D (Brown/Purple)"); text->SetTextSize(0.02620253); text = ptstats->AddText("Entries = 39 "); text = ptstats->AddText("Mean = 23.65"); text = ptstats->AddText("RMS = 11.56"); text = ptstats->AddText("p0 = 2.115 #pm 0.014 "); text = ptstats->AddText("p1 = 0.2944 #pm 0.0004 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain D (Brown/Purple)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain D (Brown/Purple)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",11,38); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(51); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(37.2901); PrevFitTMP->SetNDF(25); 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.114587); PrevFitTMP->SetParError(0,0.01370621); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.2944054); PrevFitTMP->SetParError(1,0.0004477158); PrevFitTMP->SetParLimits(1,0,0); High Gain D (Brown/Purple)->GetListOfFunctions()->Add(PrevFitTMP); High Gain D (Brown/Purple)->SetLineColor(50); High Gain D (Brown/Purple)->SetLineWidth(2); High Gain D (Brown/Purple)->SetMarkerColor(50); High Gain D (Brown/Purple)->SetMarkerStyle(20); High Gain D (Brown/Purple)->SetMarkerSize(1.2); High Gain D (Brown/Purple)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain D (Brown/Purple)->GetXaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetXaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetXaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetXaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain D (Brown/Purple)->GetYaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetYaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetYaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetYaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->GetZaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetZaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetZaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetZaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }