{ //=========Macro generated from canvas: c1/c1 //========= (Thu May 31 16:16:06 2012) by ROOT version5.32/03 TCanvas *c1 = new TCanvas("c1", "c1",66,52,700,500); gStyle->SetOptTitle(0); c1->Range(-8.648648,-0.6402461,45.40541,0.9269753); 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,2665); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(7,3260); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(8,3948); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(9,4195); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(10,4022); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(11,3814); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(12,3321); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(13,2969); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(14,2438); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(15,1955); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(16,1549); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(17,1242); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(18,928); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(19,729); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(20,560); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(21,428); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(22,332); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(23,245); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(24,192); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(25,116); rebinnedtimeEnProfHighEMBASlot11__2->SetBinEntries(26,34); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(6,856.4399); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(7,834.889); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(8,655.5626); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(9,447.6399); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(10,259.821); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(11,-39.06331); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(12,-155.2553); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(13,-287.5344); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(14,-273.8948); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(15,-296.7308); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(16,-275.7409); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(17,-244.464); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(18,-194.723); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(19,-168.4673); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(20,-121.4897); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(21,-101.1329); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(22,-74.89561); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(23,-54.81201); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(24,-49.3595); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(25,-24.92721); rebinnedtimeEnProfHighEMBASlot11__2->SetBinContent(26,-8.534031); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(6,31.5964); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(7,31.75265); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(8,31.99062); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(9,30.82911); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(10,29.49584); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(11,27.59572); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(12,25.04091); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(13,24.5335); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(14,22.62701); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(15,19.32381); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(16,19.04887); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(17,16.53995); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(18,15.12356); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(19,13.25975); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(20,11.6208); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(21,9.636019); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(22,8.79183); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(23,7.946193); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(24,6.447305); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(25,5.048979); rebinnedtimeEnProfHighEMBASlot11__2->SetBinError(26,3.159046); rebinnedtimeEnProfHighEMBASlot11__2->SetEntries(38942); rebinnedtimeEnProfHighEMBASlot11__2->SetDirectory(0); TF1 *energyShapeA = new TF1("energyShapeA","pol5",0,100); energyShapeA->SetFillColor(19); energyShapeA->SetFillStyle(0); energyShapeA->SetMarkerStyle(20); energyShapeA->SetMarkerSize(1.2); energyShapeA->SetLineWidth(3); energyShapeA->SetChisquare(12.41941); energyShapeA->SetNDF(15); energyShapeA->GetXaxis()->SetLabelFont(42); energyShapeA->GetXaxis()->SetLabelSize(0.05); energyShapeA->GetXaxis()->SetTitleSize(0.05); energyShapeA->GetXaxis()->SetTitleFont(42); energyShapeA->GetYaxis()->SetLabelFont(42); energyShapeA->GetYaxis()->SetLabelSize(0.05); energyShapeA->GetYaxis()->SetTitleSize(0.05); energyShapeA->GetYaxis()->SetTitleFont(42); energyShapeA->SetParameter(0,0.8418234); energyShapeA->SetParError(0,0.01188731); energyShapeA->SetParLimits(0,0,0); energyShapeA->SetParameter(1,-0.1050406); energyShapeA->SetParError(1,0.001956692); energyShapeA->SetParLimits(1,0,0); energyShapeA->SetParameter(2,0.001346019); energyShapeA->SetParError(2,0.0001337873); energyShapeA->SetParLimits(2,0,0); energyShapeA->SetParameter(3,0.0001398388); energyShapeA->SetParError(3,7.91853e-06); energyShapeA->SetParLimits(3,0,0); energyShapeA->SetParameter(4,-4.502581e-06); energyShapeA->SetParError(4,4.074071e-07); energyShapeA->SetParLimits(4,0,0); energyShapeA->SetParameter(5,2.883897e-08); energyShapeA->SetParError(5,1.270737e-08); energyShapeA->SetParLimits(5,0,0); rebinnedtimeEnProfHighEMBASlot11__2->GetListOfFunctions()->Add(energyShapeA); 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 = 38942 "); text = ptstats->AddText("Mean = 11.06"); text = ptstats->AddText("Mean y = 0.01755"); text = ptstats->AddText("RMS = 4.039"); text = ptstats->AddText("RMS y = 0.4861"); ptstats->SetOptStat(1110); ptstats->SetOptFit(0); ptstats->Draw(); rebinnedtimeEnProfHighEMBASlot11__2->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(rebinnedtimeEnProfHighEMBASlot11__2); 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()->SetRange(1,28); 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(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); }