{ //=========Macro generated from canvas: c1/c1 //========= (Tue Jul 17 11:35:06 2012) by ROOT version5.34/00 TCanvas *c1 = new TCanvas("c1", "c1",10,32,700,500); gStyle->SetOptTitle(0); c1->Range(-12.97297,-0.1994854,68.10811,1.047298); 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 xAxis1[57] = {0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60}; TH1D *High Gain Zee (Blue/Green)__5 = new TH1D("High Gain Zee (Blue/Green)__5","HIGH gain, All EMB",56, xAxis1); High Gain Zee (Blue/Green)__5->SetBinContent(2,0.5663523); High Gain Zee (Blue/Green)__5->SetBinContent(3,0.5422544); High Gain Zee (Blue/Green)__5->SetBinContent(4,0.5237539); High Gain Zee (Blue/Green)__5->SetBinContent(5,0.5111953); High Gain Zee (Blue/Green)__5->SetBinContent(6,0.5019175); High Gain Zee (Blue/Green)__5->SetBinContent(7,0.4920253); High Gain Zee (Blue/Green)__5->SetBinContent(8,0.4866974); High Gain Zee (Blue/Green)__5->SetBinContent(9,0.4831166); High Gain Zee (Blue/Green)__5->SetBinContent(10,0.4796027); High Gain Zee (Blue/Green)__5->SetBinContent(11,0.4772935); High Gain Zee (Blue/Green)__5->SetBinContent(12,0.4681285); High Gain Zee (Blue/Green)__5->SetBinContent(13,0.4634389); High Gain Zee (Blue/Green)__5->SetBinContent(14,0.4637354); High Gain Zee (Blue/Green)__5->SetBinContent(15,0.4594541); High Gain Zee (Blue/Green)__5->SetBinContent(16,0.4598561); High Gain Zee (Blue/Green)__5->SetBinContent(17,0.4536879); High Gain Zee (Blue/Green)__5->SetBinContent(18,0.4530569); High Gain Zee (Blue/Green)__5->SetBinContent(19,0.4530553); High Gain Zee (Blue/Green)__5->SetBinContent(20,0.4457571); High Gain Zee (Blue/Green)__5->SetBinContent(21,0.4409922); High Gain Zee (Blue/Green)__5->SetBinContent(22,0.4462172); High Gain Zee (Blue/Green)__5->SetBinContent(23,0.4269367); High Gain Zee (Blue/Green)__5->SetBinContent(24,0.4331732); High Gain Zee (Blue/Green)__5->SetBinContent(25,0.4235667); High Gain Zee (Blue/Green)__5->SetBinContent(26,0.4364953); High Gain Zee (Blue/Green)__5->SetBinContent(27,0.4231668); High Gain Zee (Blue/Green)__5->SetBinContent(28,0.4188531); High Gain Zee (Blue/Green)__5->SetBinContent(29,0.4152711); High Gain Zee (Blue/Green)__5->SetBinContent(30,0.4150148); High Gain Zee (Blue/Green)__5->SetBinContent(31,0.4089571); High Gain Zee (Blue/Green)__5->SetBinContent(32,0.4220392); High Gain Zee (Blue/Green)__5->SetBinContent(33,0.4169335); High Gain Zee (Blue/Green)__5->SetBinContent(34,0.4217136); High Gain Zee (Blue/Green)__5->SetBinContent(35,0.4185807); High Gain Zee (Blue/Green)__5->SetBinContent(36,0.3994542); High Gain Zee (Blue/Green)__5->SetBinContent(37,0.5325038); High Gain Zee (Blue/Green)__5->SetBinContent(38,0.4744765); High Gain Zee (Blue/Green)__5->SetBinError(2,0.003752371); High Gain Zee (Blue/Green)__5->SetBinError(3,0.003200296); High Gain Zee (Blue/Green)__5->SetBinError(4,0.00276966); High Gain Zee (Blue/Green)__5->SetBinError(5,0.002433525); High Gain Zee (Blue/Green)__5->SetBinError(6,0.002290372); High Gain Zee (Blue/Green)__5->SetBinError(7,0.00218168); High Gain Zee (Blue/Green)__5->SetBinError(8,0.002224095); High Gain Zee (Blue/Green)__5->SetBinError(9,0.002187922); High Gain Zee (Blue/Green)__5->SetBinError(10,0.002246835); High Gain Zee (Blue/Green)__5->SetBinError(11,0.002273941); High Gain Zee (Blue/Green)__5->SetBinError(12,0.002375936); High Gain Zee (Blue/Green)__5->SetBinError(13,0.002382803); High Gain Zee (Blue/Green)__5->SetBinError(14,0.002660189); High Gain Zee (Blue/Green)__5->SetBinError(15,0.002905722); High Gain Zee (Blue/Green)__5->SetBinError(16,0.003023804); High Gain Zee (Blue/Green)__5->SetBinError(17,0.003270149); High Gain Zee (Blue/Green)__5->SetBinError(18,0.003576214); High Gain Zee (Blue/Green)__5->SetBinError(19,0.003860193); High Gain Zee (Blue/Green)__5->SetBinError(20,0.004207933); High Gain Zee (Blue/Green)__5->SetBinError(21,0.004749283); High Gain Zee (Blue/Green)__5->SetBinError(22,0.005578738); High Gain Zee (Blue/Green)__5->SetBinError(23,0.00642326); High Gain Zee (Blue/Green)__5->SetBinError(24,0.007367208); High Gain Zee (Blue/Green)__5->SetBinError(25,0.007502765); High Gain Zee (Blue/Green)__5->SetBinError(26,0.008584723); High Gain Zee (Blue/Green)__5->SetBinError(27,0.009627039); High Gain Zee (Blue/Green)__5->SetBinError(28,0.01012852); High Gain Zee (Blue/Green)__5->SetBinError(29,0.01146174); High Gain Zee (Blue/Green)__5->SetBinError(30,0.01255621); High Gain Zee (Blue/Green)__5->SetBinError(31,0.01517023); High Gain Zee (Blue/Green)__5->SetBinError(32,0.01702337); High Gain Zee (Blue/Green)__5->SetBinError(33,0.01870507); High Gain Zee (Blue/Green)__5->SetBinError(34,0.01774582); High Gain Zee (Blue/Green)__5->SetBinError(35,0.02969914); High Gain Zee (Blue/Green)__5->SetBinError(36,0.0261592); High Gain Zee (Blue/Green)__5->SetBinError(37,0.06279145); High Gain Zee (Blue/Green)__5->SetBinError(38,0.08467603); High Gain Zee (Blue/Green)__5->SetEntries(37); High Gain Zee (Blue/Green)__5->SetDirectory(0); TPaveStats *ptstats = new TPaveStats(0.5933908,0.7182203,0.8362069,0.9004237,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("High Gain Zee (Blue/Green)"); text->SetTextSize(0.02793785); text = ptstats->AddText("Entries = 37 "); text = ptstats->AddText("Mean = 22.83"); text = ptstats->AddText("RMS = 10.87"); text = ptstats->AddText("p0 = 2.062 #pm 0.023 "); text = ptstats->AddText("p1 = 0.4471 #pm 0.0010 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain Zee (Blue/Green)__5->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain Zee (Blue/Green)__5); TF1 *res = new TF1("res","sqrt(sq([0]/x)+sq([1]))",0,60); res->SetFillColor(19); res->SetFillStyle(0); res->SetMarkerStyle(20); res->SetMarkerSize(1.2); res->SetLineColor(3); res->SetLineWidth(3); res->SetChisquare(196.3883); res->SetNDF(35); 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,2.061678); res->SetParError(0,0.02303254); res->SetParLimits(0,0,0); res->SetParameter(1,0.4470652); res->SetParError(1,0.0009589633); res->SetParLimits(1,0,0); High Gain Zee (Blue/Green)__5->GetListOfFunctions()->Add(res); High Gain Zee (Blue/Green)__5->SetLineColor(4); High Gain Zee (Blue/Green)__5->SetLineWidth(2); High Gain Zee (Blue/Green)__5->SetMarkerColor(4); High Gain Zee (Blue/Green)__5->SetMarkerStyle(22); High Gain Zee (Blue/Green)__5->SetMarkerSize(1.2); High Gain Zee (Blue/Green)__5->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain Zee (Blue/Green)__5->GetXaxis()->SetLabelFont(42); High Gain Zee (Blue/Green)__5->GetXaxis()->SetLabelSize(0.05); High Gain Zee (Blue/Green)__5->GetXaxis()->SetTitleSize(0.05); High Gain Zee (Blue/Green)__5->GetXaxis()->SetTitleFont(42); High Gain Zee (Blue/Green)__5->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain Zee (Blue/Green)__5->GetYaxis()->SetLabelFont(42); High Gain Zee (Blue/Green)__5->GetYaxis()->SetLabelSize(0.05); High Gain Zee (Blue/Green)__5->GetYaxis()->SetTitleSize(0.05); High Gain Zee (Blue/Green)__5->GetYaxis()->SetTitleFont(42); High Gain Zee (Blue/Green)__5->GetZaxis()->SetLabelFont(42); High Gain Zee (Blue/Green)__5->GetZaxis()->SetLabelSize(0.05); High Gain Zee (Blue/Green)__5->GetZaxis()->SetTitleSize(0.05); High Gain Zee (Blue/Green)__5->GetZaxis()->SetTitleFont(42); High Gain Zee (Blue/Green)__5->Draw(""); Double_t xAxis2[57] = {0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60}; TH1D *High Gain (Black/Red)__6 = new TH1D("High Gain (Black/Red)__6","HIGH gain, All EMB",56, xAxis2); High Gain (Black/Red)__6->SetBinContent(2,0.5849636); High Gain (Black/Red)__6->SetBinContent(3,0.5556923); High Gain (Black/Red)__6->SetBinContent(4,0.5357146); High Gain (Black/Red)__6->SetBinContent(5,0.5201735); High Gain (Black/Red)__6->SetBinContent(6,0.5083335); High Gain (Black/Red)__6->SetBinContent(7,0.5014786); High Gain (Black/Red)__6->SetBinContent(8,0.4923445); High Gain (Black/Red)__6->SetBinContent(9,0.4885387); High Gain (Black/Red)__6->SetBinContent(10,0.4828037); High Gain (Black/Red)__6->SetBinContent(11,0.4767425); High Gain (Black/Red)__6->SetBinContent(12,0.471843); High Gain (Black/Red)__6->SetBinContent(13,0.4693822); High Gain (Black/Red)__6->SetBinContent(14,0.466072); High Gain (Black/Red)__6->SetBinContent(15,0.4618881); High Gain (Black/Red)__6->SetBinContent(16,0.4599695); High Gain (Black/Red)__6->SetBinContent(17,0.4571971); High Gain (Black/Red)__6->SetBinContent(18,0.4583383); High Gain (Black/Red)__6->SetBinContent(19,0.4589459); High Gain (Black/Red)__6->SetBinContent(20,0.4569248); High Gain (Black/Red)__6->SetBinContent(21,0.4531322); High Gain (Black/Red)__6->SetBinContent(22,0.4502226); High Gain (Black/Red)__6->SetBinContent(23,0.4467599); High Gain (Black/Red)__6->SetBinContent(24,0.4401098); High Gain (Black/Red)__6->SetBinContent(25,0.4401187); High Gain (Black/Red)__6->SetBinContent(26,0.4348505); High Gain (Black/Red)__6->SetBinContent(27,0.4333034); High Gain (Black/Red)__6->SetBinContent(28,0.4298691); High Gain (Black/Red)__6->SetBinContent(29,0.4348087); High Gain (Black/Red)__6->SetBinContent(30,0.4289149); High Gain (Black/Red)__6->SetBinContent(31,0.4379879); High Gain (Black/Red)__6->SetBinContent(32,0.4414088); High Gain (Black/Red)__6->SetBinContent(33,0.4379838); High Gain (Black/Red)__6->SetBinContent(34,0.4435572); High Gain (Black/Red)__6->SetBinContent(35,0.4296197); High Gain (Black/Red)__6->SetBinContent(36,0.4630699); High Gain (Black/Red)__6->SetBinContent(37,0.4575195); High Gain (Black/Red)__6->SetBinContent(38,0.4442548); High Gain (Black/Red)__6->SetBinContent(39,0.5290647); High Gain (Black/Red)__6->SetBinContent(40,0.5707939); High Gain (Black/Red)__6->SetBinError(2,0.001170519); High Gain (Black/Red)__6->SetBinError(3,0.0009969454); High Gain (Black/Red)__6->SetBinError(4,0.0009046124); High Gain (Black/Red)__6->SetBinError(5,0.0008606493); High Gain (Black/Red)__6->SetBinError(6,0.0008444442); High Gain (Black/Red)__6->SetBinError(7,0.0008500325); High Gain (Black/Red)__6->SetBinError(8,0.0008829903); High Gain (Black/Red)__6->SetBinError(9,0.0009120848); High Gain (Black/Red)__6->SetBinError(10,0.0009640015); High Gain (Black/Red)__6->SetBinError(11,0.001031218); High Gain (Black/Red)__6->SetBinError(12,0.001098881); High Gain (Black/Red)__6->SetBinError(13,0.001190654); High Gain (Black/Red)__6->SetBinError(14,0.001280793); High Gain (Black/Red)__6->SetBinError(15,0.001390864); High Gain (Black/Red)__6->SetBinError(16,0.00155136); High Gain (Black/Red)__6->SetBinError(17,0.001642563); High Gain (Black/Red)__6->SetBinError(18,0.001810012); High Gain (Black/Red)__6->SetBinError(19,0.002055549); High Gain (Black/Red)__6->SetBinError(20,0.002251866); High Gain (Black/Red)__6->SetBinError(21,0.002479682); High Gain (Black/Red)__6->SetBinError(22,0.002836853); High Gain (Black/Red)__6->SetBinError(23,0.003242915); High Gain (Black/Red)__6->SetBinError(24,0.003625892); High Gain (Black/Red)__6->SetBinError(25,0.003981137); High Gain (Black/Red)__6->SetBinError(26,0.004106411); High Gain (Black/Red)__6->SetBinError(27,0.004505891); High Gain (Black/Red)__6->SetBinError(28,0.004729894); High Gain (Black/Red)__6->SetBinError(29,0.005138303); High Gain (Black/Red)__6->SetBinError(30,0.005570387); High Gain (Black/Red)__6->SetBinError(31,0.005937313); High Gain (Black/Red)__6->SetBinError(32,0.00649294); High Gain (Black/Red)__6->SetBinError(33,0.006845123); High Gain (Black/Red)__6->SetBinError(34,0.007445614); High Gain (Black/Red)__6->SetBinError(35,0.007915453); High Gain (Black/Red)__6->SetBinError(36,0.008719982); High Gain (Black/Red)__6->SetBinError(37,0.01145115); High Gain (Black/Red)__6->SetBinError(38,0.01533721); High Gain (Black/Red)__6->SetBinError(39,0.0327031); High Gain (Black/Red)__6->SetBinError(40,0.09378544); High Gain (Black/Red)__6->SetEntries(39); High Gain (Black/Red)__6->SetDirectory(0); ptstats = new TPaveStats(0.295977,0.7182203,0.533046,0.8792373,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); text = ptstats->AddText("High Gain (Black/Red)"); text->SetTextSize(0.02468927); text = ptstats->AddText("Entries = 39 "); text = ptstats->AddText("Mean = 24.04"); text = ptstats->AddText("RMS = 11.55"); text = ptstats->AddText("p0 = 2.134 #pm 0.008 "); text = ptstats->AddText("p1 = 0.452 #pm 0.000 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain (Black/Red)__6->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain (Black/Red)__6); TF1 *res = new TF1("res","sqrt(sq([0]/x)+sq([1]))",0,60); res->SetFillColor(19); res->SetFillStyle(0); res->SetMarkerStyle(20); res->SetMarkerSize(1.2); res->SetLineColor(2); res->SetLineWidth(3); res->SetChisquare(557.7274); res->SetNDF(37); 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,2.133896); res->SetParError(0,0.008015812); res->SetParLimits(0,0,0); res->SetParameter(1,0.4519903); res->SetParError(1,0.0004203045); res->SetParLimits(1,0,0); High Gain (Black/Red)__6->GetListOfFunctions()->Add(res); High Gain (Black/Red)__6->SetLineWidth(2); High Gain (Black/Red)__6->SetMarkerStyle(20); High Gain (Black/Red)__6->SetMarkerSize(1.2); High Gain (Black/Red)__6->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain (Black/Red)__6->GetXaxis()->SetLabelFont(42); High Gain (Black/Red)__6->GetXaxis()->SetLabelSize(0.05); High Gain (Black/Red)__6->GetXaxis()->SetTitleSize(0.05); High Gain (Black/Red)__6->GetXaxis()->SetTitleFont(42); High Gain (Black/Red)__6->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain (Black/Red)__6->GetYaxis()->SetLabelFont(42); High Gain (Black/Red)__6->GetYaxis()->SetLabelSize(0.05); High Gain (Black/Red)__6->GetYaxis()->SetTitleSize(0.05); High Gain (Black/Red)__6->GetYaxis()->SetTitleFont(42); High Gain (Black/Red)__6->GetZaxis()->SetLabelFont(42); High Gain (Black/Red)__6->GetZaxis()->SetLabelSize(0.05); High Gain (Black/Red)__6->GetZaxis()->SetTitleSize(0.05); High Gain (Black/Red)__6->GetZaxis()->SetTitleFont(42); High Gain (Black/Red)__6->Draw("sames"); c1->Modified(); c1->cd(); c1->SetSelected(c1); }