{ //=========Macro generated from canvas: c1/c1 //========= (Thu May 31 15:08:54 2012) by ROOT version5.32/03 TCanvas *c1 = new TCanvas("c1", "c1",66,52,700,500); gStyle->SetOptTitle(0); c1->Range(202538.4,-0.90658,202892.4,-0.2595162); 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); TProfile *timeRunNoProfHighEMBA__1 = new TProfile("timeRunNoProfHighEMBA","Time RunNumber Profile for High Gain for EMBA",4222,200804,205026,""); timeRunNoProfHighEMBA__1->SetBinEntries(1857,2330); timeRunNoProfHighEMBA__1->SetBinEntries(1865,30313); timeRunNoProfHighEMBA__1->SetBinEntries(1909,37683); timeRunNoProfHighEMBA__1->SetBinEntries(1937,8139); timeRunNoProfHighEMBA__1->SetBinEntries(1995,62392); timeRunNoProfHighEMBA__1->SetBinContent(1857,-1562.413); timeRunNoProfHighEMBA__1->SetBinContent(1865,-23241.2); timeRunNoProfHighEMBA__1->SetBinContent(1909,-24177.51); timeRunNoProfHighEMBA__1->SetBinContent(1937,-5410.738); timeRunNoProfHighEMBA__1->SetBinContent(1995,-47989.02); timeRunNoProfHighEMBA__1->SetBinError(1857,44.61226); timeRunNoProfHighEMBA__1->SetBinError(1865,172.2577); timeRunNoProfHighEMBA__1->SetBinError(1909,173.0241); timeRunNoProfHighEMBA__1->SetBinError(1937,81.64827); timeRunNoProfHighEMBA__1->SetBinError(1995,247.205); timeRunNoProfHighEMBA__1->SetMinimum(-0.8030498); timeRunNoProfHighEMBA__1->SetMaximum(-0.2918694); timeRunNoProfHighEMBA__1->SetEntries(140857); timeRunNoProfHighEMBA__1->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.78,0.795,0.98,0.995,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("Entries = 140857 "); text = ptstats->AddText("Mean = 2.027e+05"); text = ptstats->AddText("Mean y = -0.7268"); text = ptstats->AddText("RMS = 54.03"); text = ptstats->AddText("RMS y = 0.6247"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); timeRunNoProfHighEMBA__1->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(timeRunNoProfHighEMBA__1); timeRunNoProfHighEMBA__1->SetLineWidth(2); timeRunNoProfHighEMBA__1->SetMarkerStyle(20); timeRunNoProfHighEMBA__1->SetMarkerSize(1.2); timeRunNoProfHighEMBA__1->GetXaxis()->SetTitle("RunNumber"); timeRunNoProfHighEMBA__1->GetXaxis()->SetRange(1792,2053); timeRunNoProfHighEMBA__1->GetXaxis()->SetNoExponent(); timeRunNoProfHighEMBA__1->GetXaxis()->SetLabelFont(42); timeRunNoProfHighEMBA__1->GetXaxis()->SetLabelSize(0.02); timeRunNoProfHighEMBA__1->GetXaxis()->SetTitleSize(0.05); timeRunNoProfHighEMBA__1->GetXaxis()->SetTitleFont(42); timeRunNoProfHighEMBA__1->GetYaxis()->SetTitle("Time [ns]"); timeRunNoProfHighEMBA__1->GetYaxis()->SetLabelFont(42); timeRunNoProfHighEMBA__1->GetYaxis()->SetLabelSize(0.05); timeRunNoProfHighEMBA__1->GetYaxis()->SetTitleSize(0.05); timeRunNoProfHighEMBA__1->GetYaxis()->SetTitleFont(42); timeRunNoProfHighEMBA__1->GetZaxis()->SetLabelFont(42); timeRunNoProfHighEMBA__1->GetZaxis()->SetLabelSize(0.05); timeRunNoProfHighEMBA__1->GetZaxis()->SetTitleSize(0.05); timeRunNoProfHighEMBA__1->GetZaxis()->SetTitleFont(42); timeRunNoProfHighEMBA__1->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }