{ //=========Macro generated from canvas: c1/c1 //========= (Wed Jun 6 16:05:01 2012) by ROOT version5.32/03 TCanvas *c1 = new TCanvas("c1", "c1",66,52,700,500); c1->Range(-21.62162,-1.040142,113.5135,0.4459866); 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 xAxis[41] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100}; TProfile *rebinnedtimeEnProfHighEMBASlot11__2 = new TProfile("rebinnedtimeEnProfHighEMBASlot11","Time Energy profile for High Gain for EMBASlot11",40, xAxis rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(6,31502); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(7,42703); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(8,50360); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(9,53645); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(10,52575); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(11,49809); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(12,43821); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(13,37263); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(14,31078); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(15,24880); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(16,20039); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(17,15363); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(18,12009); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(19,9089); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(20,7126); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(21,5368); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(22,4362); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(23,3396); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(24,2576); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(25,1500); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(26,485); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(27,19); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(28,10); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(29,5); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(30,2); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(6,9874.964); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(7,9928.395); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(8,7994.383); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(9,5122.414); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(10,1909.364); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(11,-730.196); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(12,-2694.602); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(13,-3816.07); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(14,-4435.911); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(15,-4287.047); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(16,-3929.847); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(17,-3319.017); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(18,-2720.484); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(19,-2250.016); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(20,-1788.035); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(21,-1410.143); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(22,-1157.803); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(23,-965.9186); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(24,-746.6603); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(25,-419.642); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(26,-148.4344); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(27,-3.328896); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(28,-3.670292); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(29,-1.413597); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(30,-1.282179); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(6,91.41171); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(7,92.10887); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(8,87.75834); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(9,82.31213); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(10,76.86759); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(11,72.48352); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(12,67.2204); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(13,63.25958); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(14,58.95045); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(15,54.38798); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(16,50.51453); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(17,45.18819); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(18,40.38865); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(19,36.45414); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(20,32.23427); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(21,28.43911); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(22,25.70827); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(23,23.77548); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(24,20.85618); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(25,15.55542); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(26,9.436073); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(27,1.569625); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(28,1.605202); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(29,0.7775054); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(30,0.9320251); rebinnedtimeEnProfHighEMBASlot11__2->SetEntries(498985); rebinnedtimeEnProfHighEMBASlot11__2->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 = 498985 "); text = ptstats->AddText("Mean = 11.08"); text = ptstats->AddText("Mean y = -4.874e-09"); text = ptstats->AddText("RMS = 4.029"); text = ptstats->AddText("RMS y = 0.3714"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); rebinnedtimeEnProfHighEMBASlot11__2->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(rebinnedtimeEnProfHighEMBASlot11__2); TF1 *PrevFitTMP = new TF1("PrevFitTMP","pol5",5,50); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(42.44132); PrevFitTMP->SetNDF(19); 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,0.8762069); PrevFitTMP->SetParError(0,0.02546774); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,-0.1216766); PrevFitTMP->SetParError(1,0.008905229); PrevFitTMP->SetParLimits(1,0,0); PrevFitTMP->SetParameter(2,0.003330783); PrevFitTMP->SetParError(2,0.001145227); PrevFitTMP->SetParLimits(2,0,0); PrevFitTMP->SetParameter(3,4.403275e-05); PrevFitTMP->SetParError(3,6.760298e-05); PrevFitTMP->SetParLimits(3,0,0); PrevFitTMP->SetParameter(4,-3.077119e-06); PrevFitTMP->SetParError(4,1.821934e-06); PrevFitTMP->SetParLimits(4,0,0); PrevFitTMP->SetParameter(5,3.227887e-08); PrevFitTMP->SetParError(5,1.765331e-08); PrevFitTMP->SetParLimits(5,0,0); rebinnedtimeEnProfHighEMBASlot11__2->GetListOfFunctions()->Add(PrevFitTMP); Int_t ci; // for color index setting ci = TColor::GetColor("#ff00ff"); rebinnedtimeEnProfHighEMBASlot11__2->SetLineColor(ci); rebinnedtimeEnProfHighEMBASlot11__2->SetLineWidth(2); ci = TColor::GetColor("#ff00ff"); rebinnedtimeEnProfHighEMBASlot11__2->SetMarkerColor(ci); rebinnedtimeEnProfHighEMBASlot11__2->SetMarkerStyle(20); rebinnedtimeEnProfHighEMBASlot11__2->SetMarkerSize(1.2); rebinnedtimeEnProfHighEMBASlot11__2->GetXaxis()->SetTitle("Energy [Gev]"); rebinnedtimeEnProfHighEMBASlot11__2->GetXaxis()->SetLabelFont(42); rebinnedtimeEnProfHighEMBASlot11__2->GetXaxis()->SetLabelSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetXaxis()->SetTitleSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetXaxis()->SetTitleFont(42); rebinnedtimeEnProfHighEMBASlot11__2->GetYaxis()->SetTitle("Time [ns]"); rebinnedtimeEnProfHighEMBASlot11__2->GetYaxis()->SetLabelFont(42); rebinnedtimeEnProfHighEMBASlot11__2->GetYaxis()->SetLabelSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetYaxis()->SetTitleSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetYaxis()->SetTitleFont(42); rebinnedtimeEnProfHighEMBASlot11__2->GetZaxis()->SetLabelFont(42); rebinnedtimeEnProfHighEMBASlot11__2->GetZaxis()->SetLabelSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetZaxis()->SetTitleSize(0.05); rebinnedtimeEnProfHighEMBASlot11__2->GetZaxis()->SetTitleFont(42); rebinnedtimeEnProfHighEMBASlot11__2->Draw(""); TPaveText *pt = new TPaveText(0.5,0.9393038,1.2,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); text = pt->AddText("Time Energy profile for High Gain for EMBASlot11"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }