Newer
Older
Presentations / NuFact_2016 / LongLive / images / Fig1aS.C
@mchrzasz mchrzasz on 11 Aug 2016 11 KB addedd NuFact slides
{
//=========Macro generated from canvas: c1/
//=========  (Sat Aug 15 13:34:25 2015) by ROOT version5.34/05
   TCanvas *c1 = new TCanvas("c1", "",25,47,700,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(-0.30125,-2.45625,4.81125,3.16875);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetTopMargin(0.03);
   c1->SetBottomMargin(0.17);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   
   TH1F *h__1 = new TH1F("h__1","",1,0.21,4.3);
   h__1->SetMinimum(-1.5);
   h__1->SetMaximum(3);
   h__1->SetDirectory(0);
   h__1->SetStats(0);
   h__1->SetLineWidth(2);
   h__1->SetMarkerStyle(8);
   h__1->GetXaxis()->SetTitle("#it{m}(#it{#mu^{+}#mu^{#font[122]{-}}}) [GeV]");
   h__1->GetXaxis()->SetNdivisions(505);
   h__1->GetXaxis()->SetLabelFont(132);
   h__1->GetXaxis()->SetLabelSize(0.06);
   h__1->GetXaxis()->SetTitleSize(0.072);
   h__1->GetXaxis()->SetTitleFont(132);
   h__1->GetYaxis()->SetTitle("value relative to 1c");
   h__1->GetYaxis()->SetNdivisions(505);
   h__1->GetYaxis()->SetLabelFont(132);
   h__1->GetYaxis()->SetLabelSize(0.06);
   h__1->GetYaxis()->SetTitleSize(0.072);
   h__1->GetYaxis()->SetTitleOffset(0.6);
   h__1->GetYaxis()->SetTitleFont(132);
   h__1->GetZaxis()->SetLabelFont(132);
   h__1->GetZaxis()->SetLabelSize(0.06);
   h__1->GetZaxis()->SetTitleSize(0.072);
   h__1->GetZaxis()->SetTitleFont(132);
   h__1->Draw("");
   
   TGraph *graph = new TGraph(43);
   graph->SetName("g1");
   graph->SetTitle("Graph");
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(8);
   graph->SetPoint(0,0.21,2.370323985);
   graph->SetPoint(1,0.31,2.364869788);
   graph->SetPoint(2,0.41,2.36614942);
   graph->SetPoint(3,0.51,2.357513493);
   graph->SetPoint(4,0.61,2.341920259);
   graph->SetPoint(5,0.71,2.340192146);
   graph->SetPoint(6,0.81,2.350301162);
   graph->SetPoint(7,0.91,2.350220246);
   graph->SetPoint(8,1.01,2.332654395);
   graph->SetPoint(9,1.11,2.357445282);
   graph->SetPoint(10,1.21,2.35134261);
   graph->SetPoint(11,1.31,2.343699368);
   graph->SetPoint(12,1.41,2.353638303);
   graph->SetPoint(13,1.51,2.345360455);
   graph->SetPoint(14,1.61,2.360029782);
   graph->SetPoint(15,1.71,2.379487793);
   graph->SetPoint(16,1.81,2.386129001);
   graph->SetPoint(17,1.91,2.393942527);
   graph->SetPoint(18,2.01,2.396817698);
   graph->SetPoint(19,2.11,2.408728613);
   graph->SetPoint(20,2.21,2.420295496);
   graph->SetPoint(21,2.31,2.401618755);
   graph->SetPoint(22,2.41,2.41516382);
   graph->SetPoint(23,2.51,2.417569363);
   graph->SetPoint(24,2.61,2.429243333);
   graph->SetPoint(25,2.71,2.409611106);
   graph->SetPoint(26,2.81,2.395993537);
   graph->SetPoint(27,2.91,2.408120897);
   graph->SetPoint(28,3.01,2.383202588);
   graph->SetPoint(29,3.11,2.381549141);
   graph->SetPoint(30,3.21,2.402304072);
   graph->SetPoint(31,3.31,2.412334567);
   graph->SetPoint(32,3.41,2.412412849);
   graph->SetPoint(33,3.51,2.431711226);
   graph->SetPoint(34,3.61,2.454342979);
   graph->SetPoint(35,3.71,2.495677143);
   graph->SetPoint(36,3.81,2.522651192);
   graph->SetPoint(37,3.91,2.552740216);
   graph->SetPoint(38,4.01,2.544823761);
   graph->SetPoint(39,4.11,2.542206342);
   graph->SetPoint(40,4.21,2.426120523);
   graph->SetPoint(41,4.31,2.228080105);
   graph->SetPoint(42,4.41,1.909045256);
   
   TH1F *Graph_g11 = new TH1F("Graph_g11","Graph",100,0,4.83);
   Graph_g11->SetMinimum(1.844676);
   Graph_g11->SetMaximum(2.61711);
   Graph_g11->SetDirectory(0);
   Graph_g11->SetStats(0);
   Graph_g11->SetLineWidth(2);
   Graph_g11->SetMarkerStyle(8);
   Graph_g11->GetXaxis()->SetNdivisions(505);
   Graph_g11->GetXaxis()->SetLabelFont(132);
   Graph_g11->GetXaxis()->SetLabelSize(0.06);
   Graph_g11->GetXaxis()->SetTitleSize(0.072);
   Graph_g11->GetXaxis()->SetTitleFont(132);
   Graph_g11->GetYaxis()->SetNdivisions(505);
   Graph_g11->GetYaxis()->SetLabelFont(132);
   Graph_g11->GetYaxis()->SetLabelSize(0.06);
   Graph_g11->GetYaxis()->SetTitleSize(0.072);
   Graph_g11->GetYaxis()->SetTitleFont(132);
   Graph_g11->GetZaxis()->SetLabelFont(132);
   Graph_g11->GetZaxis()->SetLabelSize(0.06);
   Graph_g11->GetZaxis()->SetTitleSize(0.072);
   Graph_g11->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_g11);
   
   graph->Draw("l");
   
   graph = new TGraph(43);
   graph->SetName("g3");
   graph->SetTitle("Graph");
   graph->SetLineColor(2);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(8);
   graph->SetPoint(0,0.21,-1.106574033);
   graph->SetPoint(1,0.31,-1.105891467);
   graph->SetPoint(2,0.41,-1.110598652);
   graph->SetPoint(3,0.51,-1.105856179);
   graph->SetPoint(4,0.61,-1.101725629);
   graph->SetPoint(5,0.71,-1.103648279);
   graph->SetPoint(6,0.81,-1.103254291);
   graph->SetPoint(7,0.91,-1.10087506);
   graph->SetPoint(8,1.01,-1.088517217);
   graph->SetPoint(9,1.11,-1.085218058);
   graph->SetPoint(10,1.21,-1.074792737);
   graph->SetPoint(11,1.31,-1.051294639);
   graph->SetPoint(12,1.41,-1.042487687);
   graph->SetPoint(13,1.51,-1.024216408);
   graph->SetPoint(14,1.61,-0.9987060783);
   graph->SetPoint(15,1.71,-0.9863154187);
   graph->SetPoint(16,1.81,-0.9634584623);
   graph->SetPoint(17,1.91,-0.9418747937);
   graph->SetPoint(18,2.01,-0.9060349102);
   graph->SetPoint(19,2.11,-0.8772012213);
   graph->SetPoint(20,2.21,-0.8556640813);
   graph->SetPoint(21,2.31,-0.8212858789);
   graph->SetPoint(22,2.41,-0.7947760791);
   graph->SetPoint(23,2.51,-0.7898835409);
   graph->SetPoint(24,2.61,-0.7696785335);
   graph->SetPoint(25,2.71,-0.756291874);
   graph->SetPoint(26,2.81,-0.7313604472);
   graph->SetPoint(27,2.91,-0.7272203713);
   graph->SetPoint(28,3.01,-0.7230680794);
   graph->SetPoint(29,3.11,-0.7070915127);
   graph->SetPoint(30,3.21,-0.7162483953);
   graph->SetPoint(31,3.31,-0.7089728009);
   graph->SetPoint(32,3.41,-0.7132689389);
   graph->SetPoint(33,3.51,-0.7258400762);
   graph->SetPoint(34,3.61,-0.7417605808);
   graph->SetPoint(35,3.71,-0.7531413155);
   graph->SetPoint(36,3.81,-0.7721823226);
   graph->SetPoint(37,3.91,-0.7704706642);
   graph->SetPoint(38,4.01,-0.7673168078);
   graph->SetPoint(39,4.11,-0.7857856949);
   graph->SetPoint(40,4.21,-0.7630762525);
   graph->SetPoint(41,4.31,-0.7293463627);
   graph->SetPoint(42,4.41,-0.680960849);
   
   TH1F *Graph_g32 = new TH1F("Graph_g32","Graph",100,0,4.83);
   Graph_g32->SetMinimum(-1.153562);
   Graph_g32->SetMaximum(-0.6379971);
   Graph_g32->SetDirectory(0);
   Graph_g32->SetStats(0);
   Graph_g32->SetLineWidth(2);
   Graph_g32->SetMarkerStyle(8);
   Graph_g32->GetXaxis()->SetNdivisions(505);
   Graph_g32->GetXaxis()->SetLabelFont(132);
   Graph_g32->GetXaxis()->SetLabelSize(0.06);
   Graph_g32->GetXaxis()->SetTitleSize(0.072);
   Graph_g32->GetXaxis()->SetTitleFont(132);
   Graph_g32->GetYaxis()->SetNdivisions(505);
   Graph_g32->GetYaxis()->SetLabelFont(132);
   Graph_g32->GetYaxis()->SetLabelSize(0.06);
   Graph_g32->GetYaxis()->SetTitleSize(0.072);
   Graph_g32->GetYaxis()->SetTitleFont(132);
   Graph_g32->GetZaxis()->SetLabelFont(132);
   Graph_g32->GetZaxis()->SetLabelSize(0.06);
   Graph_g32->GetZaxis()->SetTitleSize(0.072);
   Graph_g32->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_g32);
   
   graph->Draw("l");
   
   graph = new TGraph(43);
   graph->SetName("g4");
   graph->SetTitle("Graph");
   graph->SetLineColor(4);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(8);
   graph->SetPoint(0,0.21,-0.453497003);
   graph->SetPoint(1,0.31,-0.4508770926);
   graph->SetPoint(2,0.41,-0.4546707068);
   graph->SetPoint(3,0.51,-0.4574487977);
   graph->SetPoint(4,0.61,-0.4594072692);
   graph->SetPoint(5,0.71,-0.4608800559);
   graph->SetPoint(6,0.81,-0.4639878718);
   graph->SetPoint(7,0.91,-0.4629862938);
   graph->SetPoint(8,1.01,-0.4625763466);
   graph->SetPoint(9,1.11,-0.460779535);
   graph->SetPoint(10,1.21,-0.4574304367);
   graph->SetPoint(11,1.31,-0.4487868767);
   graph->SetPoint(12,1.41,-0.4443815137);
   graph->SetPoint(13,1.51,-0.4375178942);
   graph->SetPoint(14,1.61,-0.4275004692);
   graph->SetPoint(15,1.71,-0.4170490322);
   graph->SetPoint(16,1.81,-0.4060145474);
   graph->SetPoint(17,1.91,-0.3939273537);
   graph->SetPoint(18,2.01,-0.3794519132);
   graph->SetPoint(19,2.11,-0.3625998433);
   graph->SetPoint(20,2.21,-0.3554866047);
   graph->SetPoint(21,2.31,-0.344394938);
   graph->SetPoint(22,2.41,-0.3311350763);
   graph->SetPoint(23,2.51,-0.324800247);
   graph->SetPoint(24,2.61,-0.3131730312);
   graph->SetPoint(25,2.71,-0.3072473516);
   graph->SetPoint(26,2.81,-0.3089113405);
   graph->SetPoint(27,2.91,-0.3054927521);
   graph->SetPoint(28,3.01,-0.3040717389);
   graph->SetPoint(29,3.11,-0.3066102197);
   graph->SetPoint(30,3.21,-0.3064668186);
   graph->SetPoint(31,3.31,-0.3073561779);
   graph->SetPoint(32,3.41,-0.3089611094);
   graph->SetPoint(33,3.51,-0.3119183256);
   graph->SetPoint(34,3.61,-0.3164618345);
   graph->SetPoint(35,3.71,-0.3150845479);
   graph->SetPoint(36,3.81,-0.312732702);
   graph->SetPoint(37,3.91,-0.3079236656);
   graph->SetPoint(38,4.01,-0.3032619742);
   graph->SetPoint(39,4.11,-0.3002045763);
   graph->SetPoint(40,4.21,-0.3094558599);
   graph->SetPoint(41,4.31,-0.3194600724);
   graph->SetPoint(42,4.41,-0.3574661135);
   
   TH1F *Graph_g43 = new TH1F("Graph_g43","Graph",100,0,4.83);
   Graph_g43->SetMinimum(-0.4803662);
   Graph_g43->SetMaximum(-0.2838262);
   Graph_g43->SetDirectory(0);
   Graph_g43->SetStats(0);
   Graph_g43->SetLineWidth(2);
   Graph_g43->SetMarkerStyle(8);
   Graph_g43->GetXaxis()->SetNdivisions(505);
   Graph_g43->GetXaxis()->SetLabelFont(132);
   Graph_g43->GetXaxis()->SetLabelSize(0.06);
   Graph_g43->GetXaxis()->SetTitleSize(0.072);
   Graph_g43->GetXaxis()->SetTitleFont(132);
   Graph_g43->GetYaxis()->SetNdivisions(505);
   Graph_g43->GetYaxis()->SetLabelFont(132);
   Graph_g43->GetYaxis()->SetLabelSize(0.06);
   Graph_g43->GetYaxis()->SetTitleSize(0.072);
   Graph_g43->GetYaxis()->SetTitleFont(132);
   Graph_g43->GetZaxis()->SetLabelFont(132);
   Graph_g43->GetZaxis()->SetLabelSize(0.06);
   Graph_g43->GetZaxis()->SetTitleSize(0.072);
   Graph_g43->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_g43);
   
   graph->Draw("l");
   TLine *line = new TLine(0.214,2,4.35,2);
   line->SetLineStyle(2);
   line->SetLineWidth(2);
   line->Draw();
   line = new TLine(0.214,-0.6666667,4.35,-0.6666667);
   line->SetLineColor(2);
   line->SetLineStyle(2);
   line->SetLineWidth(2);
   line->Draw();
   line = new TLine(0.214,-0.3333333,4.35,-0.3333333);
   line->SetLineColor(4);
   line->SetLineStyle(2);
   line->SetLineWidth(2);
   line->Draw();
   TText *text = new TText(1,1,"LHCb");
   text->SetTextAlign(22);
   text->SetTextFont(132);
   text->SetTextSize(0.072);
   text->Draw();
   text = new TText(4.5,2,"1s");
   text->SetTextAlign(22);
   text->SetTextFont(132);
   text->SetTextSize(0.072);
   text->Draw();
   text = new TText(4.5,-0.6666667,"2s");
   text->SetTextAlign(22);
   text->SetTextColor(2);
   text->SetTextFont(132);
   text->SetTextSize(0.072);
   text->Draw();
   text = new TText(4.5,-0.3333333,"2c");
   text->SetTextAlign(22);
   text->SetTextColor(4);
   text->SetTextFont(132);
   text->SetTextSize(0.072);
   text->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}