{ //=========Macro generated from canvas: cccos/compare event rates //========= (Fri Sep 15 17:21:33 2006) by ROOT version4.04/02 TCanvas *cccos = new TCanvas("cccos", "compare event rates",8,105,600,800); cccos->Range(0,0,1,1); cccos->SetFillColor(0); cccos->SetBorderMode(0); cccos->SetBorderSize(2); cccos->SetFrameBorderMode(0); // ------------>Primitives in pad: cccos_1 TPad *cccos_1 = new TPad("cccos_1", "cccos_1",0.01,0.51,0.99,0.99); cccos_1->Draw(); cccos_1->cd(); cccos_1->Range(-1.25,-0.75,1.25,1.75); cccos_1->SetFillColor(0); cccos_1->SetBorderMode(0); cccos_1->SetBorderSize(2); cccos_1->SetGridx(); cccos_1->SetGridy(); cccos_1->SetFrameBorderMode(0); cccos_1->SetFrameBorderMode(0); TH1 *hdivcose1 = new TH1F("hdivcose1","",10,-1,1); hdivcose1->SetBinContent(1,1.09829); hdivcose1->SetBinContent(2,1.00775); hdivcose1->SetBinContent(3,0.975207); hdivcose1->SetBinContent(4,1.05215); hdivcose1->SetBinContent(5,1.0841); hdivcose1->SetBinContent(6,0.952696); hdivcose1->SetBinContent(7,0.983762); hdivcose1->SetBinContent(8,0.939306); hdivcose1->SetBinContent(9,0.917369); hdivcose1->SetBinContent(10,1.0096); hdivcose1->SetMinimum(-0.5); hdivcose1->SetMaximum(1.5); hdivcose1->SetEntries(6821); hdivcose1->SetStats(0); hdivcose1->SetLineColor(2); hdivcose1->SetMarkerColor(2); hdivcose1->SetMarkerStyle(21); hdivcose1->GetXaxis()->SetTitle("cos#Theta_{#nu}"); hdivcose1->GetXaxis()->SetLabelFont(42); hdivcose1->GetXaxis()->SetTitleFont(42); hdivcose1->GetYaxis()->SetTitle("Oscillation/Non-Oscillation(100 kton#timesyear)"); hdivcose1->Draw("pl"); TH1 *hdivcose2 = new TH1F("hdivcose2","",10,-1,1); hdivcose2->SetBinContent(1,0.997863); hdivcose2->SetBinContent(2,0.984496); hdivcose2->SetBinContent(3,0.985124); hdivcose2->SetBinContent(4,1.13957); hdivcose2->SetBinContent(5,1.06051); hdivcose2->SetBinContent(6,0.92526); hdivcose2->SetBinContent(7,1.0433); hdivcose2->SetBinContent(8,0.943642); hdivcose2->SetBinContent(9,1.00169); hdivcose2->SetBinContent(10,0.923225); hdivcose2->SetEntries(6825); hdivcose2->SetLineColor(3); hdivcose2->SetMarkerColor(3); hdivcose2->SetMarkerStyle(22); hdivcose2->GetXaxis()->SetLabelFont(42); hdivcose2->GetXaxis()->SetTitleFont(42); hdivcose2->Draw("same pl"); TH1 *hdivcose3 = new TH1F("hdivcose3","",10,-1,1); hdivcose3->SetBinContent(1,1.0406); hdivcose3->SetBinContent(2,1.05039); hdivcose3->SetBinContent(3,0.973554); hdivcose3->SetBinContent(4,1.09969); hdivcose3->SetBinContent(5,1.05641); hdivcose3->SetBinContent(6,0.962157); hdivcose3->SetBinContent(7,1.01083); hdivcose3->SetBinContent(8,0.904624); hdivcose3->SetBinContent(9,0.942664); hdivcose3->SetBinContent(10,1.0096); hdivcose3->SetEntries(6840); hdivcose3->SetLineColor(4); hdivcose3->SetMarkerColor(4); hdivcose3->SetMarkerStyle(29); hdivcose3->GetXaxis()->SetLabelFont(42); hdivcose3->GetXaxis()->SetTitleFont(42); hdivcose3->Draw("same pl"); TH1 *hdivcose11 = new TH1F("hdivcose11","",10,-1,1); hdivcose11->SetBinContent(1,1.03846); hdivcose11->SetBinContent(2,1.00194); hdivcose11->SetBinContent(3,0.895868); hdivcose11->SetBinContent(4,1.06442); hdivcose11->SetBinContent(5,1.01538); hdivcose11->SetBinContent(6,1.03406); hdivcose11->SetBinContent(7,1.07307); hdivcose11->SetBinContent(8,0.90896); hdivcose11->SetBinContent(9,0.957841); hdivcose11->SetBinContent(10,0.96929); hdivcose11->SetEntries(6817); hdivcose11->SetLineColor(2); hdivcose11->SetLineStyle(2); hdivcose11->SetLineWidth(2); hdivcose11->SetMarkerColor(2); hdivcose11->SetMarkerStyle(25); hdivcose11->GetXaxis()->SetLabelFont(42); hdivcose11->GetXaxis()->SetTitleFont(42); hdivcose11->Draw("same pl"); TH1 *hdivcose22 = new TH1F("hdivcose22","",10,-1,1); hdivcose22->SetBinContent(1,1.05128); hdivcose22->SetBinContent(2,0.998062); hdivcose22->SetBinContent(3,0.97686); hdivcose22->SetBinContent(4,1.08129); hdivcose22->SetBinContent(5,1.09231); hdivcose22->SetBinContent(6,0.981079); hdivcose22->SetBinContent(7,0.983762); hdivcose22->SetBinContent(8,0.91763); hdivcose22->SetBinContent(9,0.974705); hdivcose22->SetBinContent(10,0.90595); hdivcose22->SetEntries(6817); hdivcose22->SetLineColor(3); hdivcose22->SetLineStyle(2); hdivcose22->SetLineWidth(2); hdivcose22->SetMarkerColor(3); hdivcose22->SetMarkerStyle(26); hdivcose22->GetXaxis()->SetLabelFont(42); hdivcose22->GetXaxis()->SetTitleFont(42); hdivcose22->Draw("same pl"); TH1 *hdivcose33 = new TH1F("hdivcose33","",10,-1,1); hdivcose33->SetBinContent(1,0.995726); hdivcose33->SetBinContent(2,0.992248); hdivcose33->SetBinContent(3,0.980165); hdivcose33->SetBinContent(4,1.1273); hdivcose33->SetBinContent(5,1.04718); hdivcose33->SetBinContent(6,0.935667); hdivcose33->SetBinContent(7,1.00271); hdivcose33->SetBinContent(8,0.92341); hdivcose33->SetBinContent(9,0.976391); hdivcose33->SetBinContent(10,1.06526); hdivcose33->SetEntries(6830); hdivcose33->SetLineColor(4); hdivcose33->SetLineStyle(2); hdivcose33->SetLineWidth(2); hdivcose33->SetMarkerColor(4); hdivcose33->SetMarkerStyle(30); hdivcose33->GetXaxis()->SetLabelFont(42); hdivcose33->GetXaxis()->SetTitleFont(42); hdivcose33->Draw("same pl"); TLatex * tex = new TLatex(0.85,0.85,"#font[42]{#nu_{e}}"); tex->SetNDC(); tex->SetTextSize(0.08); tex->SetLineWidth(2); tex->Draw(); cccos_1->Modified(); cccos->cd(); // ------------>Primitives in pad: cccos_2 cccos_2 = new TPad("cccos_2", "cccos_2",0.01,0.01,0.99,0.49); cccos_2->Draw(); cccos_2->cd(); cccos_2->Range(-1.25,-0.75,1.25,1.75); cccos_2->SetFillColor(0); cccos_2->SetBorderMode(0); cccos_2->SetBorderSize(2); cccos_2->SetGridx(); cccos_2->SetGridy(); cccos_2->SetFrameBorderMode(0); cccos_2->SetFrameBorderMode(0); TH1 *hdivcosmu1 = new TH1F("hdivcosmu1","",10,-1,1); hdivcosmu1->SetBinContent(1,0.473214); hdivcosmu1->SetBinContent(2,0.479492); hdivcosmu1->SetBinContent(3,0.549898); hdivcosmu1->SetBinContent(4,0.541197); hdivcosmu1->SetBinContent(5,0.526035); hdivcosmu1->SetBinContent(6,0.607441); hdivcosmu1->SetBinContent(7,0.874188); hdivcosmu1->SetBinContent(8,1.01805); hdivcosmu1->SetBinContent(9,0.881834); hdivcosmu1->SetBinContent(10,1.01067); hdivcosmu1->SetMinimum(-0.5); hdivcosmu1->SetMaximum(1.5); hdivcosmu1->SetEntries(8114); hdivcosmu1->SetStats(0); hdivcosmu1->SetLineColor(2); hdivcosmu1->SetMarkerColor(2); hdivcosmu1->SetMarkerStyle(21); hdivcosmu1->GetXaxis()->SetTitle("cos#Theta_{#nu}"); hdivcosmu1->GetXaxis()->SetLabelFont(42); hdivcosmu1->GetXaxis()->SetTitleFont(42); hdivcosmu1->GetYaxis()->SetTitle("Oscillation/Non-Oscillation(100 kton#timesyear)"); hdivcosmu1->Draw("pl"); TH1 *hdivcosmu2 = new TH1F("hdivcosmu2","",10,-1,1); hdivcosmu2->SetBinContent(1,0.491071); hdivcosmu2->SetBinContent(2,0.527344); hdivcosmu2->SetBinContent(3,0.52444); hdivcosmu2->SetBinContent(4,0.478751); hdivcosmu2->SetBinContent(5,0.534045); hdivcosmu2->SetBinContent(6,0.683772); hdivcosmu2->SetBinContent(7,0.902597); hdivcosmu2->SetBinContent(8,1.01805); hdivcosmu2->SetBinContent(9,0.970018); hdivcosmu2->SetBinContent(10,1); hdivcosmu2->SetEntries(8339); hdivcosmu2->SetLineColor(3); hdivcosmu2->SetMarkerColor(3); hdivcosmu2->SetMarkerStyle(22); hdivcosmu2->GetXaxis()->SetLabelFont(42); hdivcosmu2->GetXaxis()->SetTitleFont(42); hdivcosmu2->Draw("same pl"); TH1 *hdivcosmu3 = new TH1F("hdivcosmu3","",10,-1,1); hdivcosmu3->SetBinContent(1,0.493056); hdivcosmu3->SetBinContent(2,0.490234); hdivcosmu3->SetBinContent(3,0.58554); hdivcosmu3->SetBinContent(4,0.51431); hdivcosmu3->SetBinContent(5,0.537383); hdivcosmu3->SetBinContent(6,0.631174); hdivcosmu3->SetBinContent(7,0.875); hdivcosmu3->SetBinContent(8,1.03159); hdivcosmu3->SetBinContent(9,0.999118); hdivcosmu3->SetBinContent(10,0.978661); hdivcosmu3->SetEntries(8319); hdivcosmu3->SetLineColor(4); hdivcosmu3->SetMarkerColor(4); hdivcosmu3->SetMarkerStyle(29); hdivcosmu3->GetXaxis()->SetLabelFont(42); hdivcosmu3->GetXaxis()->SetTitleFont(42); hdivcosmu3->Draw("same pl"); TH1 *hdivcosmu11 = new TH1F("hdivcosmu11","",10,-1,1); hdivcosmu11->SetBinContent(1,0.499008); hdivcosmu11->SetBinContent(2,0.530273); hdivcosmu11->SetBinContent(3,0.521385); hdivcosmu11->SetBinContent(4,0.492628); hdivcosmu11->SetBinContent(5,0.49733); hdivcosmu11->SetBinContent(6,0.582425); hdivcosmu11->SetBinContent(7,0.892045); hdivcosmu11->SetBinContent(8,1.0352); hdivcosmu11->SetBinContent(9,0.96649); hdivcosmu11->SetBinContent(10,0.965082); hdivcosmu11->SetEntries(8116); hdivcosmu11->SetLineColor(2); hdivcosmu11->SetLineStyle(2); hdivcosmu11->SetLineWidth(2); hdivcosmu11->SetMarkerColor(2); hdivcosmu11->SetMarkerStyle(25); hdivcosmu11->GetXaxis()->SetLabelFont(42); hdivcosmu11->GetXaxis()->SetTitleFont(42); hdivcosmu11->Draw("same pl"); TH1 *hdivcosmu22 = new TH1F("hdivcosmu22","",10,-1,1); hdivcosmu22->SetBinContent(1,0.477183); hdivcosmu22->SetBinContent(2,0.49707); hdivcosmu22->SetBinContent(3,0.532587); hdivcosmu22->SetBinContent(4,0.458803); hdivcosmu22->SetBinContent(5,0.513351); hdivcosmu22->SetBinContent(6,0.702373); hdivcosmu22->SetBinContent(7,0.94724); hdivcosmu22->SetBinContent(8,1.02256); hdivcosmu22->SetBinContent(9,0.936508); hdivcosmu22->SetBinContent(10,1.01649); hdivcosmu22->SetEntries(8316); hdivcosmu22->SetLineColor(3); hdivcosmu22->SetLineStyle(2); hdivcosmu22->SetLineWidth(2); hdivcosmu22->SetMarkerColor(3); hdivcosmu22->SetMarkerStyle(26); hdivcosmu22->GetXaxis()->SetLabelFont(42); hdivcosmu22->GetXaxis()->SetTitleFont(42); hdivcosmu22->Draw("same pl"); TH1 *hdivcosmu33 = new TH1F("hdivcosmu33","",10,-1,1); hdivcosmu33->SetBinContent(1,0.522817); hdivcosmu33->SetBinContent(2,0.535156); hdivcosmu33->SetBinContent(3,0.535642); hdivcosmu33->SetBinContent(4,0.575889); hdivcosmu33->SetBinContent(5,0.572096); hdivcosmu33->SetBinContent(6,0.617704); hdivcosmu33->SetBinContent(7,0.857955); hdivcosmu33->SetBinContent(8,0.949458); hdivcosmu33->SetBinContent(9,0.962963); hdivcosmu33->SetBinContent(10,1.00291); hdivcosmu33->SetEntries(8320); hdivcosmu33->SetLineColor(4); hdivcosmu33->SetLineStyle(2); hdivcosmu33->SetLineWidth(2); hdivcosmu33->SetMarkerColor(4); hdivcosmu33->SetMarkerStyle(30); hdivcosmu33->GetXaxis()->SetLabelFont(42); hdivcosmu33->GetXaxis()->SetTitleFont(42); hdivcosmu33->Draw("same pl"); tex = new TLatex(0.85,0.85,"#font[42]{#nu_{#mu}}"); tex->SetNDC(); tex->SetTextSize(0.08); tex->SetLineWidth(2); tex->Draw(); cccos_2->Modified(); cccos->cd(); cccos->Modified(); cccos->cd(); cccos->SetSelected(cccos); }