{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jul 18 13:21:41 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-56.03884,0.2396671,295.3398,0.3558355); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.1594828); c1->SetTopMargin(0.04872881); c1->SetBottomMargin(0.161017); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t xAxis55[23] = {0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 100, 120, 140, 160, 210, 260}; TH1D *timeEnergy2DMediumEMBASlot12_2__47 = new TH1D("timeEnergy2DMediumEMBASlot12_2__47","Fitted value of par[2]=Sigma",22, xAxis55); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(8,0.3057965); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(9,0.2990625); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(10,0.2827804); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(11,0.3158557); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(12,0.2991094); timeEnergy2DMediumEMBASlot12_2__47->SetBinContent(17,0.3164571); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(8,0.006462917); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(9,0.004607032); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(10,0.006223528); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(11,0.008839327); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(12,0.01077965); timeEnergy2DMediumEMBASlot12_2__47->SetBinError(17,0.01974673); timeEnergy2DMediumEMBASlot12_2__47->SetMinimum(0.2583722); timeEnergy2DMediumEMBASlot12_2__47->SetMaximum(0.3501748); timeEnergy2DMediumEMBASlot12_2__47->SetEntries(6); timeEnergy2DMediumEMBASlot12_2__47->SetDirectory(0); TF1 *res = new TF1("res","sqrt(sq([0]/x)+sq([1]))",0,50); res->SetFillColor(19); res->SetFillStyle(0); res->SetMarkerStyle(20); res->SetMarkerSize(1.2); Int_t ci; // for color index setting ci = TColor::GetColor("#ff0000"); res->SetLineColor(ci); res->SetLineWidth(3); res->SetLineStyle(3); res->SetChisquare(12.31557); res->SetNDF(4); res->GetXaxis()->SetLabelFont(42); res->GetXaxis()->SetLabelSize(0.05); res->GetXaxis()->SetTitleSize(0.05); res->GetXaxis()->SetTitleFont(42); res->GetYaxis()->SetLabelFont(42); res->GetYaxis()->SetLabelSize(0.05); res->GetYaxis()->SetTitleSize(0.05); res->GetYaxis()->SetTitleFont(42); res->SetParameter(0,3.70076e-09); res->SetParError(0,1.414213); res->SetParLimits(0,0,0); res->SetParameter(1,0.299069); res->SetParError(1,0.002876659); res->SetParLimits(1,0,0); timeEnergy2DMediumEMBASlot12_2__47->GetListOfFunctions()->Add(res); TPaveStats *ptstats = new TPaveStats(0.6408046,0.7987288,0.841954,0.9194915,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("Entries = 6 "); text = ptstats->AddText("Mean = 54.9"); text = ptstats->AddText("RMS = 17.35"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); timeEnergy2DMediumEMBASlot12_2__47->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(timeEnergy2DMediumEMBASlot12_2__47); timeEnergy2DMediumEMBASlot12_2__47->SetLineWidth(2); timeEnergy2DMediumEMBASlot12_2__47->SetMarkerStyle(20); timeEnergy2DMediumEMBASlot12_2__47->SetMarkerSize(1.2); timeEnergy2DMediumEMBASlot12_2__47->GetXaxis()->SetTitle("Cell Energy [GeV]"); timeEnergy2DMediumEMBASlot12_2__47->GetXaxis()->SetLabelFont(42); timeEnergy2DMediumEMBASlot12_2__47->GetXaxis()->SetLabelSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetXaxis()->SetTitleSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetXaxis()->SetTitleFont(42); timeEnergy2DMediumEMBASlot12_2__47->GetYaxis()->SetTitle("Timing Resolution [ns]"); timeEnergy2DMediumEMBASlot12_2__47->GetYaxis()->SetLabelFont(42); timeEnergy2DMediumEMBASlot12_2__47->GetYaxis()->SetLabelSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetYaxis()->SetTitleSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetYaxis()->SetTitleFont(42); timeEnergy2DMediumEMBASlot12_2__47->GetZaxis()->SetLabelFont(42); timeEnergy2DMediumEMBASlot12_2__47->GetZaxis()->SetLabelSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetZaxis()->SetTitleSize(0.05); timeEnergy2DMediumEMBASlot12_2__47->GetZaxis()->SetTitleFont(42); timeEnergy2DMediumEMBASlot12_2__47->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }