Ejemplo n.º 1
0
void fitWM2testbkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Sat May  7 16:37:03 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(230.8642,-26.4,724.6914,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_3ccfe90__1 = new TH1D("frame_3ccfe90__1","",100,300,700);
   frame_3ccfe90__1->SetBinContent(1,5.10717);
   frame_3ccfe90__1->SetMinimum(-8.8);
   frame_3ccfe90__1->SetMaximum(8.8);
   frame_3ccfe90__1->SetEntries(1);
   frame_3ccfe90__1->SetDirectory(0);
   frame_3ccfe90__1->SetStats(0);
   frame_3ccfe90__1->SetLineWidth(2);
   frame_3ccfe90__1->SetMarkerStyle(20);
   frame_3ccfe90__1->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_3ccfe90__1->GetXaxis()->SetNdivisions(505);
   frame_3ccfe90__1->GetXaxis()->SetLabelFont(132);
   frame_3ccfe90__1->GetXaxis()->SetLabelOffset(0.01);
   frame_3ccfe90__1->GetXaxis()->SetLabelSize(0.15);
   frame_3ccfe90__1->GetXaxis()->SetTitleSize(0.2);
   frame_3ccfe90__1->GetXaxis()->SetTitleOffset(1.1);
   frame_3ccfe90__1->GetXaxis()->SetTitleFont(132);
   frame_3ccfe90__1->GetYaxis()->SetTitle("Pull");
   frame_3ccfe90__1->GetYaxis()->CenterTitle(true);
   frame_3ccfe90__1->GetYaxis()->SetNdivisions(505);
   frame_3ccfe90__1->GetYaxis()->SetLabelFont(132);
   frame_3ccfe90__1->GetYaxis()->SetLabelOffset(0.01);
   frame_3ccfe90__1->GetYaxis()->SetLabelSize(0.15);
   frame_3ccfe90__1->GetYaxis()->SetTitleSize(0.15);
   frame_3ccfe90__1->GetYaxis()->SetTitleOffset(0.45);
   frame_3ccfe90__1->GetYaxis()->SetTitleFont(132);
   frame_3ccfe90__1->GetZaxis()->SetLabelFont(132);
   frame_3ccfe90__1->GetZaxis()->SetLabelSize(0.06);
   frame_3ccfe90__1->GetZaxis()->SetTitleSize(0.072);
   frame_3ccfe90__1->GetZaxis()->SetTitleOffset(1.2);
   frame_3ccfe90__1->GetZaxis()->SetTitleFont(132);
   frame_3ccfe90__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[35] = {
   322,
   326,
   330,
   334,
   338,
   342,
   346,
   350,
   354,
   358,
   362,
   366,
   370,
   374,
   378,
   382,
   386,
   390,
   394,
   398,
   402,
   406,
   410,
   414,
   418,
   422,
   426,
   430,
   434,
   438,
   442,
   446,
   450,
   454,
   458};
   Double_t pull_Hist_curvetot_fy3001[35] = {
   -14.37582,
   -1.231303,
   0.6542373,
   -0.1012747,
   0.6586727,
   0.9361556,
   1.585286,
   1.240297,
   3.131789,
   2.962823,
   1.838456,
   -0.2757796,
   2.151454,
   1.076709,
   1.552119,
   0.04534553,
   0.6586382,
   -0.3716997,
   0.7208352,
   -1.282129,
   -0.7404776,
   1.910613,
   -0.8040488,
   0.1550784,
   0.6914252,
   -0.5314845,
   -2.311921,
   -0.1689179,
   -0.9708803,
   0.1380298,
   -1.732067,
   -2.863975,
   -2.350354,
   0.6556862,
   -1.221229};
   Double_t pull_Hist_curvetot_felx3001[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[35] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[35] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(35,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_WM and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_WM and Projection of totalPdf",100,308.4,471.6);
   Graph_pull_Hist_curvetot3001->SetMinimum(-17.32658);
   Graph_pull_Hist_curvetot3001->SetMaximum(6.082551);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_3ccfe90__2 = new TH1D("frame_3ccfe90__2","",100,300,700);
   frame_3ccfe90__2->SetBinContent(1,5.10717);
   frame_3ccfe90__2->SetMinimum(-8.8);
   frame_3ccfe90__2->SetMaximum(8.8);
   frame_3ccfe90__2->SetEntries(1);
   frame_3ccfe90__2->SetDirectory(0);
   frame_3ccfe90__2->SetStats(0);
   frame_3ccfe90__2->SetLineWidth(2);
   frame_3ccfe90__2->SetMarkerStyle(20);
   frame_3ccfe90__2->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_3ccfe90__2->GetXaxis()->SetNdivisions(505);
   frame_3ccfe90__2->GetXaxis()->SetLabelFont(132);
   frame_3ccfe90__2->GetXaxis()->SetLabelOffset(0.01);
   frame_3ccfe90__2->GetXaxis()->SetLabelSize(0.15);
   frame_3ccfe90__2->GetXaxis()->SetTitleSize(0.2);
   frame_3ccfe90__2->GetXaxis()->SetTitleOffset(1.1);
   frame_3ccfe90__2->GetXaxis()->SetTitleFont(132);
   frame_3ccfe90__2->GetYaxis()->SetTitle("Pull");
   frame_3ccfe90__2->GetYaxis()->CenterTitle(true);
   frame_3ccfe90__2->GetYaxis()->SetNdivisions(505);
   frame_3ccfe90__2->GetYaxis()->SetLabelFont(132);
   frame_3ccfe90__2->GetYaxis()->SetLabelOffset(0.01);
   frame_3ccfe90__2->GetYaxis()->SetLabelSize(0.15);
   frame_3ccfe90__2->GetYaxis()->SetTitleSize(0.15);
   frame_3ccfe90__2->GetYaxis()->SetTitleOffset(0.45);
   frame_3ccfe90__2->GetYaxis()->SetTitleFont(132);
   frame_3ccfe90__2->GetZaxis()->SetLabelFont(132);
   frame_3ccfe90__2->GetZaxis()->SetLabelSize(0.06);
   frame_3ccfe90__2->GetZaxis()->SetTitleSize(0.072);
   frame_3ccfe90__2->GetZaxis()->SetTitleOffset(1.2);
   frame_3ccfe90__2->GetZaxis()->SetTitleFont(132);
   frame_3ccfe90__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(230.8642,0,724.6914,1257.834);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_34f0720__3 = new TH1D("frame_34f0720__3","A RooPlot of \"m(#pi p#rightarrow#pi)\"",100,300,700);
   frame_34f0720__3->SetBinContent(1,1182.364);
   frame_34f0720__3->SetMaximum(1182.364);
   frame_34f0720__3->SetEntries(1);
   frame_34f0720__3->SetDirectory(0);
   frame_34f0720__3->SetStats(0);
   frame_34f0720__3->SetLineWidth(2);
   frame_34f0720__3->SetMarkerStyle(20);
   frame_34f0720__3->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_34f0720__3->GetXaxis()->SetNdivisions(505);
   frame_34f0720__3->GetXaxis()->SetLabelFont(132);
   frame_34f0720__3->GetXaxis()->SetLabelOffset(0.01);
   frame_34f0720__3->GetXaxis()->SetLabelSize(0.06);
   frame_34f0720__3->GetXaxis()->SetTitleSize(0.072);
   frame_34f0720__3->GetXaxis()->SetTitleOffset(0.95);
   frame_34f0720__3->GetXaxis()->SetTitleFont(132);
   frame_34f0720__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_34f0720__3->GetYaxis()->SetLabelFont(132);
   frame_34f0720__3->GetYaxis()->SetLabelOffset(0.01);
   frame_34f0720__3->GetYaxis()->SetLabelSize(0.06);
   frame_34f0720__3->GetYaxis()->SetTitleSize(0.072);
   frame_34f0720__3->GetYaxis()->SetTitleOffset(0.95);
   frame_34f0720__3->GetYaxis()->SetTitleFont(132);
   frame_34f0720__3->GetZaxis()->SetLabelFont(132);
   frame_34f0720__3->GetZaxis()->SetLabelSize(0.06);
   frame_34f0720__3->GetZaxis()->SetTitleSize(0.072);
   frame_34f0720__3->GetZaxis()->SetTitleOffset(1.2);
   frame_34f0720__3->GetZaxis()->SetTitleFont(132);
   frame_34f0720__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   302,
   306,
   310,
   314,
   318,
   322,
   326,
   330,
   334,
   338,
   342,
   346,
   350,
   354,
   358,
   362,
   366,
   370,
   374,
   378,
   382,
   386,
   390,
   394,
   398,
   402,
   406,
   410,
   414,
   418,
   422,
   426,
   430,
   434,
   438,
   442,
   446,
   450,
   454,
   458,
   462,
   466,
   470,
   474,
   478,
   482,
   486,
   490,
   494,
   498,
   502,
   506,
   510,
   514,
   518,
   522,
   526,
   530,
   534,
   538,
   542,
   546,
   550,
   554,
   558,
   562,
   566,
   570,
   574,
   578,
   582,
   586,
   590,
   594,
   598,
   602,
   606,
   610,
   614,
   618,
   622,
   626,
   630,
   634,
   638,
   642,
   646,
   650,
   654,
   658,
   662,
   666,
   670,
   674,
   678,
   682,
   686,
   690,
   694,
   698};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   49,
   150,
   189,
   193,
   218,
   236,
   260,
   267,
   314,
   323,
   313,
   286,
   340,
   329,
   347,
   327,
   346,
   334,
   361,
   330,
   345,
   402,
   353,
   375,
   389,
   368,
   338,
   379,
   365,
   387,
   352,
   332,
   340,
   395,
   357,
   331,
   347,
   354,
   377,
   368,
   460,
   538,
   677,
   916,
   1093,
   919,
   645,
   486,
   368,
   306,
   271,
   268,
   239,
   204,
   194,
   222,
   168,
   147,
   135,
   118,
   98,
   88,
   43,
   27,
   8,
   3,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   7,
   12.24745,
   13.74773,
   13.89244,
   14.76482,
   15.36229,
   16.12452,
   16.34013,
   17.72005,
   17.9722,
   17.69181,
   16.91153,
   18.43909,
   18.13836,
   18.62794,
   18.08314,
   18.60108,
   18.27567,
   19,
   18.1659,
   18.57418,
   20.04994,
   18.78829,
   19.36492,
   19.72308,
   19.18333,
   18.38478,
   19.46792,
   19.10497,
   19.67232,
   18.76166,
   18.22087,
   18.43909,
   19.87461,
   18.89444,
   18.19341,
   18.62794,
   18.81489,
   19.41649,
   19.18333,
   21.44761,
   23.19483,
   26.01922,
   30.26549,
   33.06055,
   30.31501,
   25.39685,
   22.04541,
   19.18333,
   17.49286,
   16.46208,
   16.37071,
   15.45962,
   14.28286,
   13.92839,
   14.89966,
   12.96148,
   12.12436,
   11.61895,
   10.86278,
   9.899495,
   9.380832,
   6.557439,
   5.196152,
   2.828427,
   1.732051,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   7,
   12.24745,
   13.74773,
   13.89244,
   14.76482,
   15.36229,
   16.12452,
   16.34013,
   17.72005,
   17.9722,
   17.69181,
   16.91153,
   18.43909,
   18.13836,
   18.62794,
   18.08314,
   18.60108,
   18.27567,
   19,
   18.1659,
   18.57418,
   20.04994,
   18.78829,
   19.36492,
   19.72308,
   19.18333,
   18.38478,
   19.46792,
   19.10497,
   19.67232,
   18.76166,
   18.22087,
   18.43909,
   19.87461,
   18.89444,
   18.19341,
   18.62794,
   18.81489,
   19.41649,
   19.18333,
   21.44761,
   23.19483,
   26.01922,
   30.26549,
   33.06055,
   30.31501,
   25.39685,
   22.04541,
   19.18333,
   17.49286,
   16.46208,
   16.37071,
   15.45962,
   14.28286,
   13.92839,
   14.89966,
   12.96148,
   12.12436,
   11.61895,
   10.86278,
   9.899495,
   9.380832,
   6.557439,
   5.196152,
   2.828427,
   1.732051,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_WM");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_WM",100,260,740);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(1238.667);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   320,
   321.4,
   322.8,
   324.2,
   325.6,
   327,
   328.4,
   329.8,
   331.2,
   332.6,
   334,
   335.4,
   336.8,
   338.2,
   339.6,
   341,
   342.4,
   343.8,
   345.2,
   346.6,
   348,
   349.4,
   350.8,
   352.2,
   353.6,
   355,
   356.4,
   357.8,
   359.2,
   360.6,
   362,
   363.4,
   364.8,
   366.2,
   367.6,
   369,
   370.4,
   371.8,
   373.2,
   374.6,
   376,
   377.4,
   378.8,
   380.2,
   381.6,
   383,
   384.4,
   385.8,
   387.2,
   388.6,
   390,
   391.4,
   392.8,
   394.2,
   395.6,
   397,
   398.4,
   399.8,
   401.2,
   402.6,
   404,
   405.4,
   406.8,
   408.2,
   409.6,
   411,
   412.4,
   413.8,
   415.2,
   416.6,
   418,
   419.4,
   420.8,
   422.2,
   423.6,
   425,
   426.4,
   427.8,
   429.2,
   430.6,
   432,
   433.4,
   434.8,
   436.2,
   437.6,
   439,
   440.4,
   441.8,
   443.2,
   444.6,
   446,
   447.4,
   448.8,
   450.2,
   451.6,
   453,
   454.4,
   455.8,
   457.2,
   458.6,
   460,
   460};
   Double_t curvetot_fy1[102] = {
   141.7174,
   147.2761,
   152.7703,
   158.2002,
   163.5657,
   168.8668,
   174.1036,
   179.276,
   184.384,
   189.4277,
   194.407,
   199.3219,
   204.1724,
   208.9586,
   213.6803,
   218.3378,
   222.9308,
   227.4595,
   231.9238,
   236.3237,
   240.6593,
   244.9305,
   249.1373,
   253.2797,
   257.3578,
   261.3715,
   265.3208,
   269.2058,
   273.0263,
   276.7826,
   280.4744,
   284.1019,
   287.665,
   291.1637,
   294.598,
   297.968,
   301.2736,
   304.5148,
   307.6917,
   310.8042,
   313.8523,
   316.8361,
   319.7554,
   322.6104,
   325.4011,
   328.1273,
   330.7892,
   333.3867,
   335.9199,
   338.3887,
   340.7931,
   343.1331,
   345.4087,
   347.62,
   349.7669,
   351.8495,
   353.8677,
   355.8214,
   357.7109,
   359.5359,
   361.2966,
   362.9929,
   364.6249,
   366.1924,
   367.6956,
   369.1344,
   370.5089,
   371.819,
   373.0647,
   374.246,
   375.363,
   376.4156,
   377.4038,
   378.3276,
   379.1871,
   379.9822,
   380.7129,
   381.3793,
   381.9813,
   382.5189,
   382.9921,
   383.401,
   383.7455,
   384.0256,
   384.2414,
   384.3928,
   384.4798,
   384.5024,
   384.4607,
   384.3546,
   384.1841,
   383.9493,
   383.65,
   383.2864,
   382.8585,
   382.3661,
   381.8094,
   381.1884,
   380.5029,
   379.7531,
   378.9389,
   378.9389};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,306,474);
   Graph_curvetot1->SetMinimum(117.439);
   Graph_curvetot1->SetMaximum(408.7809);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t bkg_fx2[102] = {
   320,
   321.4,
   322.8,
   324.2,
   325.6,
   327,
   328.4,
   329.8,
   331.2,
   332.6,
   334,
   335.4,
   336.8,
   338.2,
   339.6,
   341,
   342.4,
   343.8,
   345.2,
   346.6,
   348,
   349.4,
   350.8,
   352.2,
   353.6,
   355,
   356.4,
   357.8,
   359.2,
   360.6,
   362,
   363.4,
   364.8,
   366.2,
   367.6,
   369,
   370.4,
   371.8,
   373.2,
   374.6,
   376,
   377.4,
   378.8,
   380.2,
   381.6,
   383,
   384.4,
   385.8,
   387.2,
   388.6,
   390,
   391.4,
   392.8,
   394.2,
   395.6,
   397,
   398.4,
   399.8,
   401.2,
   402.6,
   404,
   405.4,
   406.8,
   408.2,
   409.6,
   411,
   412.4,
   413.8,
   415.2,
   416.6,
   418,
   419.4,
   420.8,
   422.2,
   423.6,
   425,
   426.4,
   427.8,
   429.2,
   430.6,
   432,
   433.4,
   434.8,
   436.2,
   437.6,
   439,
   440.4,
   441.8,
   443.2,
   444.6,
   446,
   447.4,
   448.8,
   450.2,
   451.6,
   453,
   454.4,
   455.8,
   457.2,
   458.6,
   460,
   460};
   Double_t bkg_fy2[102] = {
   141.7174,
   147.2761,
   152.7703,
   158.2002,
   163.5657,
   168.8668,
   174.1036,
   179.276,
   184.384,
   189.4277,
   194.407,
   199.3219,
   204.1724,
   208.9586,
   213.6803,
   218.3378,
   222.9308,
   227.4595,
   231.9238,
   236.3237,
   240.6593,
   244.9305,
   249.1373,
   253.2797,
   257.3578,
   261.3715,
   265.3208,
   269.2058,
   273.0263,
   276.7826,
   280.4744,
   284.1019,
   287.665,
   291.1637,
   294.598,
   297.968,
   301.2736,
   304.5148,
   307.6917,
   310.8042,
   313.8523,
   316.8361,
   319.7554,
   322.6104,
   325.4011,
   328.1273,
   330.7892,
   333.3867,
   335.9199,
   338.3887,
   340.7931,
   343.1331,
   345.4087,
   347.62,
   349.7669,
   351.8495,
   353.8677,
   355.8214,
   357.7109,
   359.5359,
   361.2966,
   362.9929,
   364.6249,
   366.1924,
   367.6956,
   369.1344,
   370.5089,
   371.819,
   373.0647,
   374.246,
   375.363,
   376.4156,
   377.4038,
   378.3276,
   379.1871,
   379.9822,
   380.7129,
   381.3793,
   381.9813,
   382.5189,
   382.9921,
   383.401,
   383.7455,
   384.0256,
   384.2414,
   384.3928,
   384.4798,
   384.5024,
   384.4607,
   384.3546,
   384.1841,
   383.9493,
   383.65,
   383.2864,
   382.8585,
   382.3661,
   381.8094,
   381.1884,
   380.5029,
   379.7531,
   378.9389,
   378.9389};
   graph = new TGraph(102,bkg_fx2,bkg_fy2);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg2 = new TH1F("Graph_bkg2","Projection of totalPdf",102,306,474);
   Graph_bkg2->SetMinimum(117.439);
   Graph_bkg2->SetMaximum(408.7809);
   Graph_bkg2->SetDirectory(0);
   Graph_bkg2->SetStats(0);
   Graph_bkg2->SetLineWidth(2);
   Graph_bkg2->SetMarkerStyle(20);
   Graph_bkg2->GetXaxis()->SetNdivisions(505);
   Graph_bkg2->GetXaxis()->SetLabelFont(132);
   Graph_bkg2->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetXaxis()->SetTitleFont(132);
   Graph_bkg2->GetYaxis()->SetLabelFont(132);
   Graph_bkg2->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetYaxis()->SetTitleFont(132);
   Graph_bkg2->GetZaxis()->SetLabelFont(132);
   Graph_bkg2->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.75,0.02,1,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_34f0720__4 = new TH1D("frame_34f0720__4","A RooPlot of \"m(#pi p#rightarrow#pi)\"",100,300,700);
   frame_34f0720__4->SetBinContent(1,1182.364);
   frame_34f0720__4->SetMaximum(1182.364);
   frame_34f0720__4->SetEntries(1);
   frame_34f0720__4->SetDirectory(0);
   frame_34f0720__4->SetStats(0);
   frame_34f0720__4->SetLineWidth(2);
   frame_34f0720__4->SetMarkerStyle(20);
   frame_34f0720__4->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_34f0720__4->GetXaxis()->SetNdivisions(505);
   frame_34f0720__4->GetXaxis()->SetLabelFont(132);
   frame_34f0720__4->GetXaxis()->SetLabelOffset(0.01);
   frame_34f0720__4->GetXaxis()->SetLabelSize(0.06);
   frame_34f0720__4->GetXaxis()->SetTitleSize(0.072);
   frame_34f0720__4->GetXaxis()->SetTitleOffset(0.95);
   frame_34f0720__4->GetXaxis()->SetTitleFont(132);
   frame_34f0720__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_34f0720__4->GetYaxis()->SetLabelFont(132);
   frame_34f0720__4->GetYaxis()->SetLabelOffset(0.01);
   frame_34f0720__4->GetYaxis()->SetLabelSize(0.06);
   frame_34f0720__4->GetYaxis()->SetTitleSize(0.072);
   frame_34f0720__4->GetYaxis()->SetTitleOffset(0.95);
   frame_34f0720__4->GetYaxis()->SetTitleFont(132);
   frame_34f0720__4->GetZaxis()->SetLabelFont(132);
   frame_34f0720__4->GetZaxis()->SetLabelSize(0.06);
   frame_34f0720__4->GetZaxis()->SetTitleSize(0.072);
   frame_34f0720__4->GetZaxis()->SetTitleOffset(1.2);
   frame_34f0720__4->GetZaxis()->SetTitleFont(132);
   frame_34f0720__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 2
0
void fitLMLL1testbkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Tue May 10 14:52:04 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(1075.63,-26.4,1149.704,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_53d8dc0__1 = new TH1D("frame_53d8dc0__1","",100,1086,1146);
   frame_53d8dc0__1->SetBinContent(1,2.972493);
   frame_53d8dc0__1->SetMinimum(-8.8);
   frame_53d8dc0__1->SetMaximum(8.8);
   frame_53d8dc0__1->SetEntries(1);
   frame_53d8dc0__1->SetDirectory(0);
   frame_53d8dc0__1->SetStats(0);
   frame_53d8dc0__1->SetLineWidth(2);
   frame_53d8dc0__1->SetMarkerStyle(20);
   frame_53d8dc0__1->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_53d8dc0__1->GetXaxis()->SetNdivisions(505);
   frame_53d8dc0__1->GetXaxis()->SetLabelFont(132);
   frame_53d8dc0__1->GetXaxis()->SetLabelOffset(0.01);
   frame_53d8dc0__1->GetXaxis()->SetLabelSize(0.15);
   frame_53d8dc0__1->GetXaxis()->SetTitleSize(0.2);
   frame_53d8dc0__1->GetXaxis()->SetTitleOffset(1.1);
   frame_53d8dc0__1->GetXaxis()->SetTitleFont(132);
   frame_53d8dc0__1->GetYaxis()->SetTitle("Pull");
   frame_53d8dc0__1->GetYaxis()->CenterTitle(true);
   frame_53d8dc0__1->GetYaxis()->SetNdivisions(505);
   frame_53d8dc0__1->GetYaxis()->SetLabelFont(132);
   frame_53d8dc0__1->GetYaxis()->SetLabelOffset(0.01);
   frame_53d8dc0__1->GetYaxis()->SetLabelSize(0.15);
   frame_53d8dc0__1->GetYaxis()->SetTitleSize(0.15);
   frame_53d8dc0__1->GetYaxis()->SetTitleOffset(0.45);
   frame_53d8dc0__1->GetYaxis()->SetTitleFont(132);
   frame_53d8dc0__1->GetZaxis()->SetLabelFont(132);
   frame_53d8dc0__1->GetZaxis()->SetLabelSize(0.06);
   frame_53d8dc0__1->GetZaxis()->SetTitleSize(0.072);
   frame_53d8dc0__1->GetZaxis()->SetTitleOffset(1.2);
   frame_53d8dc0__1->GetZaxis()->SetTitleFont(132);
   frame_53d8dc0__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[26] = {
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5};
   Double_t pull_Hist_curvetot_fy3001[26] = {
   0.323532,
   -1.484517,
   -1.655698,
   1.320094,
   1.034847,
   0.7405183,
   0.06739367,
   0.1217782,
   0.5277866,
   -0.3400991,
   1.664464,
   -0.03264478,
   0.02072628,
   0.24538,
   0.6173005,
   -0.7431519,
   -2.49611,
   -0.6130991,
   0.3091704,
   0.9527942,
   0.07710545,
   -0.5551039,
   0.009314413,
   1.605361,
   -0.7359905,
   0.5939809};
   Double_t pull_Hist_curvetot_felx3001[26] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[26] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[26] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[26] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(26,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_M and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_M and Projection of totalPdf",100,1089,1107);
   Graph_pull_Hist_curvetot3001->SetMinimum(-4.112167);
   Graph_pull_Hist_curvetot3001->SetMaximum(3.280522);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_53d8dc0__2 = new TH1D("frame_53d8dc0__2","",100,1086,1146);
   frame_53d8dc0__2->SetBinContent(1,2.972493);
   frame_53d8dc0__2->SetMinimum(-8.8);
   frame_53d8dc0__2->SetMaximum(8.8);
   frame_53d8dc0__2->SetEntries(1);
   frame_53d8dc0__2->SetDirectory(0);
   frame_53d8dc0__2->SetStats(0);
   frame_53d8dc0__2->SetLineWidth(2);
   frame_53d8dc0__2->SetMarkerStyle(20);
   frame_53d8dc0__2->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_53d8dc0__2->GetXaxis()->SetNdivisions(505);
   frame_53d8dc0__2->GetXaxis()->SetLabelFont(132);
   frame_53d8dc0__2->GetXaxis()->SetLabelOffset(0.01);
   frame_53d8dc0__2->GetXaxis()->SetLabelSize(0.15);
   frame_53d8dc0__2->GetXaxis()->SetTitleSize(0.2);
   frame_53d8dc0__2->GetXaxis()->SetTitleOffset(1.1);
   frame_53d8dc0__2->GetXaxis()->SetTitleFont(132);
   frame_53d8dc0__2->GetYaxis()->SetTitle("Pull");
   frame_53d8dc0__2->GetYaxis()->CenterTitle(true);
   frame_53d8dc0__2->GetYaxis()->SetNdivisions(505);
   frame_53d8dc0__2->GetYaxis()->SetLabelFont(132);
   frame_53d8dc0__2->GetYaxis()->SetLabelOffset(0.01);
   frame_53d8dc0__2->GetYaxis()->SetLabelSize(0.15);
   frame_53d8dc0__2->GetYaxis()->SetTitleSize(0.15);
   frame_53d8dc0__2->GetYaxis()->SetTitleOffset(0.45);
   frame_53d8dc0__2->GetYaxis()->SetTitleFont(132);
   frame_53d8dc0__2->GetZaxis()->SetLabelFont(132);
   frame_53d8dc0__2->GetZaxis()->SetLabelSize(0.06);
   frame_53d8dc0__2->GetZaxis()->SetTitleSize(0.072);
   frame_53d8dc0__2->GetZaxis()->SetTitleOffset(1.2);
   frame_53d8dc0__2->GetZaxis()->SetTitleFont(132);
   frame_53d8dc0__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(1075.63,0,1149.704,1563.739);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_5225050__3 = new TH1D("frame_5225050__3","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_5225050__3->SetBinContent(1,1469.915);
   frame_5225050__3->SetMaximum(1469.915);
   frame_5225050__3->SetEntries(1);
   frame_5225050__3->SetDirectory(0);
   frame_5225050__3->SetStats(0);
   frame_5225050__3->SetLineWidth(2);
   frame_5225050__3->SetMarkerStyle(20);
   frame_5225050__3->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5225050__3->GetXaxis()->SetNdivisions(505);
   frame_5225050__3->GetXaxis()->SetLabelFont(132);
   frame_5225050__3->GetXaxis()->SetLabelOffset(0.01);
   frame_5225050__3->GetXaxis()->SetLabelSize(0.06);
   frame_5225050__3->GetXaxis()->SetTitleSize(0.072);
   frame_5225050__3->GetXaxis()->SetTitleOffset(0.95);
   frame_5225050__3->GetXaxis()->SetTitleFont(132);
   frame_5225050__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_5225050__3->GetYaxis()->SetLabelFont(132);
   frame_5225050__3->GetYaxis()->SetLabelOffset(0.01);
   frame_5225050__3->GetYaxis()->SetLabelSize(0.06);
   frame_5225050__3->GetYaxis()->SetTitleSize(0.072);
   frame_5225050__3->GetYaxis()->SetTitleOffset(0.95);
   frame_5225050__3->GetYaxis()->SetTitleFont(132);
   frame_5225050__3->GetZaxis()->SetLabelFont(132);
   frame_5225050__3->GetZaxis()->SetLabelSize(0.06);
   frame_5225050__3->GetZaxis()->SetTitleSize(0.072);
   frame_5225050__3->GetZaxis()->SetTitleOffset(1.2);
   frame_5225050__3->GetZaxis()->SetTitleFont(132);
   frame_5225050__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   1086.3,
   1086.9,
   1087.5,
   1088.1,
   1088.7,
   1089.3,
   1089.9,
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5,
   1106.1,
   1106.7,
   1107.3,
   1107.9,
   1108.5,
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9,
   1123.5,
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5,
   1136.1,
   1136.7,
   1137.3,
   1137.9,
   1138.5,
   1139.1,
   1139.7,
   1140.3,
   1140.9,
   1141.5,
   1142.1,
   1142.7,
   1143.3,
   1143.9,
   1144.5,
   1145.1,
   1145.7};
   Double_t Hist_fy3002[100] = {
   17,
   20,
   22,
   33,
   22,
   28,
   18,
   24,
   17,
   17,
   32,
   31,
   30,
   27,
   28,
   31,
   27,
   40,
   30,
   31,
   33,
   36,
   29,
   22,
   31,
   37,
   42,
   37,
   34,
   38,
   50,
   35,
   44,
   38,
   37,
   43,
   46,
   40,
   47,
   59,
   64,
   60,
   85,
   82,
   133,
   193,
   358,
   659,
   1156,
   1363,
   1224,
   776,
   473,
   270,
   185,
   152,
   99,
   64,
   68,
   63,
   52,
   50,
   67,
   62,
   53,
   60,
   59,
   58,
   61,
   66,
   59,
   63,
   49,
   56,
   67,
   55,
   81,
   46,
   55,
   60,
   50,
   55,
   68,
   57,
   57,
   53,
   52,
   57,
   67,
   56,
   51,
   70,
   71,
   70,
   53,
   67,
   66,
   65,
   77,
   24};
   Double_t Hist_felx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fely3002[100] = {
   4.123106,
   4.472136,
   4.690416,
   5.744563,
   4.690416,
   5.291503,
   4.242641,
   4.898979,
   4.123106,
   4.123106,
   5.656854,
   5.567764,
   5.477226,
   5.196152,
   5.291503,
   5.567764,
   5.196152,
   6.324555,
   5.477226,
   5.567764,
   5.744563,
   6,
   5.385165,
   4.690416,
   5.567764,
   6.082763,
   6.480741,
   6.082763,
   5.830952,
   6.164414,
   7.071068,
   5.91608,
   6.63325,
   6.164414,
   6.082763,
   6.557439,
   6.78233,
   6.324555,
   6.855655,
   7.681146,
   8,
   7.745967,
   9.219544,
   9.055385,
   11.53256,
   13.89244,
   18.92089,
   25.671,
   34,
   36.91883,
   34.98571,
   27.85678,
   21.74856,
   16.43168,
   13.60147,
   12.32883,
   9.949874,
   8,
   8.246211,
   7.937254,
   7.211103,
   7.071068,
   8.185353,
   7.874008,
   7.28011,
   7.745967,
   7.681146,
   7.615773,
   7.81025,
   8.124038,
   7.681146,
   7.937254,
   7,
   7.483315,
   8.185353,
   7.416198,
   9,
   6.78233,
   7.416198,
   7.745967,
   7.071068,
   7.416198,
   8.246211,
   7.549834,
   7.549834,
   7.28011,
   7.211103,
   7.549834,
   8.185353,
   7.483315,
   7.141428,
   8.3666,
   8.42615,
   8.3666,
   7.28011,
   8.185353,
   8.124038,
   8.062258,
   8.774964,
   4.898979};
   Double_t Hist_fehx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fehy3002[100] = {
   4.123106,
   4.472136,
   4.690416,
   5.744563,
   4.690416,
   5.291503,
   4.242641,
   4.898979,
   4.123106,
   4.123106,
   5.656854,
   5.567764,
   5.477226,
   5.196152,
   5.291503,
   5.567764,
   5.196152,
   6.324555,
   5.477226,
   5.567764,
   5.744563,
   6,
   5.385165,
   4.690416,
   5.567764,
   6.082763,
   6.480741,
   6.082763,
   5.830952,
   6.164414,
   7.071068,
   5.91608,
   6.63325,
   6.164414,
   6.082763,
   6.557439,
   6.78233,
   6.324555,
   6.855655,
   7.681146,
   8,
   7.745967,
   9.219544,
   9.055385,
   11.53256,
   13.89244,
   18.92089,
   25.671,
   34,
   36.91883,
   34.98571,
   27.85678,
   21.74856,
   16.43168,
   13.60147,
   12.32883,
   9.949874,
   8,
   8.246211,
   7.937254,
   7.211103,
   7.071068,
   8.185353,
   7.874008,
   7.28011,
   7.745967,
   7.681146,
   7.615773,
   7.81025,
   8.124038,
   7.681146,
   7.937254,
   7,
   7.483315,
   8.185353,
   7.416198,
   9,
   6.78233,
   7.416198,
   7.745967,
   7.071068,
   7.416198,
   8.246211,
   7.549834,
   7.549834,
   7.28011,
   7.211103,
   7.549834,
   8.185353,
   7.483315,
   7.141428,
   8.3666,
   8.42615,
   8.3666,
   7.28011,
   8.185353,
   8.124038,
   8.062258,
   8.774964,
   4.898979};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_M");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_M",100,1080,1152);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(1538.623);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   1090,
   1090.16,
   1090.32,
   1090.48,
   1090.64,
   1090.8,
   1090.96,
   1091.12,
   1091.28,
   1091.44,
   1091.6,
   1091.76,
   1091.92,
   1092.08,
   1092.24,
   1092.4,
   1092.56,
   1092.72,
   1092.88,
   1093.04,
   1093.2,
   1093.36,
   1093.52,
   1093.68,
   1093.84,
   1094,
   1094.16,
   1094.32,
   1094.48,
   1094.64,
   1094.8,
   1094.96,
   1095.12,
   1095.28,
   1095.44,
   1095.6,
   1095.76,
   1095.92,
   1096.08,
   1096.24,
   1096.4,
   1096.56,
   1096.72,
   1096.88,
   1097.04,
   1097.2,
   1097.36,
   1097.52,
   1097.68,
   1097.84,
   1098,
   1098.16,
   1098.32,
   1098.48,
   1098.64,
   1098.8,
   1098.96,
   1099.12,
   1099.28,
   1099.44,
   1099.6,
   1099.76,
   1099.92,
   1100.08,
   1100.24,
   1100.4,
   1100.56,
   1100.72,
   1100.88,
   1101.04,
   1101.2,
   1101.36,
   1101.52,
   1101.68,
   1101.84,
   1102,
   1102.16,
   1102.32,
   1102.48,
   1102.64,
   1102.8,
   1102.96,
   1103.12,
   1103.28,
   1103.44,
   1103.6,
   1103.76,
   1103.92,
   1104.08,
   1104.24,
   1104.4,
   1104.56,
   1104.72,
   1104.88,
   1105.04,
   1105.2,
   1105.36,
   1105.52,
   1105.68,
   1105.84,
   1106,
   1106};
   Double_t curvetot_fy1[102] = {
   21.82686,
   22.01507,
   22.20328,
   22.3915,
   22.57971,
   22.76792,
   22.95614,
   23.14435,
   23.33256,
   23.52077,
   23.70899,
   23.8972,
   24.08541,
   24.27363,
   24.46184,
   24.65005,
   24.83826,
   25.02648,
   25.21469,
   25.4029,
   25.59112,
   25.77933,
   25.96754,
   26.15575,
   26.34397,
   26.53218,
   26.72039,
   26.9086,
   27.09682,
   27.28503,
   27.47324,
   27.66146,
   27.84967,
   28.03788,
   28.22609,
   28.41431,
   28.60252,
   28.79073,
   28.97895,
   29.16716,
   29.35537,
   29.54358,
   29.7318,
   29.92001,
   30.10822,
   30.29644,
   30.48465,
   30.67286,
   30.86107,
   31.04929,
   31.2375,
   31.42571,
   31.61393,
   31.80214,
   31.99035,
   32.17856,
   32.36678,
   32.55499,
   32.7432,
   32.93142,
   33.11963,
   33.30784,
   33.49605,
   33.68427,
   33.87248,
   34.06069,
   34.24891,
   34.43712,
   34.62533,
   34.81354,
   35.00176,
   35.18997,
   35.37818,
   35.5664,
   35.75461,
   35.94282,
   36.13103,
   36.31925,
   36.50746,
   36.69567,
   36.88388,
   37.0721,
   37.26031,
   37.44852,
   37.63674,
   37.82495,
   38.01316,
   38.20137,
   38.38959,
   38.5778,
   38.76601,
   38.95423,
   39.14244,
   39.33065,
   39.51886,
   39.70708,
   39.89529,
   40.0835,
   40.27172,
   40.45993,
   40.64814,
   40.64814};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,1088.4,1107.6);
   Graph_curvetot1->SetMinimum(19.94473);
   Graph_curvetot1->SetMaximum(42.53027);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t bkg_fx2[102] = {
   1090,
   1090.16,
   1090.32,
   1090.48,
   1090.64,
   1090.8,
   1090.96,
   1091.12,
   1091.28,
   1091.44,
   1091.6,
   1091.76,
   1091.92,
   1092.08,
   1092.24,
   1092.4,
   1092.56,
   1092.72,
   1092.88,
   1093.04,
   1093.2,
   1093.36,
   1093.52,
   1093.68,
   1093.84,
   1094,
   1094.16,
   1094.32,
   1094.48,
   1094.64,
   1094.8,
   1094.96,
   1095.12,
   1095.28,
   1095.44,
   1095.6,
   1095.76,
   1095.92,
   1096.08,
   1096.24,
   1096.4,
   1096.56,
   1096.72,
   1096.88,
   1097.04,
   1097.2,
   1097.36,
   1097.52,
   1097.68,
   1097.84,
   1098,
   1098.16,
   1098.32,
   1098.48,
   1098.64,
   1098.8,
   1098.96,
   1099.12,
   1099.28,
   1099.44,
   1099.6,
   1099.76,
   1099.92,
   1100.08,
   1100.24,
   1100.4,
   1100.56,
   1100.72,
   1100.88,
   1101.04,
   1101.2,
   1101.36,
   1101.52,
   1101.68,
   1101.84,
   1102,
   1102.16,
   1102.32,
   1102.48,
   1102.64,
   1102.8,
   1102.96,
   1103.12,
   1103.28,
   1103.44,
   1103.6,
   1103.76,
   1103.92,
   1104.08,
   1104.24,
   1104.4,
   1104.56,
   1104.72,
   1104.88,
   1105.04,
   1105.2,
   1105.36,
   1105.52,
   1105.68,
   1105.84,
   1106,
   1106};
   Double_t bkg_fy2[102] = {
   21.82686,
   22.01507,
   22.20328,
   22.3915,
   22.57971,
   22.76792,
   22.95614,
   23.14435,
   23.33256,
   23.52077,
   23.70899,
   23.8972,
   24.08541,
   24.27363,
   24.46184,
   24.65005,
   24.83826,
   25.02648,
   25.21469,
   25.4029,
   25.59112,
   25.77933,
   25.96754,
   26.15575,
   26.34397,
   26.53218,
   26.72039,
   26.9086,
   27.09682,
   27.28503,
   27.47324,
   27.66146,
   27.84967,
   28.03788,
   28.22609,
   28.41431,
   28.60252,
   28.79073,
   28.97895,
   29.16716,
   29.35537,
   29.54358,
   29.7318,
   29.92001,
   30.10822,
   30.29644,
   30.48465,
   30.67286,
   30.86107,
   31.04929,
   31.2375,
   31.42571,
   31.61393,
   31.80214,
   31.99035,
   32.17856,
   32.36678,
   32.55499,
   32.7432,
   32.93142,
   33.11963,
   33.30784,
   33.49605,
   33.68427,
   33.87248,
   34.06069,
   34.24891,
   34.43712,
   34.62533,
   34.81354,
   35.00176,
   35.18997,
   35.37818,
   35.5664,
   35.75461,
   35.94282,
   36.13103,
   36.31925,
   36.50746,
   36.69567,
   36.88388,
   37.0721,
   37.26031,
   37.44852,
   37.63674,
   37.82495,
   38.01316,
   38.20137,
   38.38959,
   38.5778,
   38.76601,
   38.95423,
   39.14244,
   39.33065,
   39.51886,
   39.70708,
   39.89529,
   40.0835,
   40.27172,
   40.45993,
   40.64814,
   40.64814};
   graph = new TGraph(102,bkg_fx2,bkg_fy2);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg2 = new TH1F("Graph_bkg2","Projection of totalPdf",102,1088.4,1107.6);
   Graph_bkg2->SetMinimum(19.94473);
   Graph_bkg2->SetMaximum(42.53027);
   Graph_bkg2->SetDirectory(0);
   Graph_bkg2->SetStats(0);
   Graph_bkg2->SetLineWidth(2);
   Graph_bkg2->SetMarkerStyle(20);
   Graph_bkg2->GetXaxis()->SetNdivisions(505);
   Graph_bkg2->GetXaxis()->SetLabelFont(132);
   Graph_bkg2->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetXaxis()->SetTitleFont(132);
   Graph_bkg2->GetYaxis()->SetLabelFont(132);
   Graph_bkg2->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetYaxis()->SetTitleFont(132);
   Graph_bkg2->GetZaxis()->SetLabelFont(132);
   Graph_bkg2->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.75,0.02,1,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_5225050__4 = new TH1D("frame_5225050__4","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_5225050__4->SetBinContent(1,1469.915);
   frame_5225050__4->SetMaximum(1469.915);
   frame_5225050__4->SetEntries(1);
   frame_5225050__4->SetDirectory(0);
   frame_5225050__4->SetStats(0);
   frame_5225050__4->SetLineWidth(2);
   frame_5225050__4->SetMarkerStyle(20);
   frame_5225050__4->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5225050__4->GetXaxis()->SetNdivisions(505);
   frame_5225050__4->GetXaxis()->SetLabelFont(132);
   frame_5225050__4->GetXaxis()->SetLabelOffset(0.01);
   frame_5225050__4->GetXaxis()->SetLabelSize(0.06);
   frame_5225050__4->GetXaxis()->SetTitleSize(0.072);
   frame_5225050__4->GetXaxis()->SetTitleOffset(0.95);
   frame_5225050__4->GetXaxis()->SetTitleFont(132);
   frame_5225050__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_5225050__4->GetYaxis()->SetLabelFont(132);
   frame_5225050__4->GetYaxis()->SetLabelOffset(0.01);
   frame_5225050__4->GetYaxis()->SetLabelSize(0.06);
   frame_5225050__4->GetYaxis()->SetTitleSize(0.072);
   frame_5225050__4->GetYaxis()->SetTitleOffset(0.95);
   frame_5225050__4->GetYaxis()->SetTitleFont(132);
   frame_5225050__4->GetZaxis()->SetLabelFont(132);
   frame_5225050__4->GetZaxis()->SetLabelSize(0.06);
   frame_5225050__4->GetZaxis()->SetTitleSize(0.072);
   frame_5225050__4->GetZaxis()->SetTitleOffset(1.2);
   frame_5225050__4->GetZaxis()->SetTitleFont(132);
   frame_5225050__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 3
0
void fitLMLL1()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Fri May 20 20:55:56 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(1075.63,-26.4,1149.704,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_47d69a0__1 = new TH1D("frame_47d69a0__1","",100,1086,1146);
   frame_47d69a0__1->SetBinContent(1,3.731864);
   frame_47d69a0__1->SetMinimum(-8.8);
   frame_47d69a0__1->SetMaximum(8.8);
   frame_47d69a0__1->SetEntries(1);
   frame_47d69a0__1->SetDirectory(0);
   frame_47d69a0__1->SetStats(0);
   frame_47d69a0__1->SetLineWidth(2);
   frame_47d69a0__1->SetMarkerStyle(20);
   frame_47d69a0__1->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_47d69a0__1->GetXaxis()->SetNdivisions(505);
   frame_47d69a0__1->GetXaxis()->SetLabelFont(132);
   frame_47d69a0__1->GetXaxis()->SetLabelOffset(0.01);
   frame_47d69a0__1->GetXaxis()->SetLabelSize(0.15);
   frame_47d69a0__1->GetXaxis()->SetTitleSize(0.2);
   frame_47d69a0__1->GetXaxis()->SetTitleOffset(1.1);
   frame_47d69a0__1->GetXaxis()->SetTitleFont(132);
   frame_47d69a0__1->GetYaxis()->SetTitle("Pull");
   frame_47d69a0__1->GetYaxis()->CenterTitle(true);
   frame_47d69a0__1->GetYaxis()->SetNdivisions(505);
   frame_47d69a0__1->GetYaxis()->SetLabelFont(132);
   frame_47d69a0__1->GetYaxis()->SetLabelOffset(0.01);
   frame_47d69a0__1->GetYaxis()->SetLabelSize(0.15);
   frame_47d69a0__1->GetYaxis()->SetTitleSize(0.15);
   frame_47d69a0__1->GetYaxis()->SetTitleOffset(0.45);
   frame_47d69a0__1->GetYaxis()->SetTitleFont(132);
   frame_47d69a0__1->GetZaxis()->SetLabelFont(132);
   frame_47d69a0__1->GetZaxis()->SetLabelSize(0.06);
   frame_47d69a0__1->GetZaxis()->SetTitleSize(0.072);
   frame_47d69a0__1->GetZaxis()->SetTitleOffset(1.2);
   frame_47d69a0__1->GetZaxis()->SetTitleFont(132);
   frame_47d69a0__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[76] = {
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5,
   1106.1,
   1106.7,
   1107.3,
   1107.9,
   1108.5,
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9,
   1123.5,
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5};
   Double_t pull_Hist_curvetot_fy3001[76] = {
   0.2825898,
   0.1632924,
   0.04605264,
   -0.06912945,
   0,
   0.5002483,
   0,
   -0.507446,
   -0.6115613,
   0,
   1.093274,
   -0.9110049,
   0.9967499,
   -0.07062737,
   -1.190873,
   -1.279806,
   0,
   -0.3190221,
   -1.533536,
   -0.4340571,
   -0.4892357,
   -0.5428453,
   -1.841478,
   -0.6457166,
   -1.982958,
   1.749399,
   -0.07079971,
   -0.1187623,
   -0.1862919,
   1.011584,
   -1.38142,
   -1.074144,
   1.767467,
   0.5636543,
   -2.411339,
   -1.891138,
   -3.132081,
   -0.0262515,
   -2.353588,
   0.3563425,
   -0.06199501,
   0.9583815,
   0.8134596,
   -1.460186,
   -1.438016,
   0.8612511,
   1.045139,
   1.943663,
   2.35739,
   -0.2693911,
   -1.029633,
   -1.245932,
   1.922657,
   1.719505,
   0.4383432,
   0.9841481,
   -1.539579,
   0.7778159,
   -0.02978785,
   0.428204,
   -0.01532467,
   1.407629,
   0.4449068,
   0.8207871,
   0.01412646,
   0.02402242,
   -0.5368696,
   0.8550387,
   0.06038003,
   -0.4911632,
   -0.4733484,
   -2.78695,
   0.1240109,
   -1.212377,
   -0.3897599,
   0};
   Double_t pull_Hist_curvetot_felx3001[76] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[76] = {
   1,
   1,
   1,
   1,
   0,
   1,
   0,
   1,
   1,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0};
   Double_t pull_Hist_curvetot_fehx3001[76] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[76] = {
   1,
   1,
   1,
   1,
   0,
   1,
   0,
   1,
   1,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(76,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_M and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_M and Projection of totalPdf",100,1086,1140);
   Graph_pull_Hist_curvetot3001->SetMinimum(-4.881029);
   Graph_pull_Hist_curvetot3001->SetMaximum(4.106337);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_47d69a0__2 = new TH1D("frame_47d69a0__2","",100,1086,1146);
   frame_47d69a0__2->SetBinContent(1,3.731864);
   frame_47d69a0__2->SetMinimum(-8.8);
   frame_47d69a0__2->SetMaximum(8.8);
   frame_47d69a0__2->SetEntries(1);
   frame_47d69a0__2->SetDirectory(0);
   frame_47d69a0__2->SetStats(0);
   frame_47d69a0__2->SetLineWidth(2);
   frame_47d69a0__2->SetMarkerStyle(20);
   frame_47d69a0__2->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_47d69a0__2->GetXaxis()->SetNdivisions(505);
   frame_47d69a0__2->GetXaxis()->SetLabelFont(132);
   frame_47d69a0__2->GetXaxis()->SetLabelOffset(0.01);
   frame_47d69a0__2->GetXaxis()->SetLabelSize(0.15);
   frame_47d69a0__2->GetXaxis()->SetTitleSize(0.2);
   frame_47d69a0__2->GetXaxis()->SetTitleOffset(1.1);
   frame_47d69a0__2->GetXaxis()->SetTitleFont(132);
   frame_47d69a0__2->GetYaxis()->SetTitle("Pull");
   frame_47d69a0__2->GetYaxis()->CenterTitle(true);
   frame_47d69a0__2->GetYaxis()->SetNdivisions(505);
   frame_47d69a0__2->GetYaxis()->SetLabelFont(132);
   frame_47d69a0__2->GetYaxis()->SetLabelOffset(0.01);
   frame_47d69a0__2->GetYaxis()->SetLabelSize(0.15);
   frame_47d69a0__2->GetYaxis()->SetTitleSize(0.15);
   frame_47d69a0__2->GetYaxis()->SetTitleOffset(0.45);
   frame_47d69a0__2->GetYaxis()->SetTitleFont(132);
   frame_47d69a0__2->GetZaxis()->SetLabelFont(132);
   frame_47d69a0__2->GetZaxis()->SetLabelSize(0.06);
   frame_47d69a0__2->GetZaxis()->SetTitleSize(0.072);
   frame_47d69a0__2->GetZaxis()->SetTitleOffset(1.2);
   frame_47d69a0__2->GetZaxis()->SetTitleFont(132);
   frame_47d69a0__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(1075.63,0,1149.704,1194.322);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4ac28d0__3 = new TH1D("frame_4ac28d0__3","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_4ac28d0__3->SetBinContent(1,1122.663);
   frame_4ac28d0__3->SetMaximum(1122.663);
   frame_4ac28d0__3->SetEntries(1);
   frame_4ac28d0__3->SetDirectory(0);
   frame_4ac28d0__3->SetStats(0);
   frame_4ac28d0__3->SetLineWidth(2);
   frame_4ac28d0__3->SetMarkerStyle(20);
   frame_4ac28d0__3->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4ac28d0__3->GetXaxis()->SetNdivisions(505);
   frame_4ac28d0__3->GetXaxis()->SetLabelFont(132);
   frame_4ac28d0__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4ac28d0__3->GetXaxis()->SetLabelSize(0.06);
   frame_4ac28d0__3->GetXaxis()->SetTitleSize(0.072);
   frame_4ac28d0__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4ac28d0__3->GetXaxis()->SetTitleFont(132);
   frame_4ac28d0__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4ac28d0__3->GetYaxis()->SetLabelFont(132);
   frame_4ac28d0__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4ac28d0__3->GetYaxis()->SetLabelSize(0.06);
   frame_4ac28d0__3->GetYaxis()->SetTitleSize(0.072);
   frame_4ac28d0__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4ac28d0__3->GetYaxis()->SetTitleFont(132);
   frame_4ac28d0__3->GetZaxis()->SetLabelFont(132);
   frame_4ac28d0__3->GetZaxis()->SetLabelSize(0.06);
   frame_4ac28d0__3->GetZaxis()->SetTitleSize(0.072);
   frame_4ac28d0__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4ac28d0__3->GetZaxis()->SetTitleFont(132);
   frame_4ac28d0__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   1086.3,
   1086.9,
   1087.5,
   1088.1,
   1088.7,
   1089.3,
   1089.9,
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5,
   1106.1,
   1106.7,
   1107.3,
   1107.9,
   1108.5,
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9,
   1123.5,
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5,
   1136.1,
   1136.7,
   1137.3,
   1137.9,
   1138.5,
   1139.1,
   1139.7,
   1140.3,
   1140.9,
   1141.5,
   1142.1,
   1142.7,
   1143.3,
   1143.9,
   1144.5,
   1145.1,
   1145.7};
   Double_t Hist_fy3002[100] = {
   3,
   2,
   1,
   2,
   1,
   1,
   3,
   1,
   1,
   1,
   1,
   0,
   2,
   0,
   1,
   1,
   0,
   4,
   1,
   4,
   2,
   1,
   1,
   0,
   2,
   1,
   2,
   2,
   2,
   1,
   2,
   1,
   8,
   3,
   3,
   3,
   6,
   2,
   3,
   13,
   12,
   9,
   18,
   25,
   63,
   84,
   216,
   444,
   813,
   1037,
   865,
   546,
   303,
   150,
   96,
   69,
   30,
   16,
   9,
   16,
   12,
   6,
   7,
   2,
   6,
   4,
   5,
   4,
   8,
   5,
   6,
   4,
   4,
   3,
   6,
   4,
   3,
   3,
   1,
   4,
   2,
   3,
   0,
   1,
   4,
   2,
   0,
   2,
   2,
   3,
   3,
   4,
   1,
   1,
   2,
   1,
   2,
   3,
   4,
   1};
   Double_t Hist_felx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fely3002[100] = {
   1.732051,
   1.414214,
   1,
   1.414214,
   1,
   1,
   1.732051,
   1,
   1,
   1,
   1,
   0,
   1.414214,
   0,
   1,
   1,
   0,
   2,
   1,
   2,
   1.414214,
   1,
   1,
   0,
   1.414214,
   1,
   1.414214,
   1.414214,
   1.414214,
   1,
   1.414214,
   1,
   2.828427,
   1.732051,
   1.732051,
   1.732051,
   2.44949,
   1.414214,
   1.732051,
   3.605551,
   3.464102,
   3,
   4.242641,
   5,
   7.937254,
   9.165151,
   14.69694,
   21.07131,
   28.51315,
   32.20248,
   29.41088,
   23.36664,
   17.4069,
   12.24745,
   9.797959,
   8.306624,
   5.477226,
   4,
   3,
   4,
   3.464102,
   2.44949,
   2.645751,
   1.414214,
   2.44949,
   2,
   2.236068,
   2,
   2.828427,
   2.236068,
   2.44949,
   2,
   2,
   1.732051,
   2.44949,
   2,
   1.732051,
   1.732051,
   1,
   2,
   1.414214,
   1.732051,
   0,
   1,
   2,
   1.414214,
   0,
   1.414214,
   1.414214,
   1.732051,
   1.732051,
   2,
   1,
   1,
   1.414214,
   1,
   1.414214,
   1.732051,
   2,
   1};
   Double_t Hist_fehx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fehy3002[100] = {
   1.732051,
   1.414214,
   1,
   1.414214,
   1,
   1,
   1.732051,
   1,
   1,
   1,
   1,
   0,
   1.414214,
   0,
   1,
   1,
   0,
   2,
   1,
   2,
   1.414214,
   1,
   1,
   0,
   1.414214,
   1,
   1.414214,
   1.414214,
   1.414214,
   1,
   1.414214,
   1,
   2.828427,
   1.732051,
   1.732051,
   1.732051,
   2.44949,
   1.414214,
   1.732051,
   3.605551,
   3.464102,
   3,
   4.242641,
   5,
   7.937254,
   9.165151,
   14.69694,
   21.07131,
   28.51315,
   32.20248,
   29.41088,
   23.36664,
   17.4069,
   12.24745,
   9.797959,
   8.306624,
   5.477226,
   4,
   3,
   4,
   3.464102,
   2.44949,
   2.645751,
   1.414214,
   2.44949,
   2,
   2.236068,
   2,
   2.828427,
   2.236068,
   2.44949,
   2,
   2,
   1.732051,
   2.44949,
   2,
   1.732051,
   1.732051,
   1,
   2,
   1.414214,
   1.732051,
   0,
   1,
   2,
   1.414214,
   0,
   1.414214,
   1.414214,
   1.732051,
   1.732051,
   2,
   1,
   1,
   1.414214,
   1,
   1.414214,
   1.732051,
   2,
   1};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_M");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_M",100,1080,1152);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(1176.123);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[145] = {
   1090,
   1090.46,
   1090.92,
   1091.38,
   1091.84,
   1092.3,
   1092.76,
   1093.22,
   1093.68,
   1094.14,
   1094.6,
   1095.06,
   1095.52,
   1095.98,
   1096.44,
   1096.9,
   1097.36,
   1097.82,
   1098.28,
   1098.74,
   1099.2,
   1099.66,
   1100.12,
   1100.58,
   1101.04,
   1101.5,
   1101.96,
   1102.42,
   1102.88,
   1103.34,
   1103.8,
   1104.26,
   1104.72,
   1105.18,
   1105.64,
   1106.1,
   1106.56,
   1107.02,
   1107.48,
   1107.94,
   1108.4,
   1108.86,
   1109.32,
   1109.78,
   1110.24,
   1110.7,
   1111.16,
   1111.62,
   1112.08,
   1112.54,
   1112.77,
   1113,
   1113.23,
   1113.345,
   1113.46,
   1113.575,
   1113.69,
   1113.805,
   1113.92,
   1114.035,
   1114.15,
   1114.265,
   1114.38,
   1114.495,
   1114.61,
   1114.725,
   1114.84,
   1115.07,
   1115.185,
   1115.3,
   1115.358,
   1115.415,
   1115.472,
   1115.53,
   1115.588,
   1115.645,
   1115.702,
   1115.76,
   1115.818,
   1115.875,
   1115.932,
   1115.99,
   1116.048,
   1116.105,
   1116.162,
   1116.22,
   1116.278,
   1116.335,
   1116.45,
   1116.565,
   1116.68,
   1116.91,
   1117.025,
   1117.14,
   1117.255,
   1117.37,
   1117.485,
   1117.6,
   1117.715,
   1117.83,
   1117.945,
   1118.06,
   1118.175,
   1118.29,
   1118.52,
   1118.75,
   1118.98,
   1119.44,
   1119.9,
   1120.36,
   1120.82,
   1121.28,
   1121.74,
   1122.2,
   1122.66,
   1123.12,
   1123.58,
   1124.04,
   1124.5,
   1124.96,
   1125.42,
   1125.88,
   1126.34,
   1126.8,
   1127.26,
   1127.72,
   1128.18,
   1128.64,
   1129.1,
   1129.56,
   1130.02,
   1130.48,
   1130.94,
   1131.4,
   1131.86,
   1132.32,
   1132.78,
   1133.24,
   1133.7,
   1134.16,
   1134.62,
   1135.08,
   1135.54,
   1136,
   1136};
   Double_t curvetot_fy1[145] = {
   0.6162995,
   0.7094237,
   0.8012687,
   0.8918347,
   0.9811216,
   1.069129,
   1.155858,
   1.241308,
   1.325478,
   1.40837,
   1.489982,
   1.570316,
   1.64937,
   1.727145,
   1.803641,
   1.878858,
   1.952796,
   2.025455,
   2.096834,
   2.166935,
   2.235756,
   2.303299,
   2.369562,
   2.434547,
   2.498252,
   2.560678,
   2.621825,
   2.681694,
   2.740286,
   2.797605,
   2.853666,
   2.908508,
   2.962246,
   3.015176,
   3.068044,
   3.122629,
   3.182958,
   3.257688,
   3.364439,
   3.537153,
   3.837566,
   4.371427,
   5.308762,
   6.904893,
   9.515393,
   13.59445,
   19.66545,
   28.26741,
   39.96843,
   55.88398,
   66.41278,
   79.948,
   98.34625,
   110.2155,
   124.449,
   141.5616,
   162.1126,
   186.6815,
   215.8326,
   250.0694,
   289.7804,
   335.1788,
   386.2409,
   442.6498,
   503.7498,
   568.5203,
   635.5744,
   769.3585,
   831.8995,
   888.5554,
   913.9864,
   937.1387,
   957.7731,
   975.6716,
   990.6423,
   1002.522,
   1011.181,
   1016.522,
   1018.487,
   1017.053,
   1012.236,
   1004.09,
   992.7055,
   978.208,
   960.7556,
   940.536,
   917.7631,
   892.6734,
   836.576,
   774.4204,
   708.4614,
   573.7443,
   508.7543,
   447.3406,
   390.5523,
   339.0726,
   293.2432,
   253.1087,
   218.4718,
   188.9556,
   164.0632,
   143.2334,
   125.8865,
   111.4605,
   89.35499,
   73.51192,
   61.56412,
   44.10414,
   31.47552,
   22.14433,
   15.48813,
   10.96972,
   8.056004,
   6.269921,
   5.228203,
   4.649523,
   4.342855,
   4.187251,
   4.110912,
   4.073735,
   4.054578,
   4.042905,
   4.03374,
   4.024854,
   4.015301,
   4.004697,
   3.992896,
   3.979843,
   3.96552,
   3.94992,
   3.933043,
   3.914887,
   3.895451,
   3.874737,
   3.852743,
   3.829471,
   3.804919,
   3.779088,
   3.751978,
   3.723589,
   3.693921,
   3.662974,
   3.630748,
   3.597243,
   3.597243};
   TGraph *graph = new TGraph(145,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",145,1085.4,1140.6);
   Graph_curvetot1->SetMinimum(0);
   Graph_curvetot1->SetMaximum(1120.274);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t bkg_fx2[102] = {
   1090,
   1090.46,
   1090.92,
   1091.38,
   1091.84,
   1092.3,
   1092.76,
   1093.22,
   1093.68,
   1094.14,
   1094.6,
   1095.06,
   1095.52,
   1095.98,
   1096.44,
   1096.9,
   1097.36,
   1097.82,
   1098.28,
   1098.74,
   1099.2,
   1099.66,
   1100.12,
   1100.58,
   1101.04,
   1101.5,
   1101.96,
   1102.42,
   1102.88,
   1103.34,
   1103.8,
   1104.26,
   1104.72,
   1105.18,
   1105.64,
   1106.1,
   1106.56,
   1107.02,
   1107.48,
   1107.94,
   1108.4,
   1108.86,
   1109.32,
   1109.78,
   1110.24,
   1110.7,
   1111.16,
   1111.62,
   1112.08,
   1112.54,
   1113,
   1113.46,
   1113.92,
   1114.38,
   1114.84,
   1115.3,
   1115.76,
   1116.22,
   1116.68,
   1117.14,
   1117.6,
   1118.06,
   1118.52,
   1118.98,
   1119.44,
   1119.9,
   1120.36,
   1120.82,
   1121.28,
   1121.74,
   1122.2,
   1122.66,
   1123.12,
   1123.58,
   1124.04,
   1124.5,
   1124.96,
   1125.42,
   1125.88,
   1126.34,
   1126.8,
   1127.26,
   1127.72,
   1128.18,
   1128.64,
   1129.1,
   1129.56,
   1130.02,
   1130.48,
   1130.94,
   1131.4,
   1131.86,
   1132.32,
   1132.78,
   1133.24,
   1133.7,
   1134.16,
   1134.62,
   1135.08,
   1135.54,
   1136,
   1136};
   Double_t bkg_fy2[102] = {
   0.6162995,
   0.7094237,
   0.8012687,
   0.8918347,
   0.9811216,
   1.069129,
   1.155858,
   1.241308,
   1.325478,
   1.40837,
   1.489982,
   1.570316,
   1.64937,
   1.727145,
   1.803641,
   1.878858,
   1.952796,
   2.025455,
   2.096834,
   2.166935,
   2.235756,
   2.303299,
   2.369562,
   2.434547,
   2.498252,
   2.560678,
   2.621825,
   2.681693,
   2.740282,
   2.797591,
   2.853622,
   2.908374,
   2.961846,
   3.01404,
   3.064954,
   3.114589,
   3.162945,
   3.210023,
   3.255821,
   3.300339,
   3.343579,
   3.38554,
   3.426222,
   3.465624,
   3.503748,
   3.540592,
   3.576157,
   3.610444,
   3.643451,
   3.675179,
   3.705628,
   3.734798,
   3.762689,
   3.7893,
   3.814633,
   3.838686,
   3.861461,
   3.882956,
   3.903173,
   3.92211,
   3.939768,
   3.956147,
   3.971247,
   3.985068,
   3.99761,
   4.008872,
   4.018856,
   4.02756,
   4.034986,
   4.041132,
   4.045999,
   4.049588,
   4.051897,
   4.052927,
   4.052678,
   4.051149,
   4.048342,
   4.044256,
   4.03889,
   4.032246,
   4.024322,
   4.01512,
   4.004638,
   3.992877,
   3.979837,
   3.965518,
   3.94992,
   3.933043,
   3.914887,
   3.895451,
   3.874737,
   3.852743,
   3.829471,
   3.804919,
   3.779088,
   3.751978,
   3.723589,
   3.693921,
   3.662974,
   3.630748,
   3.597243,
   3.597243};
   graph = new TGraph(102,bkg_fx2,bkg_fy2);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg2 = new TH1F("Graph_bkg2","Projection of totalPdf",102,1085.4,1140.6);
   Graph_bkg2->SetMinimum(0.2726368);
   Graph_bkg2->SetMaximum(4.396589);
   Graph_bkg2->SetDirectory(0);
   Graph_bkg2->SetStats(0);
   Graph_bkg2->SetLineWidth(2);
   Graph_bkg2->SetMarkerStyle(20);
   Graph_bkg2->GetXaxis()->SetNdivisions(505);
   Graph_bkg2->GetXaxis()->SetLabelFont(132);
   Graph_bkg2->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetXaxis()->SetTitleFont(132);
   Graph_bkg2->GetYaxis()->SetLabelFont(132);
   Graph_bkg2->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetYaxis()->SetTitleFont(132);
   Graph_bkg2->GetZaxis()->SetLabelFont(132);
   Graph_bkg2->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg2);
   
   graph->Draw("l");
   
   Double_t sigLM_fx3[145] = {
   1090,
   1090.46,
   1090.92,
   1091.38,
   1091.84,
   1092.3,
   1092.76,
   1093.22,
   1093.68,
   1094.14,
   1094.6,
   1095.06,
   1095.52,
   1095.98,
   1096.44,
   1096.9,
   1097.36,
   1097.82,
   1098.28,
   1098.74,
   1099.2,
   1099.66,
   1100.12,
   1100.58,
   1101.04,
   1101.5,
   1101.96,
   1102.42,
   1102.88,
   1103.34,
   1103.8,
   1104.26,
   1104.72,
   1105.18,
   1105.64,
   1106.1,
   1106.56,
   1107.02,
   1107.48,
   1107.94,
   1108.4,
   1108.86,
   1109.32,
   1109.78,
   1110.24,
   1110.7,
   1111.16,
   1111.62,
   1112.08,
   1112.54,
   1112.77,
   1113,
   1113.23,
   1113.345,
   1113.46,
   1113.575,
   1113.69,
   1113.805,
   1113.92,
   1114.035,
   1114.15,
   1114.265,
   1114.38,
   1114.495,
   1114.61,
   1114.725,
   1114.84,
   1115.07,
   1115.185,
   1115.3,
   1115.358,
   1115.415,
   1115.472,
   1115.53,
   1115.588,
   1115.645,
   1115.702,
   1115.76,
   1115.818,
   1115.875,
   1115.932,
   1115.99,
   1116.048,
   1116.105,
   1116.162,
   1116.22,
   1116.278,
   1116.335,
   1116.45,
   1116.565,
   1116.68,
   1116.91,
   1117.025,
   1117.14,
   1117.255,
   1117.37,
   1117.485,
   1117.6,
   1117.715,
   1117.83,
   1117.945,
   1118.06,
   1118.175,
   1118.29,
   1118.52,
   1118.75,
   1118.98,
   1119.44,
   1119.9,
   1120.36,
   1120.82,
   1121.28,
   1121.74,
   1122.2,
   1122.66,
   1123.12,
   1123.58,
   1124.04,
   1124.5,
   1124.96,
   1125.42,
   1125.88,
   1126.34,
   1126.8,
   1127.26,
   1127.72,
   1128.18,
   1128.64,
   1129.1,
   1129.56,
   1130.02,
   1130.48,
   1130.94,
   1131.4,
   1131.86,
   1132.32,
   1132.78,
   1133.24,
   1133.7,
   1134.16,
   1134.62,
   1135.08,
   1135.54,
   1136,
   1136};
   Double_t sigLM_fy3[145] = {
   8.893075e-29,
   1.039866e-27,
   1.163342e-26,
   1.245209e-25,
   1.27521e-24,
   1.24947e-23,
   1.171318e-22,
   1.050578e-21,
   9.015427e-21,
   7.402001e-20,
   5.814557e-19,
   4.370074e-18,
   3.14243e-17,
   2.161958e-16,
   1.423093e-15,
   8.962398e-15,
   5.400324e-14,
   3.113293e-13,
   1.717216e-12,
   9.062217e-12,
   4.575607e-11,
   2.210383e-10,
   1.021624e-09,
   4.517721e-09,
   1.911404e-08,
   7.73731e-08,
   2.996624e-07,
   1.110399e-06,
   3.936687e-06,
   1.335326e-05,
   4.333593e-05,
   0.0001345593,
   0.000399746,
   0.001136211,
   0.00308986,
   0.00803939,
   0.020013,
   0.04766568,
   0.1086186,
   0.2368139,
   0.4939863,
   0.9858873,
   1.882541,
   3.439269,
   6.011646,
   10.05386,
   16.08929,
   24.65696,
   36.32498,
   52.2088,
   62.72222,
   76.24238,
   94.62588,
   106.4878,
   120.7142,
   137.8197,
   158.3637,
   182.9257,
   212.0699,
   246.3,
   286.0043,
   331.396,
   382.4516,
   438.854,
   499.9476,
   564.7118,
   631.7598,
   765.5317,
   828.0667,
   884.7167,
   910.1448,
   933.2942,
   953.9257,
   971.8214,
   986.7893,
   998.6665,
   1007.322,
   1012.661,
   1014.623,
   1013.186,
   1008.366,
   1000.217,
   988.8304,
   974.3303,
   956.8753,
   936.653,
   913.8775,
   888.7852,
   832.6828,
   770.5221,
   704.5583,
   569.8315,
   504.8368,
   443.4185,
   386.6256,
   335.1415,
   289.3078,
   249.1689,
   214.5278,
   185.0075,
   160.1111,
   139.2773,
   121.9265,
   107.4966,
   85.38374,
   69.53361,
   57.57905,
   40.10653,
   27.46664,
   18.12548,
   11.46057,
   6.934737,
   4.014872,
   2.223922,
   1.178615,
   0.5976258,
   0.2899288,
   0.134573,
   0.05976256,
   0.02539248,
   0.01032252,
   0.004014866,
   0.001494036,
   0.0005319315,
   0.0001811987,
   5.905533e-05,
   1.841483e-05,
   5.493905e-06,
   1.568192e-06,
   4.282741e-07,
   1.119049e-07,
   2.797572e-08,
   6.691415e-09,
   1.531297e-09,
   3.352783e-10,
   7.023542e-11,
   1.407705e-11,
   2.699428e-12,
   4.952636e-13,
   8.693725e-14,
   1.460091e-14,
   2.346166e-15,
   3.606968e-16,
   5.30555e-17,
   5.30555e-17};
   graph = new TGraph(145,sigLM_fx3,sigLM_fy3);
   graph->SetName("sigLM");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(3);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigLM3 = new TH1F("Graph_sigLM3","Projection of totalPdf",145,1085.4,1140.6);
   Graph_sigLM3->SetMinimum(0);
   Graph_sigLM3->SetMaximum(1116.085);
   Graph_sigLM3->SetDirectory(0);
   Graph_sigLM3->SetStats(0);
   Graph_sigLM3->SetLineWidth(2);
   Graph_sigLM3->SetMarkerStyle(20);
   Graph_sigLM3->GetXaxis()->SetNdivisions(505);
   Graph_sigLM3->GetXaxis()->SetLabelFont(132);
   Graph_sigLM3->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigLM3->GetXaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetXaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigLM3->GetXaxis()->SetTitleFont(132);
   Graph_sigLM3->GetYaxis()->SetLabelFont(132);
   Graph_sigLM3->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigLM3->GetYaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetYaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigLM3->GetYaxis()->SetTitleFont(132);
   Graph_sigLM3->GetZaxis()->SetLabelFont(132);
   Graph_sigLM3->GetZaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetZaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigLM3->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigLM3);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigLM","#Lambda M (dbl Gaus)","l");
   entry->SetLineColor(3);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4ac28d0__4 = new TH1D("frame_4ac28d0__4","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_4ac28d0__4->SetBinContent(1,1122.663);
   frame_4ac28d0__4->SetMaximum(1122.663);
   frame_4ac28d0__4->SetEntries(1);
   frame_4ac28d0__4->SetDirectory(0);
   frame_4ac28d0__4->SetStats(0);
   frame_4ac28d0__4->SetLineWidth(2);
   frame_4ac28d0__4->SetMarkerStyle(20);
   frame_4ac28d0__4->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4ac28d0__4->GetXaxis()->SetNdivisions(505);
   frame_4ac28d0__4->GetXaxis()->SetLabelFont(132);
   frame_4ac28d0__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4ac28d0__4->GetXaxis()->SetLabelSize(0.06);
   frame_4ac28d0__4->GetXaxis()->SetTitleSize(0.072);
   frame_4ac28d0__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4ac28d0__4->GetXaxis()->SetTitleFont(132);
   frame_4ac28d0__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4ac28d0__4->GetYaxis()->SetLabelFont(132);
   frame_4ac28d0__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4ac28d0__4->GetYaxis()->SetLabelSize(0.06);
   frame_4ac28d0__4->GetYaxis()->SetTitleSize(0.072);
   frame_4ac28d0__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4ac28d0__4->GetYaxis()->SetTitleFont(132);
   frame_4ac28d0__4->GetZaxis()->SetLabelFont(132);
   frame_4ac28d0__4->GetZaxis()->SetLabelSize(0.06);
   frame_4ac28d0__4->GetZaxis()->SetTitleSize(0.072);
   frame_4ac28d0__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4ac28d0__4->GetZaxis()->SetTitleFont(132);
   frame_4ac28d0__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 4
0
void fit7_testbkg_withtail()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Thu Mar 10 20:15:02 2016) by ROOT version6.06/00
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_49a73f0__1 = new TH1D("frame_49a73f0__1","",100,4100,6100);
   frame_49a73f0__1->SetBinContent(1,1.814401);
   frame_49a73f0__1->SetMinimum(-8.8);
   frame_49a73f0__1->SetMaximum(8.8);
   frame_49a73f0__1->SetEntries(1);
   frame_49a73f0__1->SetDirectory(0);
   frame_49a73f0__1->SetStats(0);
   frame_49a73f0__1->SetLineWidth(2);
   frame_49a73f0__1->SetMarkerStyle(20);
   frame_49a73f0__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_49a73f0__1->GetXaxis()->SetNdivisions(505);
   frame_49a73f0__1->GetXaxis()->SetLabelFont(132);
   frame_49a73f0__1->GetXaxis()->SetLabelOffset(0.01);
   frame_49a73f0__1->GetXaxis()->SetLabelSize(0.15);
   frame_49a73f0__1->GetXaxis()->SetTitleSize(0.2);
   frame_49a73f0__1->GetXaxis()->SetTitleOffset(1.1);
   frame_49a73f0__1->GetXaxis()->SetTitleFont(132);
   frame_49a73f0__1->GetYaxis()->SetTitle("Pull");
   frame_49a73f0__1->GetYaxis()->CenterTitle(true);
   frame_49a73f0__1->GetYaxis()->SetNdivisions(505);
   frame_49a73f0__1->GetYaxis()->SetLabelFont(132);
   frame_49a73f0__1->GetYaxis()->SetLabelOffset(0.01);
   frame_49a73f0__1->GetYaxis()->SetLabelSize(0.15);
   frame_49a73f0__1->GetYaxis()->SetTitleSize(0.15);
   frame_49a73f0__1->GetYaxis()->SetTitleOffset(0.45);
   frame_49a73f0__1->GetYaxis()->SetTitleFont(132);
   frame_49a73f0__1->GetZaxis()->SetLabelFont(132);
   frame_49a73f0__1->GetZaxis()->SetLabelSize(0.06);
   frame_49a73f0__1->GetZaxis()->SetTitleSize(0.072);
   frame_49a73f0__1->GetZaxis()->SetTitleOffset(1.2);
   frame_49a73f0__1->GetZaxis()->SetTitleFont(132);
   frame_49a73f0__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[5] = {
   5950,
   5970,
   5990,
   6010,
   6030};
   Double_t pull_Hist_curvetot_fy3001[5] = {
   -0.7070745,
   0.407049,
   0.6467117,
   -0.3394017,
   -0.6307982};
   Double_t pull_Hist_curvetot_felx3001[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[5] = {
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[5] = {
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[5] = {
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(5,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,5942,6038);
   Graph_pull_Hist_curvetot3001->SetMinimum(-2.042453);
   Graph_pull_Hist_curvetot3001->SetMaximum(1.98209);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_49a73f0__2 = new TH1D("frame_49a73f0__2","",100,4100,6100);
   frame_49a73f0__2->SetBinContent(1,1.814401);
   frame_49a73f0__2->SetMinimum(-8.8);
   frame_49a73f0__2->SetMaximum(8.8);
   frame_49a73f0__2->SetEntries(1);
   frame_49a73f0__2->SetDirectory(0);
   frame_49a73f0__2->SetStats(0);
   frame_49a73f0__2->SetLineWidth(2);
   frame_49a73f0__2->SetMarkerStyle(20);
   frame_49a73f0__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_49a73f0__2->GetXaxis()->SetNdivisions(505);
   frame_49a73f0__2->GetXaxis()->SetLabelFont(132);
   frame_49a73f0__2->GetXaxis()->SetLabelOffset(0.01);
   frame_49a73f0__2->GetXaxis()->SetLabelSize(0.15);
   frame_49a73f0__2->GetXaxis()->SetTitleSize(0.2);
   frame_49a73f0__2->GetXaxis()->SetTitleOffset(1.1);
   frame_49a73f0__2->GetXaxis()->SetTitleFont(132);
   frame_49a73f0__2->GetYaxis()->SetTitle("Pull");
   frame_49a73f0__2->GetYaxis()->CenterTitle(true);
   frame_49a73f0__2->GetYaxis()->SetNdivisions(505);
   frame_49a73f0__2->GetYaxis()->SetLabelFont(132);
   frame_49a73f0__2->GetYaxis()->SetLabelOffset(0.01);
   frame_49a73f0__2->GetYaxis()->SetLabelSize(0.15);
   frame_49a73f0__2->GetYaxis()->SetTitleSize(0.15);
   frame_49a73f0__2->GetYaxis()->SetTitleOffset(0.45);
   frame_49a73f0__2->GetYaxis()->SetTitleFont(132);
   frame_49a73f0__2->GetZaxis()->SetLabelFont(132);
   frame_49a73f0__2->GetZaxis()->SetLabelSize(0.06);
   frame_49a73f0__2->GetZaxis()->SetTitleSize(0.072);
   frame_49a73f0__2->GetZaxis()->SetTitleOffset(1.2);
   frame_49a73f0__2->GetZaxis()->SetTitleFont(132);
   frame_49a73f0__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(3754.321,0,6223.457,3.935074);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4a4d3a0__3 = new TH1D("frame_4a4d3a0__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4a4d3a0__3->SetBinContent(1,2612.806);
   frame_4a4d3a0__3->SetMinimum(1);
   frame_4a4d3a0__3->SetMaximum(5000);
   frame_4a4d3a0__3->SetEntries(1);
   frame_4a4d3a0__3->SetDirectory(0);
   frame_4a4d3a0__3->SetStats(0);
   frame_4a4d3a0__3->SetLineWidth(2);
   frame_4a4d3a0__3->SetMarkerStyle(20);
   frame_4a4d3a0__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4a4d3a0__3->GetXaxis()->SetNdivisions(505);
   frame_4a4d3a0__3->GetXaxis()->SetLabelFont(132);
   frame_4a4d3a0__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4a4d3a0__3->GetXaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__3->GetXaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4a4d3a0__3->GetXaxis()->SetTitleFont(132);
   frame_4a4d3a0__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4a4d3a0__3->GetYaxis()->SetLabelFont(132);
   frame_4a4d3a0__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4a4d3a0__3->GetYaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__3->GetYaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4a4d3a0__3->GetYaxis()->SetTitleFont(132);
   frame_4a4d3a0__3->GetZaxis()->SetLabelFont(132);
   frame_4a4d3a0__3->GetZaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__3->GetZaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4a4d3a0__3->GetZaxis()->SetTitleFont(132);
   frame_4a4d3a0__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   25,
   123,
   153,
   163,
   161,
   157,
   176,
   121,
   130,
   136,
   136,
   130,
   106,
   122,
   105,
   107,
   104,
   100,
   107,
   105,
   92,
   93,
   88,
   115,
   88,
   88,
   108,
   101,
   116,
   85,
   109,
   95,
   68,
   99,
   102,
   127,
   137,
   141,
   166,
   163,
   184,
   182,
   166,
   137,
   112,
   116,
   87,
   92,
   82,
   81,
   118,
   84,
   82,
   81,
   83,
   79,
   62,
   60,
   30,
   27,
   40,
   28,
   31,
   33,
   24,
   26,
   36,
   46,
   69,
   157,
   1925,
   2439,
   191,
   42,
   24,
   14,
   16,
   9,
   11,
   19,
   9,
   11,
   12,
   7,
   12,
   10,
   7,
   5,
   7,
   7,
   4,
   3,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   5,
   11.09054,
   12.36932,
   12.76715,
   12.68858,
   12.52996,
   13.2665,
   11,
   11.40175,
   11.6619,
   11.6619,
   11.40175,
   10.29563,
   11.04536,
   10.24695,
   10.34408,
   10.19804,
   10,
   10.34408,
   10.24695,
   9.591663,
   9.643651,
   9.380832,
   10.72381,
   9.380832,
   9.380832,
   10.3923,
   10.04988,
   10.77033,
   9.219544,
   10.44031,
   9.746794,
   8.246211,
   9.949874,
   10.0995,
   11.26943,
   11.7047,
   11.87434,
   12.8841,
   12.76715,
   13.56466,
   13.49074,
   12.8841,
   11.7047,
   10.58301,
   10.77033,
   9.327379,
   9.591663,
   9.055385,
   9,
   10.86278,
   9.165151,
   9.055385,
   9,
   9.110434,
   8.888194,
   7.874008,
   7.745967,
   5.477226,
   5.196152,
   6.324555,
   5.291503,
   5.567764,
   5.744563,
   4.898979,
   5.09902,
   6,
   6.78233,
   8.306624,
   12.52996,
   43.87482,
   49.38623,
   13.82027,
   6.480741,
   4.898979,
   3.741657,
   4,
   3,
   3.316625,
   4.358899,
   3,
   3.316625,
   3.464102,
   2.645751,
   3.464102,
   3.162278,
   2.645751,
   2.236068,
   2.645751,
   2.645751,
   2,
   1.732051,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   5,
   11.09054,
   12.36932,
   12.76715,
   12.68858,
   12.52996,
   13.2665,
   11,
   11.40175,
   11.6619,
   11.6619,
   11.40175,
   10.29563,
   11.04536,
   10.24695,
   10.34408,
   10.19804,
   10,
   10.34408,
   10.24695,
   9.591663,
   9.643651,
   9.380832,
   10.72381,
   9.380832,
   9.380832,
   10.3923,
   10.04988,
   10.77033,
   9.219544,
   10.44031,
   9.746794,
   8.246211,
   9.949874,
   10.0995,
   11.26943,
   11.7047,
   11.87434,
   12.8841,
   12.76715,
   13.56466,
   13.49074,
   12.8841,
   11.7047,
   10.58301,
   10.77033,
   9.327379,
   9.591663,
   9.055385,
   9,
   10.86278,
   9.165151,
   9.055385,
   9,
   9.110434,
   8.888194,
   7.874008,
   7.745967,
   5.477226,
   5.196152,
   6.324555,
   5.291503,
   5.567764,
   5.744563,
   4.898979,
   5.09902,
   6,
   6.78233,
   8.306624,
   12.52996,
   43.87482,
   49.38623,
   13.82027,
   6.480741,
   4.898979,
   3.741657,
   4,
   3,
   3.316625,
   4.358899,
   3,
   3.316625,
   3.464102,
   2.645751,
   3.464102,
   3.162278,
   2.645751,
   2.236068,
   2.645751,
   2.645751,
   2,
   1.732051,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300);
   Graph_Hist3002->SetMinimum(2.737225);
   Graph_Hist3002->SetMaximum(2737.225);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   4300,
   4305,
   4310,
   4315,
   4320,
   4325,
   4330,
   4335,
   4340,
   4345,
   4350,
   4355,
   4360,
   4365,
   4370,
   4375,
   4380,
   4385,
   4390,
   4395,
   4400,
   4405,
   4410,
   4415,
   4420,
   4425,
   4430,
   4435,
   4440,
   4445,
   4450,
   4455,
   4460,
   4465,
   4470,
   4475,
   4480,
   4485,
   4490,
   4495,
   4500,
   4505,
   4510,
   4515,
   4520,
   4525,
   4530,
   4535,
   4540,
   4545,
   4550,
   4555,
   4560,
   4565,
   4570,
   4575,
   4580,
   4585,
   4590,
   4595,
   4600,
   4605,
   4610,
   4615,
   4620,
   4625,
   4630,
   4635,
   4640,
   4645,
   4650,
   4655,
   4660,
   4665,
   4670,
   4675,
   4680,
   4685,
   4690,
   4695,
   4700,
   4705,
   4710,
   4715,
   4720,
   4725,
   4730,
   4735,
   4740,
   4745,
   4750,
   4755,
   4760,
   4765,
   4770,
   4775,
   4780,
   4785,
   4790,
   4795,
   4800,
   4800};
   Double_t curvetot_fy1[102] = {
   143.298,
   142.6376,
   141.9788,
   141.3214,
   140.6656,
   140.0112,
   139.3584,
   138.707,
   138.0571,
   137.4088,
   136.7619,
   136.1165,
   135.4726,
   134.8302,
   134.1893,
   133.5499,
   132.912,
   132.2756,
   131.6407,
   131.0072,
   130.3753,
   129.7449,
   129.116,
   128.4885,
   127.8626,
   127.2381,
   126.6152,
   125.9937,
   125.3738,
   124.7553,
   124.1384,
   123.5229,
   122.9089,
   122.2964,
   121.6854,
   121.076,
   120.468,
   119.8615,
   119.2565,
   118.653,
   118.051,
   117.4504,
   116.8514,
   116.2539,
   115.6579,
   115.0633,
   114.4703,
   113.8788,
   113.2887,
   112.7002,
   112.1131,
   111.5276,
   110.9435,
   110.361,
   109.7799,
   109.2003,
   108.6222,
   108.0457,
   107.4706,
   106.897,
   106.3249,
   105.7543,
   105.1852,
   104.6176,
   104.0515,
   103.4868,
   102.9237,
   102.3621,
   101.802,
   101.2433,
   100.6862,
   100.1306,
   99.57642,
   99.02377,
   98.47262,
   97.92296,
   97.3748,
   96.82813,
   96.28296,
   95.73929,
   95.19711,
   94.65642,
   94.11724,
   93.57954,
   93.04335,
   92.50865,
   91.97544,
   91.44373,
   90.91352,
   90.3848,
   89.85758,
   89.33185,
   88.80762,
   88.28489,
   87.76365,
   87.2439,
   86.72566,
   86.20891,
   85.69365,
   85.17989,
   84.66762,
   84.66762};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,4250,4850);
   Graph_curvetot1->SetMinimum(78.80459);
   Graph_curvetot1->SetMaximum(149.161);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t curvetot_fx2[102] = {
   5700,
   5702.5,
   5705,
   5707.5,
   5710,
   5712.5,
   5715,
   5717.5,
   5720,
   5722.5,
   5725,
   5727.5,
   5730,
   5732.5,
   5735,
   5737.5,
   5740,
   5742.5,
   5745,
   5747.5,
   5750,
   5752.5,
   5755,
   5757.5,
   5760,
   5762.5,
   5765,
   5767.5,
   5770,
   5772.5,
   5775,
   5777.5,
   5780,
   5782.5,
   5785,
   5787.5,
   5790,
   5792.5,
   5795,
   5797.5,
   5800,
   5802.5,
   5805,
   5807.5,
   5810,
   5812.5,
   5815,
   5817.5,
   5820,
   5822.5,
   5825,
   5827.5,
   5830,
   5832.5,
   5835,
   5837.5,
   5840,
   5842.5,
   5845,
   5847.5,
   5850,
   5852.5,
   5855,
   5857.5,
   5860,
   5862.5,
   5865,
   5867.5,
   5870,
   5872.5,
   5875,
   5877.5,
   5880,
   5882.5,
   5885,
   5887.5,
   5890,
   5892.5,
   5895,
   5897.5,
   5900,
   5902.5,
   5905,
   5907.5,
   5910,
   5912.5,
   5915,
   5917.5,
   5920,
   5922.5,
   5925,
   5927.5,
   5930,
   5932.5,
   5935,
   5937.5,
   5940,
   5942.5,
   5945,
   5947.5,
   5950,
   5950};
   Double_t curvetot_fy2[102] = {
   16.82558,
   16.70463,
   16.58405,
   16.46384,
   16.34401,
   16.22455,
   16.10546,
   15.98675,
   15.86841,
   15.75045,
   15.63286,
   15.51564,
   15.3988,
   15.28233,
   15.16624,
   15.05052,
   14.93517,
   14.8202,
   14.7056,
   14.59138,
   14.47753,
   14.36405,
   14.25095,
   14.13822,
   14.02587,
   13.91389,
   13.80228,
   13.69105,
   13.58019,
   13.46971,
   13.3596,
   13.24986,
   13.1405,
   13.03151,
   12.92289,
   12.81465,
   12.70678,
   12.59929,
   12.49217,
   12.38543,
   12.27905,
   12.17306,
   12.06743,
   11.96218,
   11.85731,
   11.75281,
   11.64868,
   11.54492,
   11.44154,
   11.33854,
   11.23591,
   11.13365,
   11.03176,
   10.93025,
   10.82912,
   10.72835,
   10.62797,
   10.52795,
   10.42831,
   10.32904,
   10.23015,
   10.13163,
   10.03349,
   9.935716,
   9.838319,
   9.741296,
   9.644647,
   9.548372,
   9.45247,
   9.356943,
   9.26179,
   9.16701,
   9.072605,
   8.978573,
   8.884915,
   8.791632,
   8.698722,
   8.606186,
   8.514024,
   8.422236,
   8.330822,
   8.239782,
   8.149116,
   8.058823,
   7.968905,
   7.879361,
   7.79019,
   7.701394,
   7.612971,
   7.524922,
   7.437248,
   7.349947,
   7.26302,
   7.176467,
   7.090288,
   7.004483,
   6.919052,
   6.833995,
   6.749311,
   6.665002,
   6.581067,
   6.581067};
   graph = new TGraph(102,curvetot_fx2,curvetot_fy2);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot2 = new TH1F("Graph_curvetot2","Projection of totalPdf",102,5675,5975);
   Graph_curvetot2->SetMinimum(5.556615);
   Graph_curvetot2->SetMaximum(17.85003);
   Graph_curvetot2->SetDirectory(0);
   Graph_curvetot2->SetStats(0);
   Graph_curvetot2->SetLineWidth(2);
   Graph_curvetot2->SetMarkerStyle(20);
   Graph_curvetot2->GetXaxis()->SetNdivisions(505);
   Graph_curvetot2->GetXaxis()->SetLabelFont(132);
   Graph_curvetot2->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot2->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot2->GetXaxis()->SetTitleFont(132);
   Graph_curvetot2->GetYaxis()->SetLabelFont(132);
   Graph_curvetot2->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot2->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot2->GetYaxis()->SetTitleFont(132);
   Graph_curvetot2->GetZaxis()->SetLabelFont(132);
   Graph_curvetot2->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot2);
   
   graph->Draw("l");
   
   Double_t curvetot_fx3[102] = {
   5950,
   5950.9,
   5951.8,
   5952.7,
   5953.6,
   5954.5,
   5955.4,
   5956.3,
   5957.2,
   5958.1,
   5959,
   5959.9,
   5960.8,
   5961.7,
   5962.6,
   5963.5,
   5964.4,
   5965.3,
   5966.2,
   5967.1,
   5968,
   5968.9,
   5969.8,
   5970.7,
   5971.6,
   5972.5,
   5973.4,
   5974.3,
   5975.2,
   5976.1,
   5977,
   5977.9,
   5978.8,
   5979.7,
   5980.6,
   5981.5,
   5982.4,
   5983.3,
   5984.2,
   5985.1,
   5986,
   5986.9,
   5987.8,
   5988.7,
   5989.6,
   5990.5,
   5991.4,
   5992.3,
   5993.2,
   5994.1,
   5995,
   5995.9,
   5996.8,
   5997.7,
   5998.6,
   5999.5,
   6000.4,
   6001.3,
   6002.2,
   6003.1,
   6004,
   6004.9,
   6005.8,
   6006.7,
   6007.6,
   6008.5,
   6009.4,
   6010.3,
   6011.2,
   6012.1,
   6013,
   6013.9,
   6014.8,
   6015.7,
   6016.6,
   6017.5,
   6018.4,
   6019.3,
   6020.2,
   6021.1,
   6022,
   6022.9,
   6023.8,
   6024.7,
   6025.6,
   6026.5,
   6027.4,
   6028.3,
   6029.2,
   6030.1,
   6031,
   6031.9,
   6032.8,
   6033.7,
   6034.6,
   6035.5,
   6036.4,
   6037.3,
   6038.2,
   6039.1,
   6040,
   6040};
   Double_t curvetot_fy3[102] = {
   6.581067,
   6.550942,
   6.520865,
   6.490837,
   6.460857,
   6.430925,
   6.401042,
   6.371208,
   6.341422,
   6.311685,
   6.281996,
   6.252355,
   6.222763,
   6.193219,
   6.163724,
   6.134277,
   6.104879,
   6.075529,
   6.046228,
   6.016975,
   5.987771,
   5.958615,
   5.929507,
   5.900448,
   5.871437,
   5.842475,
   5.813562,
   5.784697,
   5.75588,
   5.727112,
   5.698392,
   5.66972,
   5.641098,
   5.612523,
   5.583997,
   5.55552,
   5.527091,
   5.49871,
   5.470378,
   5.442094,
   5.413859,
   5.385672,
   5.357534,
   5.329444,
   5.301403,
   5.27341,
   5.245466,
   5.21757,
   5.189722,
   5.161923,
   5.134173,
   5.106471,
   5.078817,
   5.051212,
   5.023655,
   4.996147,
   4.968687,
   4.941276,
   4.913913,
   4.886598,
   4.859333,
   4.832115,
   4.804946,
   4.777825,
   4.750753,
   4.72373,
   4.696755,
   4.669828,
   4.64295,
   4.61612,
   4.589339,
   4.562606,
   4.535921,
   4.509285,
   4.482698,
   4.456159,
   4.429668,
   4.403226,
   4.376833,
   4.350487,
   4.324191,
   4.297942,
   4.271743,
   4.245591,
   4.219488,
   4.193434,
   4.167428,
   4.141471,
   4.115562,
   4.089701,
   4.063889,
   4.038125,
   4.01241,
   3.986744,
   3.961125,
   3.935556,
   3.910034,
   3.884561,
   3.859137,
   3.833761,
   3.808434,
   3.808434};
   graph = new TGraph(102,curvetot_fx3,curvetot_fy3);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot3 = new TH1F("Graph_curvetot3","Projection of totalPdf",102,5941,6049);
   Graph_curvetot3->SetMinimum(3.53117);
   Graph_curvetot3->SetMaximum(6.85833);
   Graph_curvetot3->SetDirectory(0);
   Graph_curvetot3->SetStats(0);
   Graph_curvetot3->SetLineWidth(2);
   Graph_curvetot3->SetMarkerStyle(20);
   Graph_curvetot3->GetXaxis()->SetNdivisions(505);
   Graph_curvetot3->GetXaxis()->SetLabelFont(132);
   Graph_curvetot3->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot3->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot3->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot3->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot3->GetXaxis()->SetTitleFont(132);
   Graph_curvetot3->GetYaxis()->SetLabelFont(132);
   Graph_curvetot3->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot3->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot3->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot3->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot3->GetYaxis()->SetTitleFont(132);
   Graph_curvetot3->GetZaxis()->SetLabelFont(132);
   Graph_curvetot3->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot3->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot3->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot3->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot3);
   
   graph->Draw("l");
   
   Double_t bkg_fx4[102] = {
   4300,
   4305,
   4310,
   4315,
   4320,
   4325,
   4330,
   4335,
   4340,
   4345,
   4350,
   4355,
   4360,
   4365,
   4370,
   4375,
   4380,
   4385,
   4390,
   4395,
   4400,
   4405,
   4410,
   4415,
   4420,
   4425,
   4430,
   4435,
   4440,
   4445,
   4450,
   4455,
   4460,
   4465,
   4470,
   4475,
   4480,
   4485,
   4490,
   4495,
   4500,
   4505,
   4510,
   4515,
   4520,
   4525,
   4530,
   4535,
   4540,
   4545,
   4550,
   4555,
   4560,
   4565,
   4570,
   4575,
   4580,
   4585,
   4590,
   4595,
   4600,
   4605,
   4610,
   4615,
   4620,
   4625,
   4630,
   4635,
   4640,
   4645,
   4650,
   4655,
   4660,
   4665,
   4670,
   4675,
   4680,
   4685,
   4690,
   4695,
   4700,
   4705,
   4710,
   4715,
   4720,
   4725,
   4730,
   4735,
   4740,
   4745,
   4750,
   4755,
   4760,
   4765,
   4770,
   4775,
   4780,
   4785,
   4790,
   4795,
   4800,
   4800};
   Double_t bkg_fy4[102] = {
   143.298,
   142.6376,
   141.9788,
   141.3214,
   140.6656,
   140.0112,
   139.3584,
   138.707,
   138.0571,
   137.4088,
   136.7619,
   136.1165,
   135.4726,
   134.8302,
   134.1893,
   133.5499,
   132.912,
   132.2756,
   131.6407,
   131.0072,
   130.3753,
   129.7449,
   129.116,
   128.4885,
   127.8626,
   127.2381,
   126.6152,
   125.9937,
   125.3738,
   124.7553,
   124.1384,
   123.5229,
   122.9089,
   122.2964,
   121.6854,
   121.076,
   120.468,
   119.8615,
   119.2565,
   118.653,
   118.051,
   117.4504,
   116.8514,
   116.2539,
   115.6579,
   115.0633,
   114.4703,
   113.8788,
   113.2887,
   112.7002,
   112.1131,
   111.5276,
   110.9435,
   110.361,
   109.7799,
   109.2003,
   108.6222,
   108.0457,
   107.4706,
   106.897,
   106.3249,
   105.7543,
   105.1852,
   104.6176,
   104.0515,
   103.4868,
   102.9237,
   102.3621,
   101.802,
   101.2433,
   100.6862,
   100.1306,
   99.57642,
   99.02377,
   98.47262,
   97.92296,
   97.3748,
   96.82813,
   96.28296,
   95.73929,
   95.19711,
   94.65642,
   94.11724,
   93.57954,
   93.04335,
   92.50865,
   91.97544,
   91.44373,
   90.91352,
   90.3848,
   89.85758,
   89.33185,
   88.80762,
   88.28489,
   87.76365,
   87.2439,
   86.72566,
   86.20891,
   85.69365,
   85.17989,
   84.66762,
   84.66762};
   graph = new TGraph(102,bkg_fx4,bkg_fy4);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg4 = new TH1F("Graph_bkg4","Projection of totalPdf",102,4250,4850);
   Graph_bkg4->SetMinimum(78.80459);
   Graph_bkg4->SetMaximum(149.161);
   Graph_bkg4->SetDirectory(0);
   Graph_bkg4->SetStats(0);
   Graph_bkg4->SetLineWidth(2);
   Graph_bkg4->SetMarkerStyle(20);
   Graph_bkg4->GetXaxis()->SetNdivisions(505);
   Graph_bkg4->GetXaxis()->SetLabelFont(132);
   Graph_bkg4->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg4->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg4->GetXaxis()->SetTitleFont(132);
   Graph_bkg4->GetYaxis()->SetLabelFont(132);
   Graph_bkg4->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg4->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg4->GetYaxis()->SetTitleFont(132);
   Graph_bkg4->GetZaxis()->SetLabelFont(132);
   Graph_bkg4->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg4->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg4);
   
   graph->Draw("l");
   
   Double_t bkg_fx5[102] = {
   5700,
   5702.5,
   5705,
   5707.5,
   5710,
   5712.5,
   5715,
   5717.5,
   5720,
   5722.5,
   5725,
   5727.5,
   5730,
   5732.5,
   5735,
   5737.5,
   5740,
   5742.5,
   5745,
   5747.5,
   5750,
   5752.5,
   5755,
   5757.5,
   5760,
   5762.5,
   5765,
   5767.5,
   5770,
   5772.5,
   5775,
   5777.5,
   5780,
   5782.5,
   5785,
   5787.5,
   5790,
   5792.5,
   5795,
   5797.5,
   5800,
   5802.5,
   5805,
   5807.5,
   5810,
   5812.5,
   5815,
   5817.5,
   5820,
   5822.5,
   5825,
   5827.5,
   5830,
   5832.5,
   5835,
   5837.5,
   5840,
   5842.5,
   5845,
   5847.5,
   5850,
   5852.5,
   5855,
   5857.5,
   5860,
   5862.5,
   5865,
   5867.5,
   5870,
   5872.5,
   5875,
   5877.5,
   5880,
   5882.5,
   5885,
   5887.5,
   5890,
   5892.5,
   5895,
   5897.5,
   5900,
   5902.5,
   5905,
   5907.5,
   5910,
   5912.5,
   5915,
   5917.5,
   5920,
   5922.5,
   5925,
   5927.5,
   5930,
   5932.5,
   5935,
   5937.5,
   5940,
   5942.5,
   5945,
   5947.5,
   5950,
   5950};
   Double_t bkg_fy5[102] = {
   16.82558,
   16.70463,
   16.58405,
   16.46384,
   16.34401,
   16.22455,
   16.10546,
   15.98675,
   15.86841,
   15.75045,
   15.63286,
   15.51564,
   15.3988,
   15.28233,
   15.16624,
   15.05052,
   14.93517,
   14.8202,
   14.7056,
   14.59138,
   14.47753,
   14.36405,
   14.25095,
   14.13822,
   14.02587,
   13.91389,
   13.80228,
   13.69105,
   13.58019,
   13.46971,
   13.3596,
   13.24986,
   13.1405,
   13.03151,
   12.92289,
   12.81465,
   12.70678,
   12.59929,
   12.49217,
   12.38543,
   12.27905,
   12.17306,
   12.06743,
   11.96218,
   11.85731,
   11.75281,
   11.64868,
   11.54492,
   11.44154,
   11.33854,
   11.23591,
   11.13365,
   11.03176,
   10.93025,
   10.82912,
   10.72835,
   10.62797,
   10.52795,
   10.42831,
   10.32904,
   10.23015,
   10.13163,
   10.03349,
   9.935716,
   9.838319,
   9.741296,
   9.644647,
   9.548372,
   9.45247,
   9.356943,
   9.26179,
   9.16701,
   9.072605,
   8.978573,
   8.884915,
   8.791632,
   8.698722,
   8.606186,
   8.514024,
   8.422236,
   8.330822,
   8.239782,
   8.149116,
   8.058823,
   7.968905,
   7.879361,
   7.79019,
   7.701394,
   7.612971,
   7.524922,
   7.437248,
   7.349947,
   7.26302,
   7.176467,
   7.090288,
   7.004483,
   6.919052,
   6.833995,
   6.749311,
   6.665002,
   6.581067,
   6.581067};
   graph = new TGraph(102,bkg_fx5,bkg_fy5);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg5 = new TH1F("Graph_bkg5","Projection of totalPdf",102,5675,5975);
   Graph_bkg5->SetMinimum(5.556615);
   Graph_bkg5->SetMaximum(17.85003);
   Graph_bkg5->SetDirectory(0);
   Graph_bkg5->SetStats(0);
   Graph_bkg5->SetLineWidth(2);
   Graph_bkg5->SetMarkerStyle(20);
   Graph_bkg5->GetXaxis()->SetNdivisions(505);
   Graph_bkg5->GetXaxis()->SetLabelFont(132);
   Graph_bkg5->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg5->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg5->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg5->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg5->GetXaxis()->SetTitleFont(132);
   Graph_bkg5->GetYaxis()->SetLabelFont(132);
   Graph_bkg5->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg5->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg5->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg5->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg5->GetYaxis()->SetTitleFont(132);
   Graph_bkg5->GetZaxis()->SetLabelFont(132);
   Graph_bkg5->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg5->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg5->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg5->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg5);
   
   graph->Draw("l");
   
   Double_t bkg_fx6[102] = {
   5950,
   5950.9,
   5951.8,
   5952.7,
   5953.6,
   5954.5,
   5955.4,
   5956.3,
   5957.2,
   5958.1,
   5959,
   5959.9,
   5960.8,
   5961.7,
   5962.6,
   5963.5,
   5964.4,
   5965.3,
   5966.2,
   5967.1,
   5968,
   5968.9,
   5969.8,
   5970.7,
   5971.6,
   5972.5,
   5973.4,
   5974.3,
   5975.2,
   5976.1,
   5977,
   5977.9,
   5978.8,
   5979.7,
   5980.6,
   5981.5,
   5982.4,
   5983.3,
   5984.2,
   5985.1,
   5986,
   5986.9,
   5987.8,
   5988.7,
   5989.6,
   5990.5,
   5991.4,
   5992.3,
   5993.2,
   5994.1,
   5995,
   5995.9,
   5996.8,
   5997.7,
   5998.6,
   5999.5,
   6000.4,
   6001.3,
   6002.2,
   6003.1,
   6004,
   6004.9,
   6005.8,
   6006.7,
   6007.6,
   6008.5,
   6009.4,
   6010.3,
   6011.2,
   6012.1,
   6013,
   6013.9,
   6014.8,
   6015.7,
   6016.6,
   6017.5,
   6018.4,
   6019.3,
   6020.2,
   6021.1,
   6022,
   6022.9,
   6023.8,
   6024.7,
   6025.6,
   6026.5,
   6027.4,
   6028.3,
   6029.2,
   6030.1,
   6031,
   6031.9,
   6032.8,
   6033.7,
   6034.6,
   6035.5,
   6036.4,
   6037.3,
   6038.2,
   6039.1,
   6040,
   6040};
   Double_t bkg_fy6[102] = {
   6.581067,
   6.550942,
   6.520865,
   6.490837,
   6.460857,
   6.430925,
   6.401042,
   6.371208,
   6.341422,
   6.311685,
   6.281996,
   6.252355,
   6.222763,
   6.193219,
   6.163724,
   6.134277,
   6.104879,
   6.075529,
   6.046228,
   6.016975,
   5.987771,
   5.958615,
   5.929507,
   5.900448,
   5.871437,
   5.842475,
   5.813562,
   5.784697,
   5.75588,
   5.727112,
   5.698392,
   5.66972,
   5.641098,
   5.612523,
   5.583997,
   5.55552,
   5.527091,
   5.49871,
   5.470378,
   5.442094,
   5.413859,
   5.385672,
   5.357534,
   5.329444,
   5.301403,
   5.27341,
   5.245466,
   5.21757,
   5.189722,
   5.161923,
   5.134173,
   5.106471,
   5.078817,
   5.051212,
   5.023655,
   4.996147,
   4.968687,
   4.941276,
   4.913913,
   4.886598,
   4.859333,
   4.832115,
   4.804946,
   4.777825,
   4.750753,
   4.72373,
   4.696755,
   4.669828,
   4.64295,
   4.61612,
   4.589339,
   4.562606,
   4.535921,
   4.509285,
   4.482698,
   4.456159,
   4.429668,
   4.403226,
   4.376833,
   4.350487,
   4.324191,
   4.297942,
   4.271743,
   4.245591,
   4.219488,
   4.193434,
   4.167428,
   4.141471,
   4.115562,
   4.089701,
   4.063889,
   4.038125,
   4.01241,
   3.986744,
   3.961125,
   3.935556,
   3.910034,
   3.884561,
   3.859137,
   3.833761,
   3.808434,
   3.808434};
   graph = new TGraph(102,bkg_fx6,bkg_fy6);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg6 = new TH1F("Graph_bkg6","Projection of totalPdf",102,5941,6049);
   Graph_bkg6->SetMinimum(3.53117);
   Graph_bkg6->SetMaximum(6.85833);
   Graph_bkg6->SetDirectory(0);
   Graph_bkg6->SetStats(0);
   Graph_bkg6->SetLineWidth(2);
   Graph_bkg6->SetMarkerStyle(20);
   Graph_bkg6->GetXaxis()->SetNdivisions(505);
   Graph_bkg6->GetXaxis()->SetLabelFont(132);
   Graph_bkg6->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg6->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg6->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg6->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg6->GetXaxis()->SetTitleFont(132);
   Graph_bkg6->GetYaxis()->SetLabelFont(132);
   Graph_bkg6->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg6->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg6->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg6->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg6->GetYaxis()->SetTitleFont(132);
   Graph_bkg6->GetZaxis()->SetLabelFont(132);
   Graph_bkg6->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg6->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg6->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg6->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg6);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4a4d3a0__4 = new TH1D("frame_4a4d3a0__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4a4d3a0__4->SetBinContent(1,2612.806);
   frame_4a4d3a0__4->SetMinimum(1);
   frame_4a4d3a0__4->SetMaximum(5000);
   frame_4a4d3a0__4->SetEntries(1);
   frame_4a4d3a0__4->SetDirectory(0);
   frame_4a4d3a0__4->SetStats(0);
   frame_4a4d3a0__4->SetLineWidth(2);
   frame_4a4d3a0__4->SetMarkerStyle(20);
   frame_4a4d3a0__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4a4d3a0__4->GetXaxis()->SetNdivisions(505);
   frame_4a4d3a0__4->GetXaxis()->SetLabelFont(132);
   frame_4a4d3a0__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4a4d3a0__4->GetXaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__4->GetXaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4a4d3a0__4->GetXaxis()->SetTitleFont(132);
   frame_4a4d3a0__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4a4d3a0__4->GetYaxis()->SetLabelFont(132);
   frame_4a4d3a0__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4a4d3a0__4->GetYaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__4->GetYaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4a4d3a0__4->GetYaxis()->SetTitleFont(132);
   frame_4a4d3a0__4->GetZaxis()->SetLabelFont(132);
   frame_4a4d3a0__4->GetZaxis()->SetLabelSize(0.06);
   frame_4a4d3a0__4->GetZaxis()->SetTitleSize(0.072);
   frame_4a4d3a0__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4a4d3a0__4->GetZaxis()->SetTitleFont(132);
   frame_4a4d3a0__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 5
0
void fitLMC_c070116_LL1_fixed()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Wed Jul  6 01:24:19 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_49b0a70__1 = new TH1D("frame_49b0a70__1","",100,4100,6100);
   frame_49b0a70__1->SetBinContent(1,15.15556);
   frame_49b0a70__1->SetMinimum(-8.8);
   frame_49b0a70__1->SetMaximum(8.8);
   frame_49b0a70__1->SetEntries(1);
   frame_49b0a70__1->SetDirectory(0);
   frame_49b0a70__1->SetStats(0);
   frame_49b0a70__1->SetLineWidth(2);
   frame_49b0a70__1->SetMarkerStyle(20);
   frame_49b0a70__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_49b0a70__1->GetXaxis()->SetNdivisions(505);
   frame_49b0a70__1->GetXaxis()->SetLabelFont(132);
   frame_49b0a70__1->GetXaxis()->SetLabelOffset(0.01);
   frame_49b0a70__1->GetXaxis()->SetLabelSize(0.15);
   frame_49b0a70__1->GetXaxis()->SetTitleSize(0.2);
   frame_49b0a70__1->GetXaxis()->SetTitleOffset(1.1);
   frame_49b0a70__1->GetXaxis()->SetTitleFont(132);
   frame_49b0a70__1->GetYaxis()->SetTitle("Pull");
   frame_49b0a70__1->GetYaxis()->CenterTitle(true);
   frame_49b0a70__1->GetYaxis()->SetNdivisions(505);
   frame_49b0a70__1->GetYaxis()->SetLabelFont(132);
   frame_49b0a70__1->GetYaxis()->SetLabelOffset(0.01);
   frame_49b0a70__1->GetYaxis()->SetLabelSize(0.15);
   frame_49b0a70__1->GetYaxis()->SetTitleSize(0.15);
   frame_49b0a70__1->GetYaxis()->SetTitleOffset(0.45);
   frame_49b0a70__1->GetYaxis()->SetTitleFont(132);
   frame_49b0a70__1->GetZaxis()->SetLabelFont(132);
   frame_49b0a70__1->GetZaxis()->SetLabelSize(0.06);
   frame_49b0a70__1->GetZaxis()->SetTitleSize(0.072);
   frame_49b0a70__1->GetZaxis()->SetTitleOffset(1.2);
   frame_49b0a70__1->GetZaxis()->SetTitleFont(132);
   frame_49b0a70__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[87] = {
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030};
   Double_t pull_Hist_curvetot_fy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   -1.479619,
   -1.51688,
   -3.563535,
   13.21655,
   13.104,
   -2.777424,
   -1.828045,
   -1.630891,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_felx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(87,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,4138,6202);
   Graph_pull_Hist_curvetot3001->SetMinimum(-6.441544);
   Graph_pull_Hist_curvetot3001->SetMaximum(16.09456);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_49b0a70__2 = new TH1D("frame_49b0a70__2","",100,4100,6100);
   frame_49b0a70__2->SetBinContent(1,15.15556);
   frame_49b0a70__2->SetMinimum(-8.8);
   frame_49b0a70__2->SetMaximum(8.8);
   frame_49b0a70__2->SetEntries(1);
   frame_49b0a70__2->SetDirectory(0);
   frame_49b0a70__2->SetStats(0);
   frame_49b0a70__2->SetLineWidth(2);
   frame_49b0a70__2->SetMarkerStyle(20);
   frame_49b0a70__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_49b0a70__2->GetXaxis()->SetNdivisions(505);
   frame_49b0a70__2->GetXaxis()->SetLabelFont(132);
   frame_49b0a70__2->GetXaxis()->SetLabelOffset(0.01);
   frame_49b0a70__2->GetXaxis()->SetLabelSize(0.15);
   frame_49b0a70__2->GetXaxis()->SetTitleSize(0.2);
   frame_49b0a70__2->GetXaxis()->SetTitleOffset(1.1);
   frame_49b0a70__2->GetXaxis()->SetTitleFont(132);
   frame_49b0a70__2->GetYaxis()->SetTitle("Pull");
   frame_49b0a70__2->GetYaxis()->CenterTitle(true);
   frame_49b0a70__2->GetYaxis()->SetNdivisions(505);
   frame_49b0a70__2->GetYaxis()->SetLabelFont(132);
   frame_49b0a70__2->GetYaxis()->SetLabelOffset(0.01);
   frame_49b0a70__2->GetYaxis()->SetLabelSize(0.15);
   frame_49b0a70__2->GetYaxis()->SetTitleSize(0.15);
   frame_49b0a70__2->GetYaxis()->SetTitleOffset(0.45);
   frame_49b0a70__2->GetYaxis()->SetTitleFont(132);
   frame_49b0a70__2->GetZaxis()->SetLabelFont(132);
   frame_49b0a70__2->GetZaxis()->SetLabelSize(0.06);
   frame_49b0a70__2->GetZaxis()->SetTitleSize(0.072);
   frame_49b0a70__2->GetZaxis()->SetTitleOffset(1.2);
   frame_49b0a70__2->GetZaxis()->SetTitleFont(132);
   frame_49b0a70__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(3754.321,0,6223.457,4.122406);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4ae8890__3 = new TH1D("frame_4ae8890__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4ae8890__3->SetBinContent(1,3622.221);
   frame_4ae8890__3->SetMinimum(1);
   frame_4ae8890__3->SetMaximum(7500);
   frame_4ae8890__3->SetEntries(2);
   frame_4ae8890__3->SetDirectory(0);
   frame_4ae8890__3->SetStats(0);
   frame_4ae8890__3->SetLineWidth(2);
   frame_4ae8890__3->SetMarkerStyle(20);
   frame_4ae8890__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4ae8890__3->GetXaxis()->SetNdivisions(505);
   frame_4ae8890__3->GetXaxis()->SetLabelFont(132);
   frame_4ae8890__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4ae8890__3->GetXaxis()->SetLabelSize(0.06);
   frame_4ae8890__3->GetXaxis()->SetTitleSize(0.072);
   frame_4ae8890__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4ae8890__3->GetXaxis()->SetTitleFont(132);
   frame_4ae8890__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4ae8890__3->GetYaxis()->SetLabelFont(132);
   frame_4ae8890__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4ae8890__3->GetYaxis()->SetLabelSize(0.06);
   frame_4ae8890__3->GetYaxis()->SetTitleSize(0.072);
   frame_4ae8890__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4ae8890__3->GetYaxis()->SetTitleFont(132);
   frame_4ae8890__3->GetZaxis()->SetLabelFont(132);
   frame_4ae8890__3->GetZaxis()->SetLabelSize(0.06);
   frame_4ae8890__3->GetZaxis()->SetTitleSize(0.072);
   frame_4ae8890__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4ae8890__3->GetZaxis()->SetTitleFont(132);
   frame_4ae8890__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   5,
   30,
   1308,
   1283,
   36,
   7,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300);
   Graph_Hist3002->SetMinimum(1.478583);
   Graph_Hist3002->SetMaximum(1478.583);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5648.5,
   5652.85,
   5657.2,
   5665.9,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t curvetot_fy1[128] = {
   5.866957e-06,
   6.237309e-06,
   6.636442e-06,
   7.067024e-06,
   7.532012e-06,
   8.034688e-06,
   8.578697e-06,
   9.168097e-06,
   9.80741e-06,
   1.050168e-05,
   1.125657e-05,
   1.207838e-05,
   1.297421e-05,
   1.395203e-05,
   1.502083e-05,
   1.619071e-05,
   1.747312e-05,
   1.888102e-05,
   2.04291e-05,
   2.213408e-05,
   2.401502e-05,
   2.609366e-05,
   2.839493e-05,
   3.094741e-05,
   3.3784e-05,
   3.694266e-05,
   4.046727e-05,
   4.440878e-05,
   4.882641e-05,
   5.378932e-05,
   5.937845e-05,
   6.568888e-05,
   7.283266e-05,
   8.094235e-05,
   9.017537e-05,
   0.0001007193,
   0.0001127988,
   0.0001266839,
   0.0001427007,
   0.0001612447,
   0.0001827987,
   0.0002079542,
   0.0002374407,
   0.0002721627,
   0.0003132491,
   0.000362118,
   0.0004205632,
   0.0004908709,
   0.0005759783,
   0.0006796908,
   0.0008069837,
   0.0009644255,
   0.00116078,
   0.001407872,
   0.001721855,
   0.002125087,
   0.002648971,
   0.003338309,
   0.004258149,
   0.005504759,
   0.007223673,
   0.009640192,
   0.01311252,
   0.0182276,
   0.02598079,
   0.0381283,
   0.05791482,
   0.09167022,
   0.1525742,
   0.2703418,
   0.5189787,
   1.108041,
   2.742661,
   8.457535,
   16.77478,
   37.44632,
   59.32676,
   76.04852,
   98.85523,
   130.5273,
   175.4113,
   240.4947,
   337.3712,
   485.9433,
   719.5827,
   1089.077,
   1654.354,
   2420.76,
   3177.209,
   3449.734,
   3004.78,
   2206.85,
   1485.016,
   975.7787,
   647.7065,
   440.4788,
   308.1264,
   221.6172,
   163.5403,
   123.4982,
   95.19023,
   59.59094,
   39.50438,
   27.41171,
   14.6509,
   8.678992,
   3.738562,
   1.925852,
   1.114645,
   0.7001293,
   0.4672215,
   0.3266777,
   0.2370212,
   0.1772217,
   0.1358539,
   0.1063516,
   0.08476161,
   0.06860831,
   0.05628833,
   0.04673265,
   0.03921016,
   0.03320952,
   0.02836591,
   0.02441438,
   0.02115941,
   0.01845459,
   0.01618888,
   0.01618888};
   TGraph *graph = new TGraph(128,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",128,4126,6214);
   Graph_curvetot1->SetMinimum(5.280262e-06);
   Graph_curvetot1->SetMaximum(3794.708);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t sigL_fx2[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5648.5,
   5652.85,
   5657.2,
   5665.9,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t sigL_fy2[128] = {
   5.866957e-06,
   6.237309e-06,
   6.636442e-06,
   7.067024e-06,
   7.532012e-06,
   8.034688e-06,
   8.578697e-06,
   9.168097e-06,
   9.80741e-06,
   1.050168e-05,
   1.125657e-05,
   1.207838e-05,
   1.297421e-05,
   1.395203e-05,
   1.502083e-05,
   1.619071e-05,
   1.747312e-05,
   1.888102e-05,
   2.04291e-05,
   2.213408e-05,
   2.401502e-05,
   2.609366e-05,
   2.839493e-05,
   3.094741e-05,
   3.3784e-05,
   3.694266e-05,
   4.046727e-05,
   4.440878e-05,
   4.882641e-05,
   5.378932e-05,
   5.937845e-05,
   6.568888e-05,
   7.283266e-05,
   8.094235e-05,
   9.017537e-05,
   0.0001007193,
   0.0001127988,
   0.0001266839,
   0.0001427007,
   0.0001612447,
   0.0001827987,
   0.0002079542,
   0.0002374407,
   0.0002721627,
   0.0003132491,
   0.000362118,
   0.0004205632,
   0.0004908709,
   0.0005759783,
   0.0006796908,
   0.0008069837,
   0.0009644255,
   0.00116078,
   0.001407872,
   0.001721855,
   0.002125087,
   0.002648971,
   0.003338309,
   0.004258149,
   0.005504759,
   0.007223673,
   0.009640192,
   0.01311252,
   0.0182276,
   0.02598079,
   0.0381283,
   0.05791482,
   0.09167022,
   0.1525742,
   0.2703418,
   0.5189787,
   1.108041,
   2.742661,
   8.457535,
   16.77478,
   37.44632,
   59.32676,
   76.04852,
   98.85523,
   130.5273,
   175.4113,
   240.4947,
   337.3712,
   485.9433,
   719.5827,
   1089.077,
   1654.354,
   2420.76,
   3177.209,
   3449.734,
   3004.78,
   2206.85,
   1485.016,
   975.7787,
   647.7065,
   440.4788,
   308.1264,
   221.6172,
   163.5403,
   123.4982,
   95.19023,
   59.59094,
   39.50438,
   27.41171,
   14.6509,
   8.678992,
   3.738562,
   1.925852,
   1.114645,
   0.7001293,
   0.4672215,
   0.3266777,
   0.2370212,
   0.1772217,
   0.1358539,
   0.1063516,
   0.08476161,
   0.06860831,
   0.05628833,
   0.04673265,
   0.03921016,
   0.03320952,
   0.02836591,
   0.02441438,
   0.02115941,
   0.01845459,
   0.01618888,
   0.01618888};
   graph = new TGraph(128,sigL_fx2,sigL_fy2);
   graph->SetName("sigL");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigL2 = new TH1F("Graph_sigL2","Projection of totalPdf",128,4126,6214);
   Graph_sigL2->SetMinimum(5.280262e-06);
   Graph_sigL2->SetMaximum(3794.708);
   Graph_sigL2->SetDirectory(0);
   Graph_sigL2->SetStats(0);
   Graph_sigL2->SetLineWidth(2);
   Graph_sigL2->SetMarkerStyle(20);
   Graph_sigL2->GetXaxis()->SetNdivisions(505);
   Graph_sigL2->GetXaxis()->SetLabelFont(132);
   Graph_sigL2->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetXaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetXaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetXaxis()->SetTitleFont(132);
   Graph_sigL2->GetYaxis()->SetLabelFont(132);
   Graph_sigL2->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetYaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetYaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetYaxis()->SetTitleFont(132);
   Graph_sigL2->GetZaxis()->SetLabelFont(132);
   Graph_sigL2->GetZaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetZaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigL2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigL2);
   
   graph->Draw("l");
   
   Double_t bkg_fx3[102] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5587.6,
   5605,
   5622.4,
   5639.8,
   5657.2,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t bkg_fy3[102] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   graph = new TGraph(102,bkg_fx3,bkg_fy3);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(3);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg3 = new TH1F("Graph_bkg3","Projection of totalPdf",102,4126,6214);
   Graph_bkg3->SetMinimum(0.0011);
   Graph_bkg3->SetMaximum(1.1);
   Graph_bkg3->SetDirectory(0);
   Graph_bkg3->SetStats(0);
   Graph_bkg3->SetLineWidth(2);
   Graph_bkg3->SetMarkerStyle(20);
   Graph_bkg3->GetXaxis()->SetNdivisions(505);
   Graph_bkg3->GetXaxis()->SetLabelFont(132);
   Graph_bkg3->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg3->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg3->GetXaxis()->SetTitleFont(132);
   Graph_bkg3->GetYaxis()->SetLabelFont(132);
   Graph_bkg3->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg3->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg3->GetYaxis()->SetTitleFont(132);
   Graph_bkg3->GetZaxis()->SetLabelFont(132);
   Graph_bkg3->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg3->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg3);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigL","#Lambda signal (hypatia)","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(3);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4ae8890__4 = new TH1D("frame_4ae8890__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4ae8890__4->SetBinContent(1,3622.221);
   frame_4ae8890__4->SetMinimum(1);
   frame_4ae8890__4->SetMaximum(7500);
   frame_4ae8890__4->SetEntries(2);
   frame_4ae8890__4->SetDirectory(0);
   frame_4ae8890__4->SetStats(0);
   frame_4ae8890__4->SetLineWidth(2);
   frame_4ae8890__4->SetMarkerStyle(20);
   frame_4ae8890__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4ae8890__4->GetXaxis()->SetNdivisions(505);
   frame_4ae8890__4->GetXaxis()->SetLabelFont(132);
   frame_4ae8890__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4ae8890__4->GetXaxis()->SetLabelSize(0.06);
   frame_4ae8890__4->GetXaxis()->SetTitleSize(0.072);
   frame_4ae8890__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4ae8890__4->GetXaxis()->SetTitleFont(132);
   frame_4ae8890__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4ae8890__4->GetYaxis()->SetLabelFont(132);
   frame_4ae8890__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4ae8890__4->GetYaxis()->SetLabelSize(0.06);
   frame_4ae8890__4->GetYaxis()->SetTitleSize(0.072);
   frame_4ae8890__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4ae8890__4->GetYaxis()->SetTitleFont(132);
   frame_4ae8890__4->GetZaxis()->SetLabelFont(132);
   frame_4ae8890__4->GetZaxis()->SetLabelSize(0.06);
   frame_4ae8890__4->GetZaxis()->SetTitleSize(0.072);
   frame_4ae8890__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4ae8890__4->GetZaxis()->SetTitleFont(132);
   frame_4ae8890__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void fitLMC_c070116_LL1_floathypparamsfixmusigma_nobkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Wed Jul  6 21:29:11 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_3705430__1 = new TH1D("frame_3705430__1","",100,4100,6100);
   frame_3705430__1->SetBinContent(1,11.2676);
   frame_3705430__1->SetMinimum(-8.8);
   frame_3705430__1->SetMaximum(8.8);
   frame_3705430__1->SetEntries(1);
   frame_3705430__1->SetDirectory(0);
   frame_3705430__1->SetStats(0);
   frame_3705430__1->SetLineWidth(2);
   frame_3705430__1->SetMarkerStyle(20);
   frame_3705430__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_3705430__1->GetXaxis()->SetNdivisions(505);
   frame_3705430__1->GetXaxis()->SetLabelFont(132);
   frame_3705430__1->GetXaxis()->SetLabelOffset(0.01);
   frame_3705430__1->GetXaxis()->SetLabelSize(0.15);
   frame_3705430__1->GetXaxis()->SetTitleSize(0.2);
   frame_3705430__1->GetXaxis()->SetTitleOffset(1.1);
   frame_3705430__1->GetXaxis()->SetTitleFont(132);
   frame_3705430__1->GetYaxis()->SetTitle("Pull");
   frame_3705430__1->GetYaxis()->CenterTitle(true);
   frame_3705430__1->GetYaxis()->SetNdivisions(505);
   frame_3705430__1->GetYaxis()->SetLabelFont(132);
   frame_3705430__1->GetYaxis()->SetLabelOffset(0.01);
   frame_3705430__1->GetYaxis()->SetLabelSize(0.15);
   frame_3705430__1->GetYaxis()->SetTitleSize(0.15);
   frame_3705430__1->GetYaxis()->SetTitleOffset(0.45);
   frame_3705430__1->GetYaxis()->SetTitleFont(132);
   frame_3705430__1->GetZaxis()->SetLabelFont(132);
   frame_3705430__1->GetZaxis()->SetLabelSize(0.06);
   frame_3705430__1->GetZaxis()->SetTitleSize(0.072);
   frame_3705430__1->GetZaxis()->SetTitleOffset(1.2);
   frame_3705430__1->GetZaxis()->SetTitleFont(132);
   frame_3705430__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[87] = {
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030};
   Double_t pull_Hist_curvetot_fy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0.6090808,
   1.134866,
   -0.2785807,
   9.080708,
   9.670166,
   0.777574,
   0.8226909,
   0.8521652,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_felx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(87,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,4138,6202);
   Graph_pull_Hist_curvetot3001->SetMinimum(-2.473455);
   Graph_pull_Hist_curvetot3001->SetMaximum(11.86504);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_3705430__2 = new TH1D("frame_3705430__2","",100,4100,6100);
   frame_3705430__2->SetBinContent(1,11.2676);
   frame_3705430__2->SetMinimum(-8.8);
   frame_3705430__2->SetMaximum(8.8);
   frame_3705430__2->SetEntries(1);
   frame_3705430__2->SetDirectory(0);
   frame_3705430__2->SetStats(0);
   frame_3705430__2->SetLineWidth(2);
   frame_3705430__2->SetMarkerStyle(20);
   frame_3705430__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_3705430__2->GetXaxis()->SetNdivisions(505);
   frame_3705430__2->GetXaxis()->SetLabelFont(132);
   frame_3705430__2->GetXaxis()->SetLabelOffset(0.01);
   frame_3705430__2->GetXaxis()->SetLabelSize(0.15);
   frame_3705430__2->GetXaxis()->SetTitleSize(0.2);
   frame_3705430__2->GetXaxis()->SetTitleOffset(1.1);
   frame_3705430__2->GetXaxis()->SetTitleFont(132);
   frame_3705430__2->GetYaxis()->SetTitle("Pull");
   frame_3705430__2->GetYaxis()->CenterTitle(true);
   frame_3705430__2->GetYaxis()->SetNdivisions(505);
   frame_3705430__2->GetYaxis()->SetLabelFont(132);
   frame_3705430__2->GetYaxis()->SetLabelOffset(0.01);
   frame_3705430__2->GetYaxis()->SetLabelSize(0.15);
   frame_3705430__2->GetYaxis()->SetTitleSize(0.15);
   frame_3705430__2->GetYaxis()->SetTitleOffset(0.45);
   frame_3705430__2->GetYaxis()->SetTitleFont(132);
   frame_3705430__2->GetZaxis()->SetLabelFont(132);
   frame_3705430__2->GetZaxis()->SetLabelSize(0.06);
   frame_3705430__2->GetZaxis()->SetTitleSize(0.072);
   frame_3705430__2->GetZaxis()->SetTitleOffset(1.2);
   frame_3705430__2->GetZaxis()->SetTitleFont(132);
   frame_3705430__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(0,0,1,1);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_359de30__3 = new TH1D("frame_359de30__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_359de30__3->SetBinContent(1,3307.075);
   frame_359de30__3->SetMinimum(0);
   frame_359de30__3->SetMaximum(7500);
   frame_359de30__3->SetEntries(2);
   frame_359de30__3->SetDirectory(0);
   frame_359de30__3->SetStats(0);
   frame_359de30__3->SetLineWidth(2);
   frame_359de30__3->SetMarkerStyle(20);
   frame_359de30__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_359de30__3->GetXaxis()->SetNdivisions(505);
   frame_359de30__3->GetXaxis()->SetLabelFont(132);
   frame_359de30__3->GetXaxis()->SetLabelOffset(0.01);
   frame_359de30__3->GetXaxis()->SetLabelSize(0.06);
   frame_359de30__3->GetXaxis()->SetTitleSize(0.072);
   frame_359de30__3->GetXaxis()->SetTitleOffset(0.95);
   frame_359de30__3->GetXaxis()->SetTitleFont(132);
   frame_359de30__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_359de30__3->GetYaxis()->SetLabelFont(132);
   frame_359de30__3->GetYaxis()->SetLabelOffset(0.01);
   frame_359de30__3->GetYaxis()->SetLabelSize(0.06);
   frame_359de30__3->GetYaxis()->SetTitleSize(0.072);
   frame_359de30__3->GetYaxis()->SetTitleOffset(0.95);
   frame_359de30__3->GetYaxis()->SetTitleFont(132);
   frame_359de30__3->GetZaxis()->SetLabelFont(132);
   frame_359de30__3->GetZaxis()->SetLabelSize(0.06);
   frame_359de30__3->GetZaxis()->SetTitleSize(0.072);
   frame_359de30__3->GetZaxis()->SetTitleOffset(1.2);
   frame_359de30__3->GetZaxis()->SetTitleFont(132);
   frame_359de30__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   5,
   30,
   1308,
   1283,
   36,
   7,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300);
   Graph_Hist3002->SetMinimum(1.478583);
   Graph_Hist3002->SetMaximum(1478.583);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5646.325,
   5648.5,
   5652.85,
   5657.2,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t curvetot_fy1[128] = {
   5.097734e-11,
   5.706404e-11,
   6.397227e-11,
   7.182607e-11,
   8.077026e-11,
   9.097421e-11,
   1.026365e-10,
   1.159906e-10,
   1.313112e-10,
   1.489226e-10,
   1.692087e-10,
   1.926245e-10,
   2.197112e-10,
   2.511141e-10,
   2.876045e-10,
   3.301067e-10,
   3.797322e-10,
   4.378209e-10,
   5.059931e-10,
   5.862146e-10,
   6.808781e-10,
   7.92905e-10,
   9.25876e-10,
   1.084194e-09,
   1.273296e-09,
   1.499917e-09,
   1.772438e-09,
   2.101333e-09,
   2.49974e-09,
   2.984225e-09,
   3.575764e-09,
   4.30105e-09,
   5.194231e-09,
   6.299211e-09,
   7.672763e-09,
   9.388721e-09,
   1.154369e-08,
   1.426487e-08,
   1.772088e-08,
   2.213677e-08,
   2.781515e-08,
   3.516607e-08,
   4.474967e-08,
   5.733771e-08,
   7.400324e-08,
   9.625251e-08,
   1.262215e-07,
   1.66972e-07,
   2.229438e-07,
   3.006535e-07,
   4.097927e-07,
   5.649775e-07,
   7.885849e-07,
   1.115432e-06,
   1.600645e-06,
   2.333173e-06,
   3.459516e-06,
   5.226424e-06,
   8.059798e-06,
   1.271484e-05,
   2.057112e-05,
   3.423339e-05,
   5.880467e-05,
   0.0001047063,
   0.000194246,
   0.0003778152,
   0.0007765404,
   0.001703496,
   0.004040552,
   0.01054291,
   0.03098829,
   0.1061303,
   0.4455362,
   2.485815,
   6.801185,
   21.23333,
   39.88852,
   55.66596,
   78.72316,
   112.9447,
   164.5968,
   243.9531,
   367.2852,
   558.9441,
   851.7984,
   1279.391,
   1848.229,
   2484.678,
   2996.656,
   3149.596,
   2860.214,
   2281.036,
   1651.136,
   1125.016,
   743.8519,
   487.6576,
   321.3096,
   214.42,
   145.4929,
   100.5415,
   70.77508,
   50.72557,
   36.98257,
   20.60332,
   12.13127,
   2.197087,
   0.6127486,
   0.2221579,
   0.0958892,
   0.0468419,
   0.02509342,
   0.01443649,
   0.008790563,
   0.005605979,
   0.003714951,
   0.002542779,
   0.001789259,
   0.001289489,
   0.0009489036,
   0.0007112191,
   0.000541828,
   0.0004188321,
   0.000328018,
   0.0002599479,
   0.0002082251,
   0.0001684331,
   0.000137471,
   0.000137471};
   TGraph *graph = new TGraph(128,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",128,4126,6214);
   Graph_curvetot1->SetMinimum(4.58796e-11);
   Graph_curvetot1->SetMaximum(3464.555);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t sigL_fx2[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5646.325,
   5648.5,
   5652.85,
   5657.2,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t sigL_fy2[128] = {
   5.097734e-11,
   5.706404e-11,
   6.397227e-11,
   7.182607e-11,
   8.077026e-11,
   9.097421e-11,
   1.026365e-10,
   1.159906e-10,
   1.313112e-10,
   1.489226e-10,
   1.692087e-10,
   1.926245e-10,
   2.197112e-10,
   2.511141e-10,
   2.876045e-10,
   3.301067e-10,
   3.797322e-10,
   4.378209e-10,
   5.059931e-10,
   5.862146e-10,
   6.808781e-10,
   7.92905e-10,
   9.25876e-10,
   1.084194e-09,
   1.273296e-09,
   1.499917e-09,
   1.772438e-09,
   2.101333e-09,
   2.49974e-09,
   2.984225e-09,
   3.575764e-09,
   4.30105e-09,
   5.194231e-09,
   6.299211e-09,
   7.672763e-09,
   9.388721e-09,
   1.154369e-08,
   1.426487e-08,
   1.772088e-08,
   2.213677e-08,
   2.781515e-08,
   3.516607e-08,
   4.474967e-08,
   5.733771e-08,
   7.400324e-08,
   9.625251e-08,
   1.262215e-07,
   1.66972e-07,
   2.229438e-07,
   3.006535e-07,
   4.097927e-07,
   5.649775e-07,
   7.885849e-07,
   1.115432e-06,
   1.600645e-06,
   2.333173e-06,
   3.459516e-06,
   5.226424e-06,
   8.059798e-06,
   1.271484e-05,
   2.057112e-05,
   3.423339e-05,
   5.880467e-05,
   0.0001047063,
   0.000194246,
   0.0003778152,
   0.0007765404,
   0.001703496,
   0.004040552,
   0.01054291,
   0.03098829,
   0.1061303,
   0.4455362,
   2.485815,
   6.801185,
   21.23333,
   39.88852,
   55.66596,
   78.72316,
   112.9447,
   164.5968,
   243.9531,
   367.2852,
   558.9441,
   851.7984,
   1279.391,
   1848.229,
   2484.678,
   2996.656,
   3149.596,
   2860.214,
   2281.036,
   1651.136,
   1125.016,
   743.8519,
   487.6576,
   321.3096,
   214.42,
   145.4929,
   100.5415,
   70.77508,
   50.72557,
   36.98257,
   20.60332,
   12.13127,
   2.197087,
   0.6127486,
   0.2221579,
   0.0958892,
   0.0468419,
   0.02509342,
   0.01443649,
   0.008790563,
   0.005605979,
   0.003714951,
   0.002542779,
   0.001789259,
   0.001289489,
   0.0009489036,
   0.0007112191,
   0.000541828,
   0.0004188321,
   0.000328018,
   0.0002599479,
   0.0002082251,
   0.0001684331,
   0.000137471,
   0.000137471};
   graph = new TGraph(128,sigL_fx2,sigL_fy2);
   graph->SetName("sigL");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigL2 = new TH1F("Graph_sigL2","Projection of totalPdf",128,4126,6214);
   Graph_sigL2->SetMinimum(4.58796e-11);
   Graph_sigL2->SetMaximum(3464.555);
   Graph_sigL2->SetDirectory(0);
   Graph_sigL2->SetStats(0);
   Graph_sigL2->SetLineWidth(2);
   Graph_sigL2->SetMarkerStyle(20);
   Graph_sigL2->GetXaxis()->SetNdivisions(505);
   Graph_sigL2->GetXaxis()->SetLabelFont(132);
   Graph_sigL2->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetXaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetXaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetXaxis()->SetTitleFont(132);
   Graph_sigL2->GetYaxis()->SetLabelFont(132);
   Graph_sigL2->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetYaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetYaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetYaxis()->SetTitleFont(132);
   Graph_sigL2->GetZaxis()->SetLabelFont(132);
   Graph_sigL2->GetZaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetZaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigL2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigL2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigL","#Lambda signal (hypatia)","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_359de30__4 = new TH1D("frame_359de30__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_359de30__4->SetBinContent(1,3307.075);
   frame_359de30__4->SetMinimum(0);
   frame_359de30__4->SetMaximum(7500);
   frame_359de30__4->SetEntries(2);
   frame_359de30__4->SetDirectory(0);
   frame_359de30__4->SetStats(0);
   frame_359de30__4->SetLineWidth(2);
   frame_359de30__4->SetMarkerStyle(20);
   frame_359de30__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_359de30__4->GetXaxis()->SetNdivisions(505);
   frame_359de30__4->GetXaxis()->SetLabelFont(132);
   frame_359de30__4->GetXaxis()->SetLabelOffset(0.01);
   frame_359de30__4->GetXaxis()->SetLabelSize(0.06);
   frame_359de30__4->GetXaxis()->SetTitleSize(0.072);
   frame_359de30__4->GetXaxis()->SetTitleOffset(0.95);
   frame_359de30__4->GetXaxis()->SetTitleFont(132);
   frame_359de30__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_359de30__4->GetYaxis()->SetLabelFont(132);
   frame_359de30__4->GetYaxis()->SetLabelOffset(0.01);
   frame_359de30__4->GetYaxis()->SetLabelSize(0.06);
   frame_359de30__4->GetYaxis()->SetTitleSize(0.072);
   frame_359de30__4->GetYaxis()->SetTitleOffset(0.95);
   frame_359de30__4->GetYaxis()->SetTitleFont(132);
   frame_359de30__4->GetZaxis()->SetLabelFont(132);
   frame_359de30__4->GetZaxis()->SetLabelSize(0.06);
   frame_359de30__4->GetZaxis()->SetTitleSize(0.072);
   frame_359de30__4->GetZaxis()->SetTitleOffset(1.2);
   frame_359de30__4->GetZaxis()->SetTitleFont(132);
   frame_359de30__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 7
0
void fit1()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Wed Mar  9 00:43:22 2016) by ROOT version6.06/00
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_a63bf70__1 = new TH1D("frame_a63bf70__1","",100,4100,6100);
   frame_a63bf70__1->SetBinContent(1,269.9669);
   frame_a63bf70__1->SetMinimum(-8.8);
   frame_a63bf70__1->SetMaximum(8.8);
   frame_a63bf70__1->SetEntries(1);
   frame_a63bf70__1->SetDirectory(0);
   frame_a63bf70__1->SetStats(0);
   frame_a63bf70__1->SetLineWidth(2);
   frame_a63bf70__1->SetMarkerStyle(20);
   frame_a63bf70__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_a63bf70__1->GetXaxis()->SetNdivisions(505);
   frame_a63bf70__1->GetXaxis()->SetLabelFont(132);
   frame_a63bf70__1->GetXaxis()->SetLabelOffset(0.01);
   frame_a63bf70__1->GetXaxis()->SetLabelSize(0.15);
   frame_a63bf70__1->GetXaxis()->SetTitleSize(0.2);
   frame_a63bf70__1->GetXaxis()->SetTitleOffset(1.1);
   frame_a63bf70__1->GetXaxis()->SetTitleFont(132);
   frame_a63bf70__1->GetYaxis()->SetTitle("Pull");
   frame_a63bf70__1->GetYaxis()->CenterTitle(true);
   frame_a63bf70__1->GetYaxis()->SetNdivisions(505);
   frame_a63bf70__1->GetYaxis()->SetLabelFont(132);
   frame_a63bf70__1->GetYaxis()->SetLabelOffset(0.01);
   frame_a63bf70__1->GetYaxis()->SetLabelSize(0.15);
   frame_a63bf70__1->GetYaxis()->SetTitleSize(0.15);
   frame_a63bf70__1->GetYaxis()->SetTitleOffset(0.45);
   frame_a63bf70__1->GetYaxis()->SetTitleFont(132);
   frame_a63bf70__1->GetZaxis()->SetLabelFont(132);
   frame_a63bf70__1->GetZaxis()->SetLabelSize(0.06);
   frame_a63bf70__1->GetZaxis()->SetTitleSize(0.072);
   frame_a63bf70__1->GetZaxis()->SetTitleOffset(1.2);
   frame_a63bf70__1->GetZaxis()->SetTitleFont(132);
   frame_a63bf70__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[83] = {
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950};
   Double_t pull_Hist_curvetot_fy3001[83] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   256.1113,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_felx3001[83] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[83] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehx3001[83] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[83] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(83,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__sqrt(pow(J_psi_1S_TRUEP_E+Lambda0_TRUEP_E,2)-pow(J_psi_1S_TRUEP_X+Lambda0_TRUEP_X,2)-pow(J_psi_1S_TRUEP_Y+Lambda0_TRUEP_Y,2)-pow(J_psi_1S_TRUEP_Z+Lambda0_TRUEP_Z,2)) and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__sqrt(pow(J_psi_1S_TRUEP_E+Lambda0_TRUEP_E,2)-pow(J_psi_1S_TRUEP_X+Lambda0_TRUEP_X,2)-pow(J_psi_1S_TRUEP_Y+Lambda0_TRUEP_Y,2)-pow(J_psi_1S_TRUEP_Z+Lambda0_TRUEP_Z,2)) and Projection of totalPdf",100,4146,6114);
   Graph_pull_Hist_curvetot3001->SetMinimum(0);
   Graph_pull_Hist_curvetot3001->SetMaximum(282.8224);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_a63bf70__2 = new TH1D("frame_a63bf70__2","",100,4100,6100);
   frame_a63bf70__2->SetBinContent(1,269.9669);
   frame_a63bf70__2->SetMinimum(-8.8);
   frame_a63bf70__2->SetMaximum(8.8);
   frame_a63bf70__2->SetEntries(1);
   frame_a63bf70__2->SetDirectory(0);
   frame_a63bf70__2->SetStats(0);
   frame_a63bf70__2->SetLineWidth(2);
   frame_a63bf70__2->SetMarkerStyle(20);
   frame_a63bf70__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_a63bf70__2->GetXaxis()->SetNdivisions(505);
   frame_a63bf70__2->GetXaxis()->SetLabelFont(132);
   frame_a63bf70__2->GetXaxis()->SetLabelOffset(0.01);
   frame_a63bf70__2->GetXaxis()->SetLabelSize(0.15);
   frame_a63bf70__2->GetXaxis()->SetTitleSize(0.2);
   frame_a63bf70__2->GetXaxis()->SetTitleOffset(1.1);
   frame_a63bf70__2->GetXaxis()->SetTitleFont(132);
   frame_a63bf70__2->GetYaxis()->SetTitle("Pull");
   frame_a63bf70__2->GetYaxis()->CenterTitle(true);
   frame_a63bf70__2->GetYaxis()->SetNdivisions(505);
   frame_a63bf70__2->GetYaxis()->SetLabelFont(132);
   frame_a63bf70__2->GetYaxis()->SetLabelOffset(0.01);
   frame_a63bf70__2->GetYaxis()->SetLabelSize(0.15);
   frame_a63bf70__2->GetYaxis()->SetTitleSize(0.15);
   frame_a63bf70__2->GetYaxis()->SetTitleOffset(0.45);
   frame_a63bf70__2->GetYaxis()->SetTitleFont(132);
   frame_a63bf70__2->GetZaxis()->SetLabelFont(132);
   frame_a63bf70__2->GetZaxis()->SetLabelSize(0.06);
   frame_a63bf70__2->GetZaxis()->SetTitleSize(0.072);
   frame_a63bf70__2->GetZaxis()->SetTitleOffset(1.2);
   frame_a63bf70__2->GetZaxis()->SetTitleFont(132);
   frame_a63bf70__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(3754.321,0,6223.457,3.935074);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4618880__3 = new TH1D("frame_4618880__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4618880__3->SetBinContent(1,69141.57);
   frame_4618880__3->SetMinimum(1);
   frame_4618880__3->SetMaximum(5000);
   frame_4618880__3->SetEntries(1);
   frame_4618880__3->SetDirectory(0);
   frame_4618880__3->SetStats(0);
   frame_4618880__3->SetLineWidth(2);
   frame_4618880__3->SetMarkerStyle(20);
   frame_4618880__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4618880__3->GetXaxis()->SetNdivisions(505);
   frame_4618880__3->GetXaxis()->SetLabelFont(132);
   frame_4618880__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4618880__3->GetXaxis()->SetLabelSize(0.06);
   frame_4618880__3->GetXaxis()->SetTitleSize(0.072);
   frame_4618880__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4618880__3->GetXaxis()->SetTitleFont(132);
   frame_4618880__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4618880__3->GetYaxis()->SetLabelFont(132);
   frame_4618880__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4618880__3->GetYaxis()->SetLabelSize(0.06);
   frame_4618880__3->GetYaxis()->SetTitleSize(0.072);
   frame_4618880__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4618880__3->GetYaxis()->SetTitleFont(132);
   frame_4618880__3->GetZaxis()->SetLabelFont(132);
   frame_4618880__3->GetZaxis()->SetLabelSize(0.06);
   frame_4618880__3->GetZaxis()->SetTitleSize(0.072);
   frame_4618880__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4618880__3->GetZaxis()->SetTitleFont(132);
   frame_4618880__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   65593,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   256.1113,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   256.1113,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__sqrt(pow(J_psi_1S_TRUEP_E+Lambda0_TRUEP_E,2)-pow(J_psi_1S_TRUEP_X+Lambda0_TRUEP_X,2)-pow(J_psi_1S_TRUEP_Y+Lambda0_TRUEP_Y,2)-pow(J_psi_1S_TRUEP_Z+Lambda0_TRUEP_Z,2))");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__sqrt(pow(J_psi_1S_TRUEP_E+Lambda0_TRUEP_E,2)-pow(J_psi_1S_TRUEP_X+Lambda0_TRUEP_X,2)-pow(J_psi_1S_TRUEP_Y+Lambda0_TRUEP_Y,2)-pow(J_psi_1S_TRUEP_Z+Lambda0_TRUEP_Z,2))",100,3900,6300);
   Graph_Hist3002->SetMinimum(72.43402);
   Graph_Hist3002->SetMaximum(72434.02);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   4300,
   4316.5,
   4333,
   4349.5,
   4366,
   4382.5,
   4399,
   4415.5,
   4432,
   4448.5,
   4465,
   4481.5,
   4498,
   4514.5,
   4531,
   4547.5,
   4564,
   4580.5,
   4597,
   4613.5,
   4630,
   4646.5,
   4663,
   4679.5,
   4696,
   4712.5,
   4729,
   4745.5,
   4762,
   4778.5,
   4795,
   4811.5,
   4828,
   4844.5,
   4861,
   4877.5,
   4894,
   4910.5,
   4927,
   4943.5,
   4960,
   4976.5,
   4993,
   5009.5,
   5026,
   5042.5,
   5059,
   5075.5,
   5092,
   5108.5,
   5125,
   5141.5,
   5158,
   5174.5,
   5191,
   5207.5,
   5224,
   5240.5,
   5257,
   5273.5,
   5290,
   5306.5,
   5323,
   5339.5,
   5356,
   5372.5,
   5389,
   5405.5,
   5422,
   5438.5,
   5455,
   5471.5,
   5488,
   5504.5,
   5521,
   5537.5,
   5554,
   5570.5,
   5587,
   5603.5,
   5620,
   5636.5,
   5653,
   5669.5,
   5686,
   5702.5,
   5719,
   5735.5,
   5752,
   5768.5,
   5785,
   5801.5,
   5818,
   5834.5,
   5851,
   5867.5,
   5884,
   5900.5,
   5917,
   5933.5,
   5950,
   5950};
   Double_t curvetot_fy1[102] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,4135,6115);
   Graph_curvetot1->SetMinimum(0.0011);
   Graph_curvetot1->SetMaximum(1.1);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t CBLst1405_fx2[102] = {
   4300,
   4316.5,
   4333,
   4349.5,
   4366,
   4382.5,
   4399,
   4415.5,
   4432,
   4448.5,
   4465,
   4481.5,
   4498,
   4514.5,
   4531,
   4547.5,
   4564,
   4580.5,
   4597,
   4613.5,
   4630,
   4646.5,
   4663,
   4679.5,
   4696,
   4712.5,
   4729,
   4745.5,
   4762,
   4778.5,
   4795,
   4811.5,
   4828,
   4844.5,
   4861,
   4877.5,
   4894,
   4910.5,
   4927,
   4943.5,
   4960,
   4976.5,
   4993,
   5009.5,
   5026,
   5042.5,
   5059,
   5075.5,
   5092,
   5108.5,
   5125,
   5141.5,
   5158,
   5174.5,
   5191,
   5207.5,
   5224,
   5240.5,
   5257,
   5273.5,
   5290,
   5306.5,
   5323,
   5339.5,
   5356,
   5372.5,
   5389,
   5405.5,
   5422,
   5438.5,
   5455,
   5471.5,
   5488,
   5504.5,
   5521,
   5537.5,
   5554,
   5570.5,
   5587,
   5603.5,
   5620,
   5636.5,
   5653,
   5669.5,
   5686,
   5702.5,
   5719,
   5735.5,
   5752,
   5768.5,
   5785,
   5801.5,
   5818,
   5834.5,
   5851,
   5867.5,
   5884,
   5900.5,
   5917,
   5933.5,
   5950,
   5950};
   Double_t CBLst1405_fy2[102] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   graph = new TGraph(102,CBLst1405_fx2,CBLst1405_fy2);
   graph->SetName("CBLst1405");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_CBLst14052 = new TH1F("Graph_CBLst14052","Projection of totalPdf",102,4135,6115);
   Graph_CBLst14052->SetMinimum(0.0011);
   Graph_CBLst14052->SetMaximum(1.1);
   Graph_CBLst14052->SetDirectory(0);
   Graph_CBLst14052->SetStats(0);
   Graph_CBLst14052->SetLineWidth(2);
   Graph_CBLst14052->SetMarkerStyle(20);
   Graph_CBLst14052->GetXaxis()->SetNdivisions(505);
   Graph_CBLst14052->GetXaxis()->SetLabelFont(132);
   Graph_CBLst14052->GetXaxis()->SetLabelOffset(0.01);
   Graph_CBLst14052->GetXaxis()->SetLabelSize(0.06);
   Graph_CBLst14052->GetXaxis()->SetTitleSize(0.072);
   Graph_CBLst14052->GetXaxis()->SetTitleOffset(0.95);
   Graph_CBLst14052->GetXaxis()->SetTitleFont(132);
   Graph_CBLst14052->GetYaxis()->SetLabelFont(132);
   Graph_CBLst14052->GetYaxis()->SetLabelOffset(0.01);
   Graph_CBLst14052->GetYaxis()->SetLabelSize(0.06);
   Graph_CBLst14052->GetYaxis()->SetTitleSize(0.072);
   Graph_CBLst14052->GetYaxis()->SetTitleOffset(0.95);
   Graph_CBLst14052->GetYaxis()->SetTitleFont(132);
   Graph_CBLst14052->GetZaxis()->SetLabelFont(132);
   Graph_CBLst14052->GetZaxis()->SetLabelSize(0.06);
   Graph_CBLst14052->GetZaxis()->SetTitleSize(0.072);
   Graph_CBLst14052->GetZaxis()->SetTitleOffset(1.2);
   Graph_CBLst14052->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_CBLst14052);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("CBLst1405","#Lambda*(1405), CB","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4618880__4 = new TH1D("frame_4618880__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4618880__4->SetBinContent(1,69141.57);
   frame_4618880__4->SetMinimum(1);
   frame_4618880__4->SetMaximum(5000);
   frame_4618880__4->SetEntries(1);
   frame_4618880__4->SetDirectory(0);
   frame_4618880__4->SetStats(0);
   frame_4618880__4->SetLineWidth(2);
   frame_4618880__4->SetMarkerStyle(20);
   frame_4618880__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4618880__4->GetXaxis()->SetNdivisions(505);
   frame_4618880__4->GetXaxis()->SetLabelFont(132);
   frame_4618880__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4618880__4->GetXaxis()->SetLabelSize(0.06);
   frame_4618880__4->GetXaxis()->SetTitleSize(0.072);
   frame_4618880__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4618880__4->GetXaxis()->SetTitleFont(132);
   frame_4618880__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4618880__4->GetYaxis()->SetLabelFont(132);
   frame_4618880__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4618880__4->GetYaxis()->SetLabelSize(0.06);
   frame_4618880__4->GetYaxis()->SetTitleSize(0.072);
   frame_4618880__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4618880__4->GetYaxis()->SetTitleFont(132);
   frame_4618880__4->GetZaxis()->SetLabelFont(132);
   frame_4618880__4->GetZaxis()->SetLabelSize(0.06);
   frame_4618880__4->GetZaxis()->SetTitleSize(0.072);
   frame_4618880__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4618880__4->GetZaxis()->SetTitleFont(132);
   frame_4618880__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
void rsLimit7TeV(){

  setTDRStyle();

//=========Macro generated from canvas: cLimit/Limit
//=========  (Mon Feb 22 22:44:48 2010) by ROOT version5.18/00a
//   TCanvas *cLimit = new TCanvas("cLimit", "Limit",450,40,800,550);
//  TCanvas *cLimit = new TCanvas("cLimit", "Limit",100,122,600,600);
  cLimit = new TCanvas("cLimit","cLimit",800,600);

   gStyle->SetOptStat(0);
   //   cLimit->Range(595.5973,-0.03483694,1345.283,0.2539571);
   cLimit->SetFillColor(0);
   cLimit->SetBorderMode(0);
   cLimit->SetBorderSize(2);
   cLimit->SetLeftMargin(0.139262);
   cLimit->SetRightMargin(0.0604027);
   cLimit->SetTopMargin(0.0804196);
   cLimit->SetBottomMargin(0.120629);
   cLimit->SetFrameBorderMode(0);
   cLimit->SetFrameBorderMode(0);
   
   TGraph *graph = new TGraph(11);
   graph->SetName("Graph");
   graph->SetTitle("");
   graph->SetFillColor(1);


   Int_t ci;   // for color index setting
   ci = TColor::GetColor("#ff0000");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);

   ci = TColor::GetColor("#ff0000");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(1.0);
   graph->SetPoint(0,  863,0.01);
   graph->SetPoint(1, 1132,0.02);
   graph->SetPoint(2, 1274,0.03);
   graph->SetPoint(3, 1395,0.04);
   graph->SetPoint(4, 1503,0.05);
   graph->SetPoint(5, 1597,0.06);
   graph->SetPoint(6, 1676,0.07);
   graph->SetPoint(7, 1742,0.08);
   graph->SetPoint(8, 1801,0.09);
   graph->SetPoint(9, 1844,0.1);
   graph->SetPoint(10,1881,0.11);
   
   cout << " Don't forget to change this..." << endl;
   TH1 *Graph6 = new TH1F("Graph6","",100,863,1881);
   Graph6->SetMinimum(0);
   Graph6->SetMaximum(0.12);
   Graph6->SetDirectory(0);
   Graph6->SetStats(0);
   Graph6->GetXaxis()->SetTitle("M_{1} [GeV]");
   Graph6->GetYaxis()->SetTitle("Coupling k/#bar{M}_{Pl}");
   Graph6->GetXaxis()->SetLabelFont(42);
   Graph6->GetYaxis()->SetLabelFont(42);
   Graph6->GetYaxis()->SetTitleOffset(1.8);
   graph->SetHistogram(Graph6);
   
   graph->GetYaxis()->SetTitleOffset(1.19);
   graph->Draw("al");


   TGraph* graph2 = new TGraph(11);
   graph2->SetMarkerColor(ci);
   graph2->SetMarkerStyle(20);
   graph2->SetMarkerSize(0.0);
   graph2->SetPoint(0,  845,0.01);
   graph2->SetPoint(1, 1133,0.02);
   graph2->SetPoint(2, 1275,0.03);
   graph2->SetPoint(3, 1396,0.04);
   graph2->SetPoint(4, 1504,0.05);
   graph2->SetPoint(5, 1598,0.06);
   graph2->SetPoint(6, 1677,0.07);
   graph2->SetPoint(7, 1743,0.08);
   graph2->SetPoint(8, 1801,0.09);
   graph2->SetPoint(9, 1844,0.1);
   graph2->SetPoint(10,1881,0.11);
   graph2->SetLineStyle(kDashed);
   graph2->SetLineColor(ci);
   graph2->SetLineWidth(3);
   graph2->GetXaxis()->SetLabelFont(42);
   graph2->GetYaxis()->SetLabelFont(42);
   graph2->Draw("plsame");


//    graph = new TGraph(3);
//    graph->SetName("Graph");
//    graph->SetTitle("");
//    graph->SetFillColor(1);

//    ci = TColor::GetColor("#0000ff");
//    graph->SetLineColor(ci);
//    graph->SetLineWidth(3);

//    ci = TColor::GetColor("#0000ff");
//    graph->SetMarkerColor(ci);
//    graph->SetMarkerStyle(22);
//    graph->SetMarkerSize(1.4);
//    graph->SetPoint(0,750,0.03355478);
//    graph->SetPoint(1,1000,0.07617687);
//    graph->SetPoint(2,1250,0.1542326);
   
//    TH1 *Graph7 = new TH1F("Graph7","",100,700,1300);
//    Graph7->SetMinimum(0.021487);
//    Graph7->SetMaximum(0.1663004);
//    Graph7->SetDirectory(0);
//    Graph7->SetStats(0);
//    Graph7->GetXaxis()->SetTitle("Graviton Mass (GeV)");
//    Graph7->GetYaxis()->SetTitle("Coupling k/#bar{M}_{Pl}");
//    graph->SetHistogram(Graph7);
   
//    graph->Draw("pc");
   
//    graph = new TGraph(3);
//    graph->SetName("Graph");
//    graph->SetTitle("");
//    graph->SetFillColor(1);

//    ci = TColor::GetColor("#00ff00");
//    graph->SetLineColor(ci);
//    graph->SetLineWidth(3);

//    ci = TColor::GetColor("#00ff00");
//    graph->SetMarkerColor(ci);
//    graph->SetMarkerStyle(21);
//    graph->SetMarkerSize(1.3);
//    graph->SetPoint(0,750,0.02431275);
//    graph->SetPoint(1,1000,0.05519538);
//    graph->SetPoint(2,1250,0.1117521);
   
//    TH1 *Graph8 = new TH1F("Graph8","",100,700,1300);
//    Graph8->SetMinimum(0.01556881);
//    Graph8->SetMaximum(0.1204961);
//    Graph8->SetDirectory(0);
//    Graph8->SetStats(0);
//    Graph8->GetXaxis()->SetTitle("Graviton Mass (GeV/c^{2})");
//    Graph8->GetYaxis()->SetTitle("Coupling k/#bar{M}_{Pl}");
//    graph->SetHistogram(Graph8);
   
//    graph->Draw("pc");
   
//    TF1 *LambdaPi = new TF1("LambdaPi","pol1",500,2500);
//    LambdaPi->SetFillColor(15);
//    LambdaPi->SetFillStyle(3004);
//    LambdaPi->SetLineColor(15);
//    LambdaPi->SetLineWidth(1);
//    LambdaPi->SetParameter(0,0);
//    LambdaPi->SetParError(0,0);
//    LambdaPi->SetParLimits(0,0,0);
//    LambdaPi->SetParameter(1,2.61097e-05);
//    LambdaPi->SetParError(1,0);
//    LambdaPi->SetParLimits(1,0,0);
//    LambdaPi->Draw("same");
// 
    TF1 *LambdaPi = new TF1("LambdaPi","pol1",250,2500);
    LambdaPi->SetFillColor(15);
    LambdaPi->SetFillStyle(3004);
    LambdaPi->SetLineColor(15);
    LambdaPi->SetLineWidth(1);
    LambdaPi->SetParameter(0,0);
    LambdaPi->SetParError(0,0);
    LambdaPi->SetParLimits(0,0,0);
    LambdaPi->SetParameter(1,2.61097e-05);
    LambdaPi->SetParError(1,0);
    LambdaPi->SetParLimits(1,0,0);
    LambdaPi->GetXaxis()->SetLabelFont(42);
    LambdaPi->GetYaxis()->SetLabelFont(42);
    LambdaPi->Draw("same");
   
    graph = new TGraph(27);
    graph->SetName("Graph");
    graph->SetTitle("Graph");
    graph->SetFillColor(1);
    graph->SetFillStyle(3004);    
    graph->SetLineStyle(5);
    graph->SetLineWidth(3);
    graph->SetPoint(0,180,0.1071);
    graph->SetPoint(1,183,0.1062);
    graph->SetPoint(2,190,0.1043);
    graph->SetPoint(3,200,0.1016);
    graph->SetPoint(4,210,0.0989);
    graph->SetPoint(5,220,0.0963);
    graph->SetPoint(6,230,0.0938);
    graph->SetPoint(7,240,0.0913);
    graph->SetPoint(8,250,0.0889);
    graph->SetPoint(9,260,0.0866);
    graph->SetPoint(10,270,0.0843);
    graph->SetPoint(11,280,0.0821);
    graph->SetPoint(12,290,0.0799);
    graph->SetPoint(13,300,0.0778);
    graph->SetPoint(14,400,0.0603);
    graph->SetPoint(15,500,0.0481);
    graph->SetPoint(16,600,0.0397);
    graph->SetPoint(17,700,0.0337);
    graph->SetPoint(18,800,0.0292);
    graph->SetPoint(19,900,0.0258);
    graph->SetPoint(20,1000,0.0231);
    graph->SetPoint(21,1100,0.0209);
    graph->SetPoint(22,1200,0.0191);
    graph->SetPoint(23,1300,0.0176);
    graph->SetPoint(24,1400,0.0163);
    graph->SetPoint(25,1500,0.0152);
    graph->SetPoint(26,2200,0.01);
    graph->GetXaxis()->SetLabelFont(42);
    graph->GetYaxis()->SetLabelFont(42);
    graph->SetFillColor(kBlack);
    graph->SetFillStyle(3004);
    graph->SetLineWidth(1);
    graph->SetFillStyle(3002);
    graph->SetFillColor(kBlack);
    graph->SetLineWidth(-10000);

    graph->Draw("c");
    //    graph->Draw("same");

//    TPaveText *pt = new TPaveText(0.194631,0.748252,0.436242,0.816434,"blNDC");
//    pt->SetName("95% CL Limit");
//    pt->SetFillColor(0);
//    pt->SetBorderSize(1);
//    pt->SetLineColor(0);
//    pt->SetTextSize(0.04);
//    TText *text = pt->AddText("95% CL Limit");
//    pt->Draw();
  
   TLegend *leg = new TLegend(0.2072864,0.4667832,0.4007538,0.7517483,NULL,"brNDC");
   //    TLegend *leg = new TLegend(0.2072864,0.5332168,0.4007538,0.7517483,NULL,"brNDC"); 
    //   TLegend *leg = new TLegend(0.2110553,0.4248252,0.4120603,0.6433566,NULL,"brNDC");
   //   TLegend *leg = new TLegend(0.2181208,0.5297203,0.4194631,0.7482517,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.05);
   leg->SetLineColor(0);
   leg->SetLineStyle(0);
   leg->SetLineWidth(0);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   //   TLegendEntry *entry=leg->AddEntry("graph","50/pb","pl");

//    ci = TColor::GetColor("#ff0000");
//    entry->SetLineColor(ci);
//    entry->SetLineStyle(1);
//    entry->SetLineWidth(3);

    entry=leg->AddEntry("graph","Electroweak Limits","lf");
    entry->SetLineColor(1);
    entry->SetLineStyle(5);
    entry->SetLineWidth(3);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);

    ci = TColor::GetColor("#ff0000");
    entry->SetMarkerColor(ci);
    entry->SetMarkerStyle(20);
    entry->SetMarkerSize(1.3);
    entry=leg->AddEntry("Graph","95% CL Limit","l");


    leg->AddEntry(graph2,"Expected Limit","l");
    ci = TColor::GetColor("#00ff00");
    entry->SetMarkerColor(ci);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1.3);
    //    entry=leg->AddEntry("LambdaPi","#Lambda_{#pi}> 10TeV","lf");
    entry=leg->AddEntry("LambdaPi","M_{D} > 10TeV","lf");

//     entry->SetFillColor(15);
//     entry->SetFillStyle(3004);
//     entry->SetLineColor(15);
//     entry->SetLineStyle(1);
//     entry->SetLineWidth(1);
//     entry->SetMarkerColor(1);
//     entry->SetMarkerStyle(1);
//     entry->SetMarkerSize(1);

    leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2236181,0.7884615,0.4736181,0.8583916,"blNDC");
   //   TPaveText *pt = new TPaveText(0.1959799,0.7954545,0.4459799,0.8653846,"blNDC");
   //   TPaveText *pt = new TPaveText(0.2130872,0.8339161,0.4630872,0.9038462,"blNDC");
   pt->SetName("CMS Preliminary");
   pt->SetBorderSize(1);
   pt->SetLineColor(0);
   pt->SetFillColor(0);
   //   pt->SetTextFont(72);
   pt->SetTextSize(0.06);
   text = pt->AddText("CMS Preliminary");
   pt->Draw();
   
   pt = new TPaveText(0.629397,0.798951,0.8002513,0.8653846,"blNDC");
   //   pt = new TPaveText(0.6005025,0.8059441,0.7713568,0.8723776,"blNDC");
   //   pt = new TPaveText(0.2738693,0.7027972,0.4447236,0.7692308,"blNDC");
   //   pt = new TPaveText(0.2416107,0.7727273,0.4127517,0.8391608,"blNDC");
   pt->SetFillColor(0);
   pt->SetBorderSize(1);
   pt->SetLineColor(0);
   pt->SetTextSize(0.06);
   text = pt->AddText("2.2 fb^{-1} at 7 TeV");
   pt->Draw();

   //   pt = new TPaveText(0.6879195,0.8129371,0.7885906,0.9108392,"blNDC");
   //   pt->SetFillColor(0);
   //   pt->SetBorderSize(1);
   //   pt->SetLineColor(0);
   //   pt->SetTextSize(0.0454545);
   //   text = pt->AddText("L = 1091 pb^{-1}");
   //  pt->Draw();


   cLimit->Modified();
   cLimit->cd();
   cLimit->SetSelected(cLimit);
}
Ejemplo n.º 9
0
void picture2()
{
//=========Macro generated from canvas: c/
//=========  (Wed Jul 15 12:53:51 2015) by ROOT version6.04/00
   TCanvas *c = new TCanvas("c", "",0,45,600,500);
   c->SetHighLightColor(2);
   c->Range(-150,-150,1350,150);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   Double_t _fx11[1] = {
   792.688};
   Double_t _fy11[1] = {
   20.02759};
   TGraph *graph = new TGraph(1,_fx11,_fy11);
   graph->SetName("");
   graph->SetTitle("Event 2");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph11 = new TH1F("Graph_Graph11","Event 2",100,0,1200);
   Graph_Graph11->SetMinimum(-120);
   Graph_Graph11->SetMaximum(120);
   Graph_Graph11->SetDirectory(0);
   Graph_Graph11->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph11->SetLineColor(ci);
   Graph_Graph11->GetXaxis()->SetTitle("Z [cm]");
   Graph_Graph11->GetXaxis()->SetLabelFont(42);
   Graph_Graph11->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleFont(42);
   Graph_Graph11->GetYaxis()->SetTitle("Y [cm]");
   Graph_Graph11->GetYaxis()->SetLabelFont(42);
   Graph_Graph11->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleFont(42);
   Graph_Graph11->GetZaxis()->SetLabelFont(42);
   Graph_Graph11->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph11);
   
   graph->Draw("ap");
   
   Double_t _fx12[1] = {
   792.688};
   Double_t _fy12[1] = {
   20.02759};
   graph = new TGraph(1,_fx12,_fy12);
   graph->SetName("");
   graph->SetTitle("Event 2");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph1112 = new TH1F("Graph_Graph_Graph1112","Event 2",100,0,1200);
   Graph_Graph_Graph1112->SetMinimum(-120);
   Graph_Graph_Graph1112->SetMaximum(120);
   Graph_Graph_Graph1112->SetDirectory(0);
   Graph_Graph_Graph1112->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph1112->SetLineColor(ci);
   Graph_Graph_Graph1112->GetXaxis()->SetTitle("Z [cm]");
   Graph_Graph_Graph1112->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph1112->GetYaxis()->SetTitle("Y [cm]");
   Graph_Graph_Graph1112->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph1112->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph1112->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1112->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1112->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph_Graph1112);
   
   graph->Draw("p");
   
   Double_t _fx13[1] = {
   801.6865};
   Double_t _fy13[1] = {
   111.6076};
   graph = new TGraph(1,_fx13,_fy13);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph13 = new TH1F("Graph_Graph13","",100,801.5865,802.7865);
   Graph_Graph13->SetMinimum(-120);
   Graph_Graph13->SetMaximum(120);
   Graph_Graph13->SetDirectory(0);
   Graph_Graph13->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph13->SetLineColor(ci);
   Graph_Graph13->GetXaxis()->SetRange(0,101);
   Graph_Graph13->GetXaxis()->SetLabelFont(42);
   Graph_Graph13->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetXaxis()->SetTitleFont(42);
   Graph_Graph13->GetYaxis()->SetLabelFont(42);
   Graph_Graph13->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetYaxis()->SetTitleFont(42);
   Graph_Graph13->GetZaxis()->SetLabelFont(42);
   Graph_Graph13->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph13->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph13->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph13);
   
   graph->Draw("p");
   
   Double_t _fx14[1] = {
   801.6865};
   Double_t _fy14[1] = {
   111.6076};
   graph = new TGraph(1,_fx14,_fy14);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#00ff00");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph1314 = new TH1F("Graph_Graph_Graph1314","",100,801.5865,802.7865);
   Graph_Graph_Graph1314->SetMinimum(-120);
   Graph_Graph_Graph1314->SetMaximum(120);
   Graph_Graph_Graph1314->SetDirectory(0);
   Graph_Graph_Graph1314->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph_Graph1314->SetLineColor(ci);
   Graph_Graph_Graph1314->GetXaxis()->SetRange(0,101);
   Graph_Graph_Graph1314->GetXaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetXaxis()->SetTitleFont(42);
   Graph_Graph_Graph1314->GetYaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetYaxis()->SetTitleFont(42);
   Graph_Graph_Graph1314->GetZaxis()->SetLabelFont(42);
   Graph_Graph_Graph1314->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph_Graph1314->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph_Graph1314->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph_Graph1314);
   
   graph->Draw("p");
   
   Double_t _fx15[1] = {
   823.7501};
   Double_t _fy15[1] = {
   86.87169};
   graph = new TGraph(1,_fx15,_fy15);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff0000");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph15 = new TH1F("Graph_Graph15","",100,823.6501,824.8501);
   Graph_Graph15->SetMinimum(-120);
   Graph_Graph15->SetMaximum(120);
   Graph_Graph15->SetDirectory(0);
   Graph_Graph15->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph15->SetLineColor(ci);
   Graph_Graph15->GetXaxis()->SetLabelFont(42);
   Graph_Graph15->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetXaxis()->SetTitleFont(42);
   Graph_Graph15->GetYaxis()->SetLabelFont(42);
   Graph_Graph15->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetYaxis()->SetTitleFont(42);
   Graph_Graph15->GetZaxis()->SetLabelFont(42);
   Graph_Graph15->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph15->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph15->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph15);
   
   graph->Draw("p");
   
   TPaveText *pt = new TPaveText(0.4189298,0.94,0.5810702,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("Event 2");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
Ejemplo n.º 10
0
///
/// Make a plot out of a 1D histogram holding a 1-CL curve.
/// The strategy is to always convert the 1-CL histogram (hCL) into
/// a TGraph. This way we can add known points (solutions, points
/// at end of scan range) and also have a filled area without line
/// smoothing. This is not possible with histograms due to a Root bug.
///
/// The function draws the TGraphs, and returns a pointer to the
/// TGraph object that can be used in the TLegend.
///
/// Markers are plotted if the method name of the scanner is "Plugin" or "BergerBoos" or "DatasetsPlugin".
/// One can plot a line instead of points even for the Plugin method by
/// using setPluginMarkers().
///
/// For the angle variables, a new axis is painted that is in Deg.
///
/// \param s The scanner to plot.
/// \param first
/// \param last
/// \param filled
///
TGraph* OneMinusClPlot::scan1dPlot(MethodAbsScan* s, bool first, bool last, bool filled, int CLsType)
{
	if ( arg->debug ){
		cout << "OneMinusClPlot::scan1dPlot() : plotting ";
		cout << s->getName() << " (" << s->getMethodName() << ")" << endl;
	}
	if ( m_mainCanvas==0 ){
		m_mainCanvas = newNoWarnTCanvas(name+getUniqueRootName(), title, 800, 600);
	}
	m_mainCanvas->cd();
	bool plotPoints = ( s->getMethodName()=="Plugin" || s->getMethodName()=="BergerBoos" || s->getMethodName()=="DatasetsPlugin" ) && plotPluginMarkers;
	TH1F *hCL = (TH1F*)s->getHCL()->Clone(getUniqueRootName());
	if (CLsType==1) hCL = (TH1F*)s->getHCLs()->Clone(getUniqueRootName());
  else if (CLsType==2) hCL = (TH1F*)s->getHCLsFreq()->Clone(getUniqueRootName());
	// fix inf and nan entries
	for ( int i=1; i<=s->getHCL()->GetNbinsX(); i++ ){
		if ( s->getHCL()->GetBinContent(i)!=s->getHCL()->GetBinContent(i)
				|| std::isinf(s->getHCL()->GetBinContent(i)) ) s->getHCL()->SetBinContent(i, 0.0);
	}

	// remove errors the hard way, else root ALWAYS plots them
	if ( !plotPoints ) hCL = histHardCopy(hCL, true, true);

	// disable any statistics box
	hCL->SetStats(0);

	// Convert the histogram into a TGraph so we can add the solution.
	// Also, the lf2 drawing option is broken in latest root versions.
	TGraph *g;
	if ( plotPoints ) g = new TGraphErrors(hCL->GetNbinsX());
	else              g = new TGraph(hCL->GetNbinsX());
	g->SetName(getUniqueRootName());
	for ( int i=0; i<hCL->GetNbinsX(); i++ ){
		g->SetPoint(i, hCL->GetBinCenter(i+1), hCL->GetBinContent(i+1));
		if ( plotPoints ) ((TGraphErrors*)g)->SetPointError(i, 0.0, hCL->GetBinError(i+1));
	}

	// add solution
	if ( ! s->getSolutions().empty() ){
		TGraphTools t;
		TGraph *gNew = t.addPointToGraphAtFirstMatchingX(g, s->getScanVar1Solution(0), 1.0);
		delete g;
		g = gNew;
	}

	// // set last point to the same p-value as first point by hand
	// // some angle plots sometimes don't manage to do it by themselves...
	// if ( arg->isQuickhack(XX) )
	// {
	//   Double_t pointx0, pointy0, err0;
	//   Double_t pointx1, pointy1, err1;
	//   g->GetPoint(0, pointx0, pointy0);
	//   g->GetPoint(g->GetN()-1, pointx1, pointy1);
	//   g->SetPoint(g->GetN()-1, pointx1, pointy0);
	//   if ( plotPoints ) err0 = ((TGraphErrors*)g)->GetErrorY(0);
	//   if ( plotPoints ) ((TGraphErrors*)g)->SetPointError(g->GetN()-1, 0.0, err0);
	// }

	// add end points of scan range
	if ( !plotPoints )
	{
		Double_t pointx0, pointy0;
		TGraph *gNew = new TGraph(g->GetN()+4);
		gNew->SetName(getUniqueRootName());
		for ( int i=0; i<g->GetN(); i++)
		{
			g->GetPoint(i, pointx0, pointy0);
			gNew->SetPoint(i+2, pointx0, pointy0);
		}

		// add origin
		gNew->SetPoint(0, hCL->GetXaxis()->GetXmin(), 0);

		// add a point at first y height but at x=origin.
		g->GetPoint(0, pointx0, pointy0);
		gNew->SetPoint(1, hCL->GetXaxis()->GetXmin(), pointy0);

		// add a point at last y height but at x=xmax.
		g->GetPoint(g->GetN()-1, pointx0, pointy0);
		gNew->SetPoint(gNew->GetN()-2, hCL->GetXaxis()->GetXmax(), pointy0);

		// add a point at xmax, 0
		gNew->SetPoint(gNew->GetN()-1, hCL->GetXaxis()->GetXmax(), 0);
		g = gNew;
	}

	int color = s->getLineColor();
	if(CLsType>0 && s->getMethodName().Contains("Plugin") && !arg->plotpluginonly) {
    if (CLsType==1) color = kBlue-7;
    else if (CLsType==2) color = kBlue+2;
  }
	else if(CLsType>0) {
    if (CLsType==1) color = s->getLineColor() - 5;
    if (CLsType==2) color = s->getLineColor() - 4;
  }
	g->SetLineColor(color);

	if ( filled ){
		g->SetLineWidth(2);
    double alpha = arg->isQuickhack(12) ? 0.4 : 1.;
    if ( arg->isQuickhack(24) ) alpha = 0.;
		g->SetFillColorAlpha(color,alpha);
		g->SetLineStyle(1);
    g->SetFillStyle( s->getFillStyle() );
	}
	else{
		g->SetLineWidth(2);
		g->SetLineStyle(s->getLineStyle());
    if ( last && arg->isQuickhack(25) ) g->SetLineWidth(3);
	}

	if ( plotPoints ){
		g->SetLineWidth(1);
		g->SetMarkerColor(color);
		g->SetMarkerStyle(8);
		g->SetMarkerSize(0.6);
		if(CLsType==1) {
			g->SetMarkerStyle(33);
			g->SetMarkerSize(1);
		}
		if(CLsType==2) {
			g->SetMarkerStyle(21);
		}
	}

	// build a histogram which holds the axes
	float min = arg->scanrangeMin == arg->scanrangeMax ? hCL->GetXaxis()->GetXmin() : arg->scanrangeMin;
	float max = arg->scanrangeMin == arg->scanrangeMax ? hCL->GetXaxis()->GetXmax() : arg->scanrangeMax;
	TH1F *haxes = new TH1F("haxes"+getUniqueRootName(), "", 100, min, max);
	haxes->SetStats(0);
	haxes->GetXaxis()->SetTitle(s->getScanVar1()->GetTitle());
	haxes->GetYaxis()->SetTitle("1-CL");
	haxes->GetXaxis()->SetLabelFont(font);
	haxes->GetYaxis()->SetLabelFont(font);
	haxes->GetXaxis()->SetTitleFont(font);
	haxes->GetYaxis()->SetTitleFont(font);
	haxes->GetXaxis()->SetTitleOffset(0.9);
	haxes->GetYaxis()->SetTitleOffset(0.85);
	haxes->GetXaxis()->SetLabelSize(labelsize);
	haxes->GetYaxis()->SetLabelSize(labelsize);
	haxes->GetXaxis()->SetTitleSize(titlesize);
	haxes->GetYaxis()->SetTitleSize(titlesize);
	int xndiv = arg->ndiv==-1 ? 407 : abs(arg->ndiv);
	bool optimizeNdiv = arg->ndiv<0 ? true : false;
	haxes->GetXaxis()->SetNdivisions(xndiv, optimizeNdiv);
	haxes->GetYaxis()->SetNdivisions(407, true);

  // plot y range
  float plotYMax;
  float plotYMin;
  if ( plotLegend && !arg->isQuickhack(22) ) {
    if ( arg->plotlog ) { plotYMin = 1.e-3; plotYMax = 10.; }
    else                { plotYMin = 0.0  ; plotYMax = 1.3; }
  }
  else {
    if ( arg->plotlog ) { plotYMin = 1.e-3; plotYMax = 1.0; }
    else                { plotYMin = 0.0  ; plotYMax = 1.0; }
  }
  // change if passed as option
	plotYMin = arg->plotymin > 0. ? arg->plotymin : plotYMin;
  plotYMax = arg->plotymax > 0. ? arg->plotymax : plotYMax;

  haxes->GetYaxis()->SetRangeUser( plotYMin, plotYMax );
	haxes->Draw("axissame");
	g->SetHistogram(haxes);

	TString drawOption = "";
	if ( plotPoints )   drawOption += " pe";
	else if ( filled )  drawOption += " F";
	else                drawOption += " L";
	if ( first )        drawOption += " A";
	g->Draw(drawOption);
  //if ( drawOption.Contains("F") ) ((TGraph*)g->Clone())->Draw("L");

	gPad->Update();
	float ymin = gPad->GetUymin();
	float ymax = gPad->GetUymax();
	float xmin = gPad->GetUxmin();
	float xmax = gPad->GetUxmax();

	// for the angles, draw a new axis in units of degrees
	if ( isAngle(s->getScanVar1()) ){
		haxes->GetXaxis()->SetTitle(s->getScanVar1()->GetTitle() + TString(" [#circ]"));
		haxes->GetXaxis()->SetNdivisions(0);  // disable old axis
		if ( last ){
			// new top axis
			TString chopt = "-U"; // - = downward ticks, U = unlabeled, http://root.cern.ch/root/html534/TGaxis.html
			if ( !optimizeNdiv ) chopt += "N"; // n = no bin optimization
			TGaxis *axist = new TGaxis(xmin, 1, xmax, 1, RadToDeg(xmin), RadToDeg(xmax), xndiv, chopt);
			axist->SetName("axist");
			axist->Draw();

			// new bottom axis
			float axisbMin = RadToDeg(xmin);
			float axisbMax = RadToDeg(xmax);
			if ( arg->isQuickhack(3) ){ ///< see documentation of --qh option in OptParser.cpp
				axisbMin += 180.;
				axisbMax += 180.;
			}
			chopt = ""; // - = downward ticks, U = unlabeled, http://root.cern.ch/root/html534/TGaxis.html
			if ( !optimizeNdiv ) chopt += "N"; // n = no bin optimization
			TGaxis *axisb = new TGaxis(xmin, ymin, xmax, ymin, axisbMin, axisbMax, xndiv, chopt);
			axisb->SetName("axisb");
			axisb->SetLabelFont(font);
			axisb->SetLabelSize(labelsize);
			axisb->Draw();
		}
	}
	else
	{
		if ( last ){
			// add top axis
			TString chopt = "-U"; // - = downward ticks, U = unlabeled, http://root.cern.ch/root/html534/TGaxis.html
			if ( !optimizeNdiv ) chopt += "N"; // n = no bin optimization
			TGaxis *axist = new TGaxis(xmin, 1.0, xmax, 1.0, xmin, xmax, xndiv, chopt);
			axist->SetName("axist");
			axist->SetLineWidth(1);
			axist->Draw();
		}
	}

	if ( last )
	{
		// add right axis
		TGaxis *axisr = 0;
		if ( arg->plotlog ){
			float f3min = 1e-3;
			float f3max = (plotLegend && !arg->isQuickhack(22)) ? 10. : 1.;
			TF1 *f3 = new TF1("f3","log10(x)",f3min,f3max);
			axisr = new TGaxis(xmax, f3min, xmax, f3max, "f3", 510, "G+");
		}
		else{
			axisr = new TGaxis(xmax, ymin, xmax, ymax, 0, (plotLegend && !arg->isQuickhack(22)) ? 1.3 : 1.0, 407, "+");
		}
		axisr->SetLabelSize(0);
		axisr->SetLineWidth(1);
		axisr->SetName("axisr");
		axisr->SetLabelColor(kWhite);
		axisr->SetTitleColor(kWhite);
		axisr->Draw();

		// redraw right axis as well because the 1-CL graph can cover the old one
		haxes->Draw("axissame");
	}

	return g;
}
Ejemplo n.º 11
0
void mass4Chan(){
//=========Macro generated from canvas: ccc/
//=========  (Thu Mar  7 22:11:11 2013) by ROOT version5.34/03
   TCanvas *ccc = new TCanvas("ccc", "",0,0,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   ccc->Range(86.5625,-1.875,92.8125,10.625);
   ccc->SetFillColor(0);
   ccc->SetBorderMode(0);
   ccc->SetBorderSize(2);
   ccc->SetLeftMargin(0.15);
   ccc->SetRightMargin(0.05);
   ccc->SetTopMargin(0.05);
   ccc->SetBottomMargin(0.15);
   ccc->SetFrameFillStyle(0);
   ccc->SetFrameBorderMode(0);
   ccc->SetFrameFillStyle(0);
   ccc->SetFrameBorderMode(0);
   
  

   
   TH2F *hframe = new TH2F("hframe","",100,85,96,100,0,10);
   hframe->SetLineStyle(0);
   hframe->SetMarkerStyle(20);
   hframe->GetXaxis()->SetTitle(" m_{Z} (GeV)");
   hframe->GetXaxis()->SetNdivisions(510);
   hframe->GetXaxis()->SetLabelFont(42);
   hframe->GetXaxis()->SetLabelOffset(0.01);
   hframe->GetXaxis()->SetLabelSize(0.05);
   hframe->GetXaxis()->SetTitleSize(0.05);
   hframe->GetXaxis()->SetTitleOffset(1.15);
   hframe->GetXaxis()->SetTitleFont(42);
   hframe->GetYaxis()->SetTitle(" -2#Delta ln L");
   hframe->GetYaxis()->SetLabelFont(42);
   hframe->GetYaxis()->SetLabelOffset(0.01);
   hframe->GetYaxis()->SetLabelSize(0.05);
   hframe->GetYaxis()->SetTitleSize(0.05);
   hframe->GetYaxis()->SetTitleOffset(1.4);
   hframe->GetYaxis()->SetTitleFont(42);
   hframe->GetZaxis()->SetLabelFont(42);
   hframe->GetZaxis()->SetLabelOffset(0.007);
   hframe->GetZaxis()->SetLabelSize(0.045);
   hframe->GetZaxis()->SetTitleSize(0.05);
   hframe->GetZaxis()->SetTitleFont(42);
   hframe->Draw("");
   
   //4e
   TGraph *graph = new TGraph(211);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetLineColor(kGreen+1);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   graph->SetPoint(0,88.01999664,7.234320164);
   graph->SetPoint(1,88.05999756,7.121326923);
   graph->SetPoint(2,88.09999847,7.008939743);
   graph->SetPoint(3,88.13999939,6.897168636);
   graph->SetPoint(4,88.18000031,6.786022186);
   graph->SetPoint(5,88.22000122,6.67550993);
   graph->SetPoint(6,88.26000214,6.565642357);
   graph->SetPoint(7,88.30000305,6.456428051);
   graph->SetPoint(8,88.33999634,6.347877979);
   graph->SetPoint(9,88.37999725,6.240002632);
   graph->SetPoint(10,88.41999817,6.1328125);
   graph->SetPoint(11,88.45999908,6.026317596);
   graph->SetPoint(12,88.5,5.920529366);
   graph->SetPoint(13,88.54000092,5.815458775);
   graph->SetPoint(14,88.58000183,5.711116314);
   graph->SetPoint(15,88.62000275,5.607512951);
   graph->SetPoint(16,88.66000366,5.504659653);
   graph->SetPoint(17,88.69999695,5.402567387);
   graph->SetPoint(18,88.73999786,5.301246643);
   graph->SetPoint(19,88.77999878,5.200707436);
   graph->SetPoint(20,88.81999969,5.100960732);
   graph->SetPoint(21,88.81999969,5.100960732);
   graph->SetPoint(22,88.86000061,5.002016068);
   graph->SetPoint(23,88.90000153,4.903883457);
   graph->SetPoint(24,88.94000244,4.806572437);
   graph->SetPoint(25,88.98000336,4.710093021);
   graph->SetPoint(26,89.01999664,4.614454269);
   graph->SetPoint(27,89.05999756,4.519664764);
   graph->SetPoint(28,89.09999847,4.425733089);
   graph->SetPoint(29,89.13999939,4.332668304);
   graph->SetPoint(30,89.18000031,4.240478516);
   graph->SetPoint(31,89.22000122,4.149171829);
   graph->SetPoint(32,89.26000214,4.058755875);
   graph->SetPoint(33,89.30000305,3.969237804);
   graph->SetPoint(34,89.33999634,3.880625486);
   graph->SetPoint(35,89.37999725,3.792925596);
   graph->SetPoint(36,89.41999817,3.706145048);
   graph->SetPoint(37,89.45999908,3.620290518);
   graph->SetPoint(38,89.5,3.535368204);
   graph->SetPoint(39,89.54000092,3.451384068);
   graph->SetPoint(40,89.58000183,3.368344069);
   graph->SetPoint(41,89.62000275,3.286253691);
   graph->SetPoint(42,89.62000275,3.286253691);
   graph->SetPoint(43,89.66000366,3.205118656);
   graph->SetPoint(44,89.69999695,3.124943733);
   graph->SetPoint(45,89.73999786,3.045734167);
   graph->SetPoint(46,89.77999878,2.967494488);
   graph->SetPoint(47,89.81999969,2.890229225);
   graph->SetPoint(48,89.86000061,2.813942432);
   graph->SetPoint(49,89.90000153,2.738638639);
   graph->SetPoint(50,89.94000244,2.664321423);
   graph->SetPoint(51,89.98000336,2.590994596);
   graph->SetPoint(52,90.01999664,2.518661499);
   graph->SetPoint(53,90.05999756,2.447325468);
   graph->SetPoint(54,90.09999847,2.376989603);
   graph->SetPoint(55,90.13999939,2.307657003);
   graph->SetPoint(56,90.18000031,2.23933053);
   graph->SetPoint(57,90.22000122,2.172012329);
   graph->SetPoint(58,90.26000214,2.105705023);
   graph->SetPoint(59,90.30000305,2.040410995);
   graph->SetPoint(60,90.33999634,1.976132512);
   graph->SetPoint(61,90.37999725,1.912871242);
   graph->SetPoint(62,90.41999817,1.85062921);
   graph->SetPoint(63,90.41999817,1.85062921);
   graph->SetPoint(64,90.45999908,1.789408088);
   graph->SetPoint(65,90.5,1.729209423);
   graph->SetPoint(66,90.54000092,1.670034766);
   graph->SetPoint(67,90.58000183,1.611885428);
   graph->SetPoint(68,90.62000275,1.554762602);
   graph->SetPoint(69,90.66000366,1.498667479);
   graph->SetPoint(70,90.69999695,1.443601012);
   graph->SetPoint(71,90.73999786,1.389564157);
   graph->SetPoint(72,90.77999878,1.336557865);
   graph->SetPoint(73,90.81999969,1.284582734);
   graph->SetPoint(74,90.86000061,1.233639359);
   graph->SetPoint(75,90.90000153,1.183728576);
   graph->SetPoint(76,90.94000244,1.134850621);
   graph->SetPoint(77,90.98000336,1.087006092);
   graph->SetPoint(78,91.01999664,1.040195346);
   graph->SetPoint(79,91.05999756,0.9944185615);
   graph->SetPoint(80,91.09999847,0.9496760368);
   graph->SetPoint(81,91.13999939,0.9059679508);
   graph->SetPoint(82,91.18000031,0.8632944226);
   graph->SetPoint(83,91.22000122,0.8216554523);
   graph->SetPoint(84,91.22000122,0.8216554523);
   graph->SetPoint(85,91.26000214,0.7810510397);
   graph->SetPoint(86,91.30000305,0.7414811254);
   graph->SetPoint(87,91.33999634,0.70294559);
   graph->SetPoint(88,91.37999725,0.6654443145);
   graph->SetPoint(89,91.41999817,0.6289771199);
   graph->SetPoint(90,91.45999908,0.5935436487);
   graph->SetPoint(91,91.5,0.5591436625);
   graph->SetPoint(92,91.54000092,0.5257768631);
   graph->SetPoint(93,91.58000183,0.4934427738);
   graph->SetPoint(94,91.62000275,0.462141037);
   graph->SetPoint(95,91.66000366,0.431871146);
   graph->SetPoint(96,91.69999695,0.4026326835);
   graph->SetPoint(97,91.73999786,0.3744250238);
   graph->SetPoint(98,91.77999878,0.3472476304);
   graph->SetPoint(99,91.81999969,0.3210999072);
   graph->SetPoint(100,91.86000061,0.2959812582);
   graph->SetPoint(101,91.90000153,0.2718909979);
   graph->SetPoint(102,91.94000244,0.2488284409);
   graph->SetPoint(103,91.98000336,0.2267929316);
   graph->SetPoint(104,92.01999664,0.2057837248);
   graph->SetPoint(105,92.01999664,0.2057837248);
   graph->SetPoint(106,92.05999756,0.1858001053);
   graph->SetPoint(107,92.09999847,0.1668412983);
   graph->SetPoint(108,92.13999939,0.1489065737);
   graph->SetPoint(109,92.18000031,0.1319951713);
   graph->SetPoint(110,92.22000122,0.1161063388);
   graph->SetPoint(111,92.26000214,0.1012392938);
   graph->SetPoint(112,92.30000305,0.08739329875);
   graph->SetPoint(113,92.33999634,0.07456759363);
   graph->SetPoint(114,92.37999725,0.06276145577);
   graph->SetPoint(115,92.41999817,0.05197418481);
   graph->SetPoint(116,92.45999908,0.04220509902);
   graph->SetPoint(117,92.5,0.03345353901);
   graph->SetPoint(118,92.54000092,0.02571888082);
   graph->SetPoint(119,92.58000183,0.01900054142);
   graph->SetPoint(120,92.62000275,0.01329800207);
   graph->SetPoint(121,92.66000366,0.008610763587);
   graph->SetPoint(122,92.69999695,0.004938419908);
   graph->SetPoint(123,92.73999786,0.002280603396);
   graph->SetPoint(124,92.77999878,0.0006370125338);
   graph->SetPoint(125,92.81999969,7.419047051e-06);
   //graph->SetPoint(126,92.81999969,7.419047961e-06);
   graph->SetPoint(127,92.82485199,0);
   graph->SetPoint(128,92.82485199,0);
   graph->SetPoint(129,92.82485199,0);
   graph->SetPoint(130,92.82485199,0);
   graph->SetPoint(131,92.82485199,0);
   graph->SetPoint(132,92.82485199,0);
   graph->SetPoint(133,92.82485199,0);
   graph->SetPoint(134,93.05999756,0.01752127893);
   graph->SetPoint(135,93.09999847,0.02399016172);
   graph->SetPoint(136,93.13999939,0.0314742066);
   graph->SetPoint(137,93.18000031,0.03997394815);
   graph->SetPoint(138,93.22000122,0.04949002713);
   graph->SetPoint(139,93.26000214,0.06002314016);
   graph->SetPoint(140,93.30000305,0.07157406956);
   graph->SetPoint(141,93.33999634,0.08414366841);
   graph->SetPoint(142,93.37999725,0.09773286432);
   graph->SetPoint(143,93.41999817,0.1123426482);
   graph->SetPoint(144,93.45999908,0.1279740632);
   graph->SetPoint(145,93.5,0.144628197);
   graph->SetPoint(146,93.54000092,0.1623062044);
   graph->SetPoint(147,93.58000183,0.1810092628);
   graph->SetPoint(148,93.62000275,0.200738579);
   graph->SetPoint(149,93.62000275,0.200738579);
   graph->SetPoint(150,93.66000366,0.2214953899);
   graph->SetPoint(151,93.69999695,0.2432809174);
   graph->SetPoint(152,93.73999786,0.2660964429);
   graph->SetPoint(153,93.77999878,0.2899431586);
   graph->SetPoint(154,93.81999969,0.3148224056);
   graph->SetPoint(155,93.86000061,0.3407353461);
   graph->SetPoint(156,93.90000153,0.367683202);
   graph->SetPoint(157,93.94000244,0.3956672251);
   graph->SetPoint(158,93.98000336,0.4246885478);
   graph->SetPoint(159,94.01999664,0.4547482729);
   graph->SetPoint(160,94.05999756,0.4858476222);
   graph->SetPoint(161,94.09999847,0.5179876089);
   graph->SetPoint(162,94.13999939,0.5511692166);
   graph->SetPoint(163,94.18000031,0.585393548);
   graph->SetPoint(164,94.22000122,0.6206615567);
   graph->SetPoint(165,94.26000214,0.6569740772);
   graph->SetPoint(166,94.30000305,0.6943320632);
   graph->SetPoint(167,94.33999634,0.7327364087);
   graph->SetPoint(168,94.37999725,0.772187829);
   graph->SetPoint(169,94.41999817,0.8126871586);
   graph->SetPoint(170,94.41999817,0.8126871586);
   graph->SetPoint(171,94.45999908,0.8542351723);
   graph->SetPoint(172,94.5,0.8968324661);
   graph->SetPoint(173,94.54000092,0.940479815);
   graph->SetPoint(174,94.58000183,0.985177815);
   graph->SetPoint(175,94.62000275,1.030927062);
   graph->SetPoint(176,94.66000366,1.077728152);
   graph->SetPoint(177,94.69999695,1.125581622);
   graph->SetPoint(178,94.73999786,1.174487948);
   graph->SetPoint(179,94.77999878,1.224447489);
   graph->SetPoint(180,94.81999969,1.27546072);
   graph->SetPoint(181,94.86000061,1.327528);
   graph->SetPoint(182,94.90000153,1.380649686);
   graph->SetPoint(183,94.94000244,1.434825897);
   graph->SetPoint(184,94.98000336,1.490056992);
   graph->SetPoint(185,95.01999664,1.546342969);
   graph->SetPoint(186,95.05999756,1.603683949);
   graph->SetPoint(187,95.09999847,1.66207993);
   graph->SetPoint(188,95.13999939,1.721530676);
   graph->SetPoint(189,95.18000031,1.782036185);
   graph->SetPoint(190,95.22000122,1.843595982);
   graph->SetPoint(191,95.22000122,1.843595982);
   graph->SetPoint(192,95.26000214,1.906209826);
   graph->SetPoint(193,95.30000305,1.969877124);
   graph->SetPoint(194,95.33999634,2.034597158);
   graph->SetPoint(195,95.37999725,2.100369453);
   graph->SetPoint(196,95.41999817,2.167192936);
   graph->SetPoint(197,95.45999908,2.235066652);
   graph->SetPoint(198,95.5,2.30398941);
   graph->SetPoint(199,95.54000092,2.37395978);
   graph->SetPoint(200,95.58000183,2.44497633);
   graph->SetPoint(201,95.62000275,2.517037392);
   graph->SetPoint(202,95.66000366,2.590141296);
   graph->SetPoint(203,95.69999695,2.66428566);
   graph->SetPoint(204,95.73999786,2.739468575);
   graph->SetPoint(205,95.77999878,2.815687418);
   graph->SetPoint(206,95.81999969,2.892939568);
   graph->SetPoint(207,95.86000061,2.971222401);
   graph->SetPoint(208,95.90000153,3.050532341);
   graph->SetPoint(209,95.94000244,3.130866289);
   graph->SetPoint(210,95.98000336,3.212220907);


   graph->Sort();

   cout << "4e: " << graph->Eval(91.1876) << endl;


   //2e2mu
   TGraph *graph1 = new TGraph(211);
   graph1->SetName("Graph1");
   graph1->SetTitle("Graph1");
   graph1->SetFillColor(1);
   graph1->SetLineWidth(3);
   graph1->SetLineColor(kBlue);
   graph1->SetMarkerStyle(20);
   graph1->SetPoint(0,88.01999664,8.795412064);
   graph1->SetPoint(1,88.05999756,8.61370182);
   graph1->SetPoint(2,88.09999847,8.43285656);
   graph1->SetPoint(3,88.13999939,8.252916336);
   graph1->SetPoint(4,88.18000031,8.073918343);
   graph1->SetPoint(5,88.22000122,7.895903111);
   graph1->SetPoint(6,88.26000214,7.718908787);
   graph1->SetPoint(7,88.30000305,7.542974472);
   graph1->SetPoint(8,88.33999634,7.36813879);
   graph1->SetPoint(9,88.37999725,7.194441795);
   graph1->SetPoint(10,88.41999817,7.021921158);
   graph1->SetPoint(11,88.45999908,6.850616932);
   graph1->SetPoint(12,88.5,6.680567265);
   graph1->SetPoint(13,88.54000092,6.51181221);
   graph1->SetPoint(14,88.58000183,6.344389915);
   graph1->SetPoint(15,88.62000275,6.178339481);
   graph1->SetPoint(16,88.66000366,6.013700008);
   graph1->SetPoint(17,88.69999695,5.850510597);
   graph1->SetPoint(18,88.73999786,5.688809872);
   graph1->SetPoint(19,88.77999878,5.528635979);
   graph1->SetPoint(20,88.81999969,5.370028496);
   graph1->SetPoint(21,88.81999969,5.370028496);
   graph1->SetPoint(22,88.86000061,5.21302557);
   graph1->SetPoint(23,88.90000153,5.057665825);
   graph1->SetPoint(24,88.94000244,4.903987885);
   graph1->SetPoint(25,88.98000336,4.752028942);
   graph1->SetPoint(26,89.01999664,4.601828575);
   graph1->SetPoint(27,89.05999756,4.4534235);
   graph1->SetPoint(28,89.09999847,4.306852341);
   graph1->SetPoint(29,89.13999939,4.162151814);
   graph1->SetPoint(30,89.18000031,4.019360065);
   graph1->SetPoint(31,89.22000122,3.87851429);
   graph1->SetPoint(32,89.26000214,3.739651203);
   graph1->SetPoint(33,89.30000305,3.602807283);
   graph1->SetPoint(34,89.33999634,3.468019247);
   graph1->SetPoint(35,89.37999725,3.335323095);
   graph1->SetPoint(36,89.41999817,3.204754591);
   graph1->SetPoint(37,89.45999908,3.076349258);
   graph1->SetPoint(38,89.5,2.950142145);
   graph1->SetPoint(39,89.54000092,2.82616806);
   graph1->SetPoint(40,89.58000183,2.704461336);
   graph1->SetPoint(41,89.62000275,2.58505559);
   graph1->SetPoint(42,89.62000275,2.58505559);
   graph1->SetPoint(43,89.66000366,2.467984438);
   graph1->SetPoint(44,89.69999695,2.353280783);
   graph1->SetPoint(45,89.73999786,2.240977049);
   graph1->SetPoint(46,89.77999878,2.131105185);
   graph1->SetPoint(47,89.81999969,2.023696423);
   graph1->SetPoint(48,89.86000061,1.918781519);
   graph1->SetPoint(49,89.90000153,1.816390634);
   graph1->SetPoint(50,89.94000244,1.716553092);
   graph1->SetPoint(51,89.98000336,1.619297981);
   graph1->SetPoint(52,90.01999664,1.524653077);
   graph1->SetPoint(53,90.05999756,1.432646155);
   graph1->SetPoint(54,90.09999847,1.343303561);
   graph1->SetPoint(55,90.13999939,1.256651402);
   graph1->SetPoint(56,90.18000031,1.17271471);
   graph1->SetPoint(57,90.22000122,1.091517925);
   graph1->SetPoint(58,90.26000214,1.013084531);
   graph1->SetPoint(59,90.30000305,0.9374370575);
   graph1->SetPoint(60,90.33999634,0.864597559);
   graph1->SetPoint(61,90.37999725,0.7945868969);
   graph1->SetPoint(62,90.41999817,0.727425158);
   graph1->SetPoint(63,90.41999817,0.727425158);
   graph1->SetPoint(64,90.45999908,0.6631317139);
   graph1->SetPoint(65,90.5,0.6017247438);
   graph1->SetPoint(66,90.54000092,0.5432218313);
   graph1->SetPoint(67,90.58000183,0.4876395166);
   graph1->SetPoint(68,90.62000275,0.4349934459);
   graph1->SetPoint(69,90.66000366,0.3852983713);
   graph1->SetPoint(70,90.69999695,0.3385681808);
   graph1->SetPoint(71,90.73999786,0.2948157787);
   graph1->SetPoint(72,90.77999878,0.2540532351);
   graph1->SetPoint(73,90.81999969,0.2162916809);
   graph1->SetPoint(74,90.86000061,0.1815413088);
   graph1->SetPoint(75,90.90000153,0.1498114169);
   graph1->SetPoint(76,90.94000244,0.1211103573);
   graph1->SetPoint(77,90.98000336,0.09544557333);
   graph1->SetPoint(78,91.01999664,0.07282357663);
   graph1->SetPoint(79,91.05999756,0.05324992537);
   graph1->SetPoint(80,91.09999847,0.0367292501);
   graph1->SetPoint(81,91.13999939,0.02326522022);
   graph1->SetPoint(82,91.18000031,0.01286056917);
   graph1->SetPoint(83,91.22000122,0.005517064128);
   graph1->SetPoint(84,91.22000122,0.005517064128);
   graph1->SetPoint(85,91.26000214,0.001235519536);
   graph1->SetPoint(86,91.29593658,0);
   graph1->SetPoint(87,91.29593658,0);
   graph1->SetPoint(88,91.29593658,0);
   graph1->SetPoint(89,91.29593658,0);
   graph1->SetPoint(90,91.29593658,0);
   graph1->SetPoint(91,91.29593658,0);
   graph1->SetPoint(92,91.29593658,0);
   graph1->SetPoint(93,91.5,0.03977194428);
   graph1->SetPoint(94,91.54000092,0.05686627701);
   graph1->SetPoint(95,91.58000183,0.07699460536);
   graph1->SetPoint(96,91.62000275,0.1001491994);
   graph1->SetPoint(97,91.66000366,0.1263214052);
   graph1->SetPoint(98,91.69999695,0.1555016339);
   graph1->SetPoint(99,91.73999786,0.1876795292);
   graph1->SetPoint(100,91.77999878,0.2228437364);
   graph1->SetPoint(101,91.81999969,0.260982126);
   graph1->SetPoint(102,91.86000061,0.3020817041);
   graph1->SetPoint(103,91.90000153,0.3461286724);
   graph1->SetPoint(104,91.94000244,0.3931084573);
   graph1->SetPoint(105,91.98000336,0.443005681);
   graph1->SetPoint(106,92.01999664,0.4958042502);
   //graph1->SetPoint(107,92.01999664,0.4958042204);
   graph1->SetPoint(108,92.05999756,0.551487267);
   graph1->SetPoint(109,92.09999847,0.6100373268);
   graph1->SetPoint(110,92.13999939,0.671436131);
   graph1->SetPoint(111,92.18000031,0.7356648445);
   graph1->SetPoint(112,92.22000122,0.802703917);
   graph1->SetPoint(113,92.26000214,0.872533381);
   graph1->SetPoint(114,92.30000305,0.945132494);
   graph1->SetPoint(115,92.33999634,1.020480037);
   graph1->SetPoint(116,92.37999725,1.098554254);
   graph1->SetPoint(117,92.41999817,1.179333091);
   graph1->SetPoint(118,92.45999908,1.262793779);
   graph1->SetPoint(119,92.5,1.348913193);
   graph1->SetPoint(120,92.54000092,1.437667727);
   graph1->SetPoint(121,92.58000183,1.52903378);
   graph1->SetPoint(122,92.62000275,1.622986913);
   graph1->SetPoint(123,92.66000366,1.719502687);
   graph1->SetPoint(124,92.69999695,1.818556309);
   graph1->SetPoint(125,92.73999786,1.920122623);
   graph1->SetPoint(126,92.77999878,2.024176359);
   graph1->SetPoint(127,92.81999969,2.130692005);
   graph1->SetPoint(128,92.81999969,2.130692005);
   graph1->SetPoint(129,92.86000061,2.239643812);
   graph1->SetPoint(130,92.90000153,2.351006031);
   graph1->SetPoint(131,92.94000244,2.464752674);
   graph1->SetPoint(132,92.98000336,2.580857754);
   graph1->SetPoint(133,93.01999664,2.699294806);
   graph1->SetPoint(134,93.05999756,2.820037603);
   graph1->SetPoint(135,93.09999847,2.94306016);
   graph1->SetPoint(136,93.13999939,3.068335533);
   graph1->SetPoint(137,93.18000031,3.195837736);
   graph1->SetPoint(138,93.22000122,3.325540066);
   graph1->SetPoint(139,93.26000214,3.457416296);
   graph1->SetPoint(140,93.30000305,3.591439486);
   graph1->SetPoint(141,93.33999634,3.727583647);
   graph1->SetPoint(142,93.37999725,3.865821838);
   graph1->SetPoint(143,93.41999817,4.006127834);
   graph1->SetPoint(144,93.45999908,4.148474216);
   graph1->SetPoint(145,93.5,4.292835712);
   graph1->SetPoint(146,93.54000092,4.439184189);
   graph1->SetPoint(147,93.58000183,4.587494373);
   graph1->SetPoint(148,93.62000275,4.737738609);
   graph1->SetPoint(149,93.62000275,4.737738609);
   graph1->SetPoint(150,93.66000366,4.889890194);
   graph1->SetPoint(151,93.69999695,5.043922424);
   graph1->SetPoint(152,93.73999786,5.199808598);
   graph1->SetPoint(153,93.77999878,5.357521057);
   graph1->SetPoint(154,93.81999969,5.517033577);
   graph1->SetPoint(155,93.86000061,5.678318024);
   graph1->SetPoint(156,93.90000153,5.841347694);
   graph1->SetPoint(157,93.94000244,6.006094933);
   graph1->SetPoint(158,93.98000336,6.172532082);
   graph1->SetPoint(159,94.01999664,6.340631485);
   graph1->SetPoint(160,94.05999756,6.510365486);
   graph1->SetPoint(161,94.09999847,6.681705952);
   graph1->SetPoint(162,94.13999939,6.854624748);
   graph1->SetPoint(163,94.18000031,7.029093266);
   graph1->SetPoint(164,94.22000122,7.205083847);
   graph1->SetPoint(165,94.26000214,7.382567883);
   graph1->SetPoint(166,94.30000305,7.561516285);
   graph1->SetPoint(167,94.33999634,7.741900921);
   graph1->SetPoint(168,94.37999725,7.923692226);
   graph1->SetPoint(169,94.41999817,8.106862068);
   graph1->SetPoint(170,94.41999817,8.106862068);
   graph1->SetPoint(171,94.45999908,8.291379929);
   graph1->SetPoint(172,94.5,8.477218628);
   graph1->SetPoint(173,94.54000092,8.664347649);
   graph1->SetPoint(174,94.58000183,8.85273838);
   graph1->SetPoint(175,94.62000275,9.042361259);
   graph1->SetPoint(176,94.66000366,9.233187675);
   graph1->SetPoint(177,94.69999695,9.425187111);
   graph1->SetPoint(178,94.73999786,9.618330002);
   graph1->SetPoint(179,94.77999878,9.812587738);
   graph1->SetPoint(180,94.81999969,10.00793171);
   graph1->SetPoint(181,94.86000061,10.20433044);
   graph1->SetPoint(182,94.90000153,10.40175724);
   graph1->SetPoint(183,94.94000244,10.60017967);
   graph1->SetPoint(184,94.98000336,10.79957104);
   graph1->SetPoint(185,95.01999664,10.99990082);
   graph1->SetPoint(186,95.05999756,11.20113945);
   graph1->SetPoint(187,95.09999847,11.40325832);
   graph1->SetPoint(188,95.13999939,11.60622883);
   graph1->SetPoint(189,95.18000031,11.81002045);
   graph1->SetPoint(190,95.22000122,12.01460457);
   graph1->SetPoint(191,95.22000122,12.01460457);
   graph1->SetPoint(192,95.26000214,12.21995258);
   graph1->SetPoint(193,95.30000305,12.42603588);
   graph1->SetPoint(194,95.33999634,12.63282394);
   graph1->SetPoint(195,95.37999725,12.84028816);
   graph1->SetPoint(196,95.41999817,13.04840088);
   graph1->SetPoint(197,95.45999908,13.25713253);
   graph1->SetPoint(198,95.5,13.46645451);
   graph1->SetPoint(199,95.54000092,13.6763382);
   graph1->SetPoint(200,95.58000183,13.88675499);
   graph1->SetPoint(201,95.62000275,14.09767723);
   graph1->SetPoint(202,95.66000366,14.3090744);
   graph1->SetPoint(203,95.69999695,14.5209198);
   graph1->SetPoint(204,95.73999786,14.73318481);
   graph1->SetPoint(205,95.77999878,14.94584179);
   graph1->SetPoint(206,95.81999969,15.15886116);
   graph1->SetPoint(207,95.86000061,15.37221718);
   graph1->SetPoint(208,95.90000153,15.58588123);
   graph1->SetPoint(209,95.94000244,15.79982567);
   graph1->SetPoint(210,95.98000336,16.01402283);

   
   graph1->Sort();
   
   cout<< "2e2mu: " << graph1->Eval(91.1876) << endl;


   //4mu
   TGraph *graph2 = new TGraph(216);
   graph2->SetName("Graph2");
   graph2->SetTitle("Graph2");
   graph2->SetFillColor(1);
   graph2->SetLineWidth(3);
   graph2->SetLineColor(kRed);
   graph2->SetMarkerStyle(20);
   graph2->SetPoint(0,88.01999664,42.99673462);
   graph2->SetPoint(1,88.05999756,42.01807404);
   graph2->SetPoint(2,88.09999847,41.04578781);
   graph2->SetPoint(3,88.13999939,40.08004379);
   graph2->SetPoint(4,88.18000031,39.12101746);
   graph2->SetPoint(5,88.22000122,38.16888046);
   graph2->SetPoint(6,88.26000214,37.22380447);
   graph2->SetPoint(7,88.30000305,36.2859726);
   graph2->SetPoint(8,88.33999634,35.35555267);
   graph2->SetPoint(9,88.37999725,34.43272781);
   graph2->SetPoint(10,88.41999817,33.51767731);
   graph2->SetPoint(11,88.45999908,32.61057281);
   graph2->SetPoint(12,88.5,31.71160507);
   graph2->SetPoint(13,88.54000092,30.82094765);
   graph2->SetPoint(14,88.58000183,29.93878746);
   graph2->SetPoint(15,88.62000275,29.06530762);
   graph2->SetPoint(16,88.66000366,28.20069313);
   graph2->SetPoint(17,88.69999695,27.34512901);
   graph2->SetPoint(18,88.73999786,26.49880409);
   graph2->SetPoint(19,88.77999878,25.66190529);
   graph2->SetPoint(20,88.81999969,24.83462334);
   graph2->SetPoint(21,88.81999969,24.83462334);
   graph2->SetPoint(22,88.86000061,24.01715088);
   graph2->SetPoint(23,88.90000153,23.20967865);
   graph2->SetPoint(24,88.94000244,22.41239929);
   graph2->SetPoint(25,88.98000336,21.62551308);
   graph2->SetPoint(26,89.01999664,20.84921074);
   graph2->SetPoint(27,89.05999756,20.08369446);
   graph2->SetPoint(28,89.09999847,19.32916451);
   graph2->SetPoint(29,89.13999939,18.58581734);
   graph2->SetPoint(30,89.18000031,17.85385895);
   graph2->SetPoint(31,89.22000122,17.13349152);
   graph2->SetPoint(32,89.26000214,16.42491913);
   graph2->SetPoint(33,89.30000305,15.72835064);
   graph2->SetPoint(34,89.33999634,15.04399014);
   graph2->SetPoint(35,89.37999725,14.37204742);
   graph2->SetPoint(36,89.41999817,13.71273041);
   graph2->SetPoint(37,89.45999908,13.0662508);
   graph2->SetPoint(38,89.5,12.43281651);
   graph2->SetPoint(39,89.54000092,11.81264019);
   graph2->SetPoint(40,89.58000183,11.20593262);
   graph2->SetPoint(41,89.62000275,10.6129055);
   graph2->SetPoint(42,89.62000275,10.6129055);
   graph2->SetPoint(43,89.66000366,10.03376961);
   graph2->SetPoint(44,89.69999695,9.468736649);
   graph2->SetPoint(45,89.73999786,8.918016434);
   graph2->SetPoint(46,89.77999878,8.381820679);
   graph2->SetPoint(47,89.81999969,7.860357285);
   graph2->SetPoint(48,89.86000061,7.353835583);
   graph2->SetPoint(49,89.90000153,6.862462997);
   graph2->SetPoint(50,89.94000244,6.386445045);
   graph2->SetPoint(51,89.98000336,5.92598629);
   graph2->SetPoint(52,90.01999664,5.481288433);
   graph2->SetPoint(53,90.05999756,5.0525527);
   graph2->SetPoint(54,90.09999847,4.639976501);
   graph2->SetPoint(55,90.13999939,4.243755817);
   graph2->SetPoint(56,90.18000031,3.864083052);
   graph2->SetPoint(57,90.22000122,3.501147509);
   graph2->SetPoint(58,90.26000214,3.155135393);
   graph2->SetPoint(59,90.30000305,2.826228619);
   graph2->SetPoint(60,90.33999634,2.514605522);
   graph2->SetPoint(61,90.37999725,2.220438957);
   graph2->SetPoint(62,90.41999817,1.943897605);
   graph2->SetPoint(63,90.41999817,1.943897605);
   graph2->SetPoint(64,90.45999908,1.685144305);
   graph2->SetPoint(65,90.5,1.444335938);
   graph2->SetPoint(66,90.54000092,1.221622825);
   graph2->SetPoint(67,90.58000183,1.017148852);
   graph2->SetPoint(68,90.62000275,0.8310500383);
   graph2->SetPoint(69,90.66000366,0.663454473);
   graph2->SetPoint(70,90.69999695,0.5144816637);
   graph2->SetPoint(71,90.73999786,0.3842421472);
   graph2->SetPoint(72,90.77999878,0.2728365958);
   graph2->SetPoint(73,90.81999969,0.1803556085);
   graph2->SetPoint(74,90.86000061,0.1068789586);
   graph2->SetPoint(75,90.90000153,0.05247514695);
   graph2->SetPoint(76,90.94000244,0.01720083691);
   graph2->SetPoint(77,90.98000336,0.00110038009);
   graph2->SetPoint(78,90.9935379,0);
   graph2->SetPoint(79,90.9935379,0);
   graph2->SetPoint(80,90.9935379,0);
   graph2->SetPoint(81,90.9935379,0);
   graph2->SetPoint(82,90.9935379,0);
   graph2->SetPoint(83,90.9935379,0);
   graph2->SetPoint(84,90.9935379,0);
   graph2->SetPoint(85,91.01999664,0.004205350298);
   graph2->SetPoint(86,91.05999756,0.02653408609);
   graph2->SetPoint(87,91.09999847,0.06809128821);
   graph2->SetPoint(88,91.13999939,0.1288676411);
   graph2->SetPoint(89,91.18000031,0.208839491);
   graph2->SetPoint(90,91.22000122,0.3079685569);
   graph2->SetPoint(91,91.22000122,0.3079685569);
   graph2->SetPoint(92,91.26000214,0.4262017608);
   graph2->SetPoint(93,91.30000305,0.5634709001);
   graph2->SetPoint(94,91.33999634,0.7196927667);
   graph2->SetPoint(95,91.37999725,0.8947688341);
   graph2->SetPoint(96,91.41999817,1.088585615);
   graph2->SetPoint(97,91.45999908,1.301014304);
   graph2->SetPoint(98,91.5,1.531911612);
   graph2->SetPoint(99,91.54000092,1.781119347);
   graph2->SetPoint(100,91.58000183,2.048465252);
   graph2->SetPoint(101,91.62000275,2.333762884);
   graph2->SetPoint(102,91.66000366,2.636813402);
   graph2->SetPoint(103,91.69999695,2.957404137);
   graph2->SetPoint(104,91.73999786,3.295311213);
   graph2->SetPoint(105,91.77999878,3.650299788);
   graph2->SetPoint(106,91.81999969,4.022123814);
   graph2->SetPoint(107,91.86000061,4.410528183);
   graph2->SetPoint(108,91.90000153,4.815249443);
   graph2->SetPoint(109,91.94000244,5.23601675);
   graph2->SetPoint(110,91.98000336,5.672553062);
   graph2->SetPoint(111,92.01999664,6.124575138);
   graph2->SetPoint(112,92.01999664,6.124575138);
   graph2->SetPoint(113,92.05999756,6.591795921);
   graph2->SetPoint(114,92.09999847,7.073926449);
   graph2->SetPoint(115,92.13999939,7.570672989);
   graph2->SetPoint(116,92.18000031,8.08174324);
   graph2->SetPoint(117,92.22000122,8.606842995);
   graph2->SetPoint(118,92.26000214,9.145680428);
   graph2->SetPoint(119,92.30000305,9.697964668);
   graph2->SetPoint(120,92.33999634,10.26340675);
   graph2->SetPoint(121,92.37999725,10.84172058);
   graph2->SetPoint(122,92.41999817,11.43262482);
   graph2->SetPoint(123,92.45999908,12.03584099);
   graph2->SetPoint(124,92.5,12.65109539);
   graph2->SetPoint(125,92.54000092,13.27812099);
   graph2->SetPoint(126,92.58000183,13.91665268);
   graph2->SetPoint(127,92.62000275,14.56643105);
   graph2->SetPoint(128,92.66000366,15.22720337);
   graph2->SetPoint(129,92.69999695,15.89872169);
   graph2->SetPoint(130,92.73999786,16.58073997);
   graph2->SetPoint(131,92.77999878,17.2730217);
   graph2->SetPoint(132,92.81999969,17.97533035);
   graph2->SetPoint(133,92.81999969,17.97533035);
   graph2->SetPoint(134,92.86000061,18.68743896);
   graph2->SetPoint(135,92.90000153,19.40911865);
   graph2->SetPoint(136,92.94000244,20.14015007);
   graph2->SetPoint(137,92.98000336,20.88031387);
   graph2->SetPoint(138,93.01999664,21.62939453);
   graph2->SetPoint(139,93.05999756,22.38718414);
   graph2->SetPoint(140,93.09999847,23.15346909);
   graph2->SetPoint(141,93.13999939,23.92804527);
   graph2->SetPoint(142,93.18000031,24.71071243);
   graph2->SetPoint(143,93.22000122,25.50126266);
   graph2->SetPoint(144,93.26000214,26.29950333);
   graph2->SetPoint(145,93.30000305,27.10523224);
   graph2->SetPoint(146,93.33999634,27.91825485);
   graph2->SetPoint(147,93.37999725,28.73837852);
   graph2->SetPoint(148,93.41999817,29.56540871);
   graph2->SetPoint(149,93.45999908,30.39915657);
   graph2->SetPoint(150,93.5,31.23942947);
   graph2->SetPoint(151,93.54000092,32.0860405);
   graph2->SetPoint(152,93.58000183,32.93880081);
   graph2->SetPoint(153,93.62000275,33.79752731);
   graph2->SetPoint(154,93.62000275,33.79752731);
   graph2->SetPoint(155,93.66000366,34.66203308);
   graph2->SetPoint(156,93.69999695,35.53213501);
   graph2->SetPoint(157,93.73999786,36.40764999);
   graph2->SetPoint(158,93.77999878,37.28839874);
   graph2->SetPoint(159,93.81999969,38.17420197);
   graph2->SetPoint(160,93.86000061,39.06488037);
   graph2->SetPoint(161,93.90000153,39.96025848);
   graph2->SetPoint(162,93.94000244,40.86016464);
   graph2->SetPoint(163,93.98000336,41.76441956);
   graph2->SetPoint(164,94.01999664,42.67286301);
   graph2->SetPoint(165,94.05999756,43.5853157);
   graph2->SetPoint(166,94.09999847,44.50161362);
   graph2->SetPoint(167,94.13999939,45.42160034);
   graph2->SetPoint(168,94.18000031,46.34510422);
   graph2->SetPoint(169,94.22000122,47.27197266);
   graph2->SetPoint(170,94.26000214,48.20204544);
   graph2->SetPoint(171,94.30000305,49.13516998);
   graph2->SetPoint(172,94.33999634,50.07119751);
   graph2->SetPoint(173,94.37999725,51.00997925);
   graph2->SetPoint(174,94.41999817,51.95137024);
   graph2->SetPoint(175,94.41999817,51.95137024);
   graph2->SetPoint(176,94.45999908,52.89523315);
   graph2->SetPoint(177,94.5,53.84142303);
   graph2->SetPoint(178,94.54000092,54.789814);
   graph2->SetPoint(179,94.58000183,55.74026871);
   graph2->SetPoint(180,94.62000275,56.69266129);
   graph2->SetPoint(181,94.66000366,57.64687347);
   graph2->SetPoint(182,94.69999695,58.60277939);
   graph2->SetPoint(183,94.73999786,59.5602684);
   graph2->SetPoint(184,94.77999878,60.51922989);
   graph2->SetPoint(185,94.81999969,61.47954941);
   graph2->SetPoint(186,94.86000061,62.44112778);
   graph2->SetPoint(187,94.90000153,63.40386581);
   graph2->SetPoint(188,94.94000244,64.36766815);
   graph2->SetPoint(189,94.98000336,65.33243561);
   graph2->SetPoint(190,95.01999664,66.29808044);
   graph2->SetPoint(191,95.05999756,67.264534);
   graph2->SetPoint(192,95.09999847,68.23168945);
   graph2->SetPoint(193,95.13999939,69.19949341);
   graph2->SetPoint(194,95.18000031,70.16786194);
   graph2->SetPoint(195,95.22000122,71.13671875);
   graph2->SetPoint(196,95.22000122,71.13671875);
   graph2->SetPoint(197,95.26000214,72.10600281);
   graph2->SetPoint(198,95.30000305,73.07565308);
   graph2->SetPoint(199,95.33999634,74.04560852);
   graph2->SetPoint(200,95.37999725,75.01580811);
   graph2->SetPoint(201,95.41999817,75.98619843);
   graph2->SetPoint(202,95.45999908,76.95672607);
   graph2->SetPoint(203,95.5,77.92734528);
   graph2->SetPoint(204,95.54000092,78.89801788);
   graph2->SetPoint(205,95.58000183,79.86868286);
   graph2->SetPoint(206,95.62000275,80.83930969);
   graph2->SetPoint(207,95.66000366,81.80986023);
   graph2->SetPoint(208,95.69999695,82.7802887);
   graph2->SetPoint(209,95.73999786,83.7505722);
   graph2->SetPoint(210,95.77999878,84.72067261);
   graph2->SetPoint(211,95.81999969,85.69055176);
   graph2->SetPoint(212,95.86000061,86.6601944);
   graph2->SetPoint(213,95.90000153,87.62956238);
   graph2->SetPoint(214,95.94000244,88.59862518);
   graph2->SetPoint(215,95.98000336,89.56736755);



   cout<< "4mu: " << graph2->Eval(91.1876) << endl;


   //4l
   TGraph *graph3 = new TGraph(212);
   graph3->SetName("Graph3");
   graph3->SetTitle("Graph3");
   graph3->SetFillColor(1);
   graph3->SetLineWidth(3);
   graph3->SetMarkerStyle(20);
   graph3->SetPoint(0,88.01999664,57.33911514);
   graph3->SetPoint(1,88.05999756,56.08871841);
   graph3->SetPoint(2,88.09999847,54.84604263);
   graph3->SetPoint(3,88.13999939,53.61128998);
   graph3->SetPoint(4,88.18000031,52.38465881);
   graph3->SetPoint(5,88.22000122,51.1663475);
   graph3->SetPoint(6,88.26000214,49.95656586);
   graph3->SetPoint(7,88.30000305,48.75551605);
   graph3->SetPoint(8,88.33999634,47.56340408);
   graph3->SetPoint(9,88.37999725,46.38043976);
   graph3->SetPoint(10,88.41999817,45.20683289);
   graph3->SetPoint(11,88.45999908,44.04279709);
   graph3->SetPoint(12,88.5,42.88854218);
   graph3->SetPoint(13,88.54000092,41.74428558);
   graph3->SetPoint(14,88.58000183,40.61024094);
   graph3->SetPoint(15,88.62000275,39.48662186);
   graph3->SetPoint(16,88.66000366,38.37365723);
   graph3->SetPoint(17,88.69999695,37.27156067);
   graph3->SetPoint(18,88.73999786,36.18055725);
   graph3->SetPoint(19,88.77999878,35.10086823);
   graph3->SetPoint(20,88.81999969,34.03272247);
   graph3->SetPoint(21,88.81999969,34.03272247);
   graph3->SetPoint(22,88.86000061,32.97634506);
   graph3->SetPoint(23,88.90000153,31.93196487);
   graph3->SetPoint(24,88.94000244,30.89981461);
   graph3->SetPoint(25,88.98000336,29.88012505);
   graph3->SetPoint(26,89.01999664,28.87313271);
   graph3->SetPoint(27,89.05999756,27.87907028);
   graph3->SetPoint(28,89.09999847,26.8981781);
   graph3->SetPoint(29,89.13999939,25.93069649);
   graph3->SetPoint(30,89.18000031,24.97686577);
   graph3->SetPoint(31,89.22000122,24.03692818);
   graph3->SetPoint(32,89.26000214,23.11112785);
   graph3->SetPoint(33,89.30000305,22.19971466);
   graph3->SetPoint(34,89.33999634,21.30293083);
   graph3->SetPoint(35,89.37999725,20.42103004);
   graph3->SetPoint(36,89.41999817,19.55426025);
   graph3->SetPoint(37,89.45999908,18.70287132);
   graph3->SetPoint(38,89.5,17.86711502);
   graph3->SetPoint(39,89.54000092,17.04724693);
   graph3->SetPoint(40,89.58000183,16.24351692);
   graph3->SetPoint(41,89.62000275,15.45617962);
   graph3->SetPoint(42,89.62000275,15.45617962);
   graph3->SetPoint(43,89.66000366,14.6854887);
   graph3->SetPoint(44,89.69999695,13.93169785);
   graph3->SetPoint(45,89.73999786,13.19505882);
   graph3->SetPoint(46,89.77999878,12.47582531);
   graph3->SetPoint(47,89.81999969,11.77424908);
   graph3->SetPoint(48,89.86000061,11.09057903);
   graph3->SetPoint(49,89.90000153,10.4250679);
   graph3->SetPoint(50,89.94000244,9.777960777);
   graph3->SetPoint(51,89.98000336,9.149505615);
   graph3->SetPoint(52,90.01999664,8.539945602);
   graph3->SetPoint(53,90.05999756,7.949523926);
   graph3->SetPoint(54,90.09999847,7.378479958);
   graph3->SetPoint(55,90.13999939,6.827050209);
   graph3->SetPoint(56,90.18000031,6.295467854);
   graph3->SetPoint(57,90.22000122,5.783964634);
   graph3->SetPoint(58,90.26000214,5.292765617);
   graph3->SetPoint(59,90.30000305,4.82209301);
   graph3->SetPoint(60,90.33999634,4.37216568);
   graph3->SetPoint(61,90.37999725,3.943194866);
   graph3->SetPoint(62,90.41999817,3.535388231);
   graph3->SetPoint(63,90.41999817,3.535388231);
   graph3->SetPoint(64,90.45999908,3.148947239);
   graph3->SetPoint(65,90.5,2.784065962);
   graph3->SetPoint(66,90.54000092,2.440932035);
   graph3->SetPoint(67,90.58000183,2.119725466);
   graph3->SetPoint(68,90.62000275,1.820617914);
   graph3->SetPoint(69,90.66000366,1.543772101);
   graph3->SetPoint(70,90.69999695,1.28934145);
   graph3->SetPoint(71,90.73999786,1.057468891);
   graph3->SetPoint(72,90.77999878,0.8482871056);
   graph3->SetPoint(73,90.81999969,0.6619167924);
   graph3->SetPoint(74,90.86000061,0.4984668195);
   graph3->SetPoint(75,90.90000153,0.3580331504);
   graph3->SetPoint(76,90.94000244,0.240698427);
   graph3->SetPoint(77,90.98000336,0.1465311348);
   graph3->SetPoint(78,91.01999664,0.07558509707);
   graph3->SetPoint(79,91.05999756,0.02789884619);
   graph3->SetPoint(80,91.09999847,0.003495044075);
   graph3->SetPoint(81,91.12191772,0);
   graph3->SetPoint(82,91.12191772,0);
   graph3->SetPoint(83,91.12191772,0);
   graph3->SetPoint(84,91.12191772,0);
   graph3->SetPoint(85,91.12191772,0);
   graph3->SetPoint(86,91.12191772,0);
   graph3->SetPoint(87,91.12191772,0);
   graph3->SetPoint(88,91.26000214,0.1385737211);
   graph3->SetPoint(89,91.30000305,0.230332002);
   graph3->SetPoint(90,91.33999634,0.345148921);
   graph3->SetPoint(91,91.37999725,0.4829240143);
   graph3->SetPoint(92,91.41999817,0.643538177);
   graph3->SetPoint(93,91.45999908,0.8268537521);
   graph3->SetPoint(94,91.5,1.032714605);
   graph3->SetPoint(95,91.54000092,1.260946751);
   graph3->SetPoint(96,91.58000183,1.511358023);
   graph3->SetPoint(97,91.62000275,1.783738732);
   graph3->SetPoint(98,91.66000366,2.07786274);
   graph3->SetPoint(99,91.69999695,2.39348793);
   graph3->SetPoint(100,91.73999786,2.730356455);
   graph3->SetPoint(101,91.77999878,3.088196516);
   graph3->SetPoint(102,91.81999969,3.466723442);
   graph3->SetPoint(103,91.86000061,3.865639925);
   graph3->SetPoint(104,91.90000153,4.284637928);
   graph3->SetPoint(105,91.94000244,4.723400593);
   graph3->SetPoint(106,91.98000336,5.181601524);
   graph3->SetPoint(107,92.01999664,5.658910275);
   graph3->SetPoint(108,92.01999664,5.658910275);
   graph3->SetPoint(109,92.05999756,6.154988289);
   graph3->SetPoint(110,92.09999847,6.669495583);
   graph3->SetPoint(111,92.13999939,7.202087879);
   graph3->SetPoint(112,92.18000031,7.752422333);
   graph3->SetPoint(113,92.22000122,8.32015419);
   graph3->SetPoint(114,92.26000214,8.904941559);
   graph3->SetPoint(115,92.30000305,9.506444931);
   graph3->SetPoint(116,92.33999634,10.12432957);
   graph3->SetPoint(117,92.37999725,10.75826359);
   graph3->SetPoint(118,92.41999817,11.40792084);
   graph3->SetPoint(119,92.45999908,12.07298279);
   graph3->SetPoint(120,92.5,12.75313663);
   graph3->SetPoint(121,92.54000092,13.44807529);
   graph3->SetPoint(122,92.58000183,14.15750027);
   graph3->SetPoint(123,92.62000275,14.88112068);
   graph3->SetPoint(124,92.66000366,15.61865044);
   graph3->SetPoint(125,92.69999695,16.36981392);
   graph3->SetPoint(126,92.73999786,17.13433838);
   graph3->SetPoint(127,92.77999878,17.91196251);
   graph3->SetPoint(128,92.81999969,18.70242691);
   graph3->SetPoint(129,92.81999969,18.70242691);
   graph3->SetPoint(130,92.86000061,19.50548172);
   graph3->SetPoint(131,92.90000153,20.32088089);
   graph3->SetPoint(132,92.94000244,21.14838409);
   graph3->SetPoint(133,92.98000336,21.98775864);
   graph3->SetPoint(134,93.01999664,22.83877182);
   graph3->SetPoint(135,93.05999756,23.70119667);
   graph3->SetPoint(136,93.09999847,24.57481003);
   graph3->SetPoint(137,93.13999939,25.45939636);
   graph3->SetPoint(138,93.18000031,26.35473442);
   graph3->SetPoint(139,93.22000122,27.2606163);
   graph3->SetPoint(140,93.26000214,28.17682648);
   graph3->SetPoint(141,93.30000305,29.10315895);
   graph3->SetPoint(142,93.33999634,30.03940773);
   graph3->SetPoint(143,93.37999725,30.98536491);
   graph3->SetPoint(144,93.41999817,31.94083023);
   graph3->SetPoint(145,93.45999908,32.9056015);
   graph3->SetPoint(146,93.5,33.87947845);
   graph3->SetPoint(147,93.54000092,34.86225891);
   graph3->SetPoint(148,93.58000183,35.85375214);
   graph3->SetPoint(149,93.62000275,36.85375214);
   graph3->SetPoint(150,93.62000275,36.85375214);
   graph3->SetPoint(151,93.66000366,37.86207199);
   graph3->SetPoint(152,93.69999695,38.87851334);
   graph3->SetPoint(153,93.73999786,39.90288162);
   graph3->SetPoint(154,93.77999878,40.93498611);
   graph3->SetPoint(155,93.81999969,41.97463608);
   graph3->SetPoint(156,93.86000061,43.02164078);
   graph3->SetPoint(157,93.90000153,44.07581329);
   graph3->SetPoint(158,93.94000244,45.13696671);
   graph3->SetPoint(159,93.98000336,46.20491409);
   graph3->SetPoint(160,94.01999664,47.27947617);
   graph3->SetPoint(161,94.05999756,48.360466);
   graph3->SetPoint(162,94.09999847,49.44770813);
   graph3->SetPoint(163,94.13999939,50.54101944);
   graph3->SetPoint(164,94.18000031,51.64023209);
   graph3->SetPoint(165,94.22000122,52.74516296);
   graph3->SetPoint(166,94.26000214,53.85564804);
   graph3->SetPoint(167,94.30000305,54.97151947);
   graph3->SetPoint(168,94.33999634,56.09260941);
   graph3->SetPoint(169,94.37999725,57.21875763);
   graph3->SetPoint(170,94.41999817,58.34980011);
   graph3->SetPoint(171,94.41999817,58.34980011);
   graph3->SetPoint(172,94.45999908,59.48558426);
   graph3->SetPoint(173,94.5,60.62595749);
   graph3->SetPoint(174,94.54000092,61.77076721);
   graph3->SetPoint(175,94.58000183,62.91986847);
   graph3->SetPoint(176,94.62000275,64.07312012);
   graph3->SetPoint(177,94.66000366,65.2303772);
   graph3->SetPoint(178,94.69999695,66.39151001);
   graph3->SetPoint(179,94.73999786,67.55638123);
   graph3->SetPoint(180,94.77999878,68.72486877);
   graph3->SetPoint(181,94.81999969,69.89684296);
   graph3->SetPoint(182,94.86000061,71.07218933);
   graph3->SetPoint(183,94.90000153,72.25079346);
   graph3->SetPoint(184,94.94000244,73.43252563);
   graph3->SetPoint(185,94.98000336,74.61729431);
   graph3->SetPoint(186,95.01999664,75.80497742);
   graph3->SetPoint(187,95.05999756,76.99549103);
   graph3->SetPoint(188,95.09999847,78.18872833);
   graph3->SetPoint(189,95.13999939,79.38459015);
   graph3->SetPoint(190,95.18000031,80.58299255);
   graph3->SetPoint(191,95.22000122,81.78383636);
   graph3->SetPoint(192,95.22000122,81.78383636);
   graph3->SetPoint(193,95.26000214,82.98705292);
   graph3->SetPoint(194,95.30000305,84.19254303);
   graph3->SetPoint(195,95.33999634,85.40024567);
   graph3->SetPoint(196,95.37999725,86.61006927);
   graph3->SetPoint(197,95.41999817,87.82195282);
   graph3->SetPoint(198,95.45999908,89.03581238);
   graph3->SetPoint(199,95.5,90.25159454);
   graph3->SetPoint(200,95.54000092,91.46923065);
   graph3->SetPoint(201,95.58000183,92.68865204);
   graph3->SetPoint(202,95.62000275,93.90979767);
   graph3->SetPoint(203,95.66000366,95.13261414);
   graph3->SetPoint(204,95.69999695,96.35704803);
   graph3->SetPoint(205,95.73999786,97.58303833);
   graph3->SetPoint(206,95.77999878,98.81052399);
   graph3->SetPoint(207,95.81999969,100.0394745);
   graph3->SetPoint(208,95.86000061,101.2698212);
   graph3->SetPoint(209,95.90000153,102.5015259);
   graph3->SetPoint(210,95.94000244,103.7345352);
   graph3->SetPoint(211,95.98000336,104.9688034);



   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",212,84.03,95.97);
   Graph_Graph1->SetMinimum(0);
   Graph_Graph1->SetMaximum(57.47094);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);
   Graph_Graph1->SetLineStyle(0);
   Graph_Graph1->SetMarkerStyle(20);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetLabelOffset(0.01);
   Graph_Graph1->GetXaxis()->SetLabelSize(0.045);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.055);
   Graph_Graph1->GetXaxis()->SetTitleOffset(0.9);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelOffset(0.01);
   Graph_Graph1->GetYaxis()->SetLabelSize(0.045);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.055);
   Graph_Graph1->GetYaxis()->SetTitleOffset(1.25);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelOffset(0.01);
   Graph_Graph1->GetZaxis()->SetLabelSize(0.045);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.055);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   Graph_Graph1->GetXaxis()->SetNdivisions(510);
   
   graph->SetHistogram(Graph_Graph1);
   graph->Draw("cx");
   graph1->Draw("cx");
   graph2->Draw("cx");
   graph3->Draw("cx");

   TPaveText *pt = new TPaveText(0.1577181,0.95,0.9580537,0.99,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.03);
   TText *text = pt->AddText(0.01,0.5,"CMS");
   text = pt->AddText(0.3,0.6,"#sqrt{s} = 7 TeV, L = 5.1 fb^{-1}  #sqrt{s} = 8 TeV, L = 19.7 fb^{-1}");
   pt->Draw();
   

   TLegend *leg = new TLegend(0.73,0.77,0.94,0.94);
   leg->SetTextSize(0.035);
   leg->SetTextFont(42);
   leg->SetFillColor(kWhite);
   //leg->SetBorderSize(0);
   //leg->SetFillStyle(0);

   leg->AddEntry(graph3,"Combined","L");
   leg->AddEntry(graph,"Z#rightarrow 4e","L");
   leg->AddEntry(graph2,"Z#rightarrow 4#mu","L");
   leg->AddEntry(graph1,"Z#rightarrow 2e2#mu","L");






   double yLow = 0.5;

   

   pt = new TPaveText(0.11,yLow,0.4,yLow+0.04,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.03);
   pt->SetTextColor(kBlue);
   text = pt->AddText(0.2,0.2,"m_{2e2#mu} = 91.24 #pm 0.46 GeV");
   //text = pt->AddText(0.2,0.2,"m_{2e2#mu} = 91.24 #pm 0.40 #pm 0.16 GeV");
   //stat 91.4315 +0.405948-0.397679
   cout << "Syst 2e2mu: " << findSystErr(0.43,0.40) << endl;
   //pt->Draw();

   pt = new TPaveText(0.11,yLow+0.06,0.4,yLow+0.1,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.03);
   pt->SetTextColor(kRed);
   text = pt->AddText(0.2,0.2,"m_{4#mu} = 91.00 #pm 0.26 GeV");
   //text = pt->AddText(0.2,0.2,"m_{4#mu} = 91.00 #pm 0.25 #pm 0.09 GeV");
   //stat 91.0078 +0.255715-0.25533
   cout << "Syst 4mu: " << findSystErr(0.27,0.255) << endl;
   //pt->Draw();

   pt = new TPaveText(0.11,yLow+0.12,0.4,yLow+0.16,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.03);
   pt->SetTextColor(kGreen+1);
   text = pt->AddText(0.2,0.2,"m_{4e} = 93.67 #pm 1.08 GeV");
   //text = pt->AddText(0.2,0.2,"m_{4e} = 9 #pm 0.74 #pm 0.30 GeV");
   //stat 91.8026 +0.745333-0.740755
   cout << "Syst 4e: " << findSystErr(0.8,0.74) << endl;
   //pt->Draw();

   pt = new TPaveText(0.11,yLow+0.18,0.4,yLow+0.22,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.03);
   text = pt->AddText(0.2,0.2,"m_{4l} = 91.15 #pm 0.23 GeV");
   //text = pt->AddText(0.2,0.2,"m_{4l} = 91.17 #pm 0.18 #pm 0.13 GeV");
   //stat  91.1724 +0.168014-0.204439
   cout << "Syst 4l: " << findSystErr(0.22,0.18) << endl;
   //pt->Draw();

   pt = new TPaveText(0.18,yLow+0.24,0.4,yLow+0.28,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetTextAlign(12);
   pt->SetTextFont(42);
   pt->SetTextSize(0.035);
   text = pt->AddText(0.2,0.2,"#chi^{2}/ndof = 1.38/3");
   //pt->Draw();
   
   gPad->SetTicks(1,1);

   TLine *line95 = new TLine(88,3.84,96,3.84);
   line95->SetLineColor(kRed);
   line95->SetLineWidth(2);
   line95->Draw();

   TLine *line68 = new TLine(88,1,96,1);
   line68->SetLineColor(kRed);
   line68->SetLineWidth(3);
   line68->Draw();
   
   TLine *lineZ = new TLine(91.1876,0,91.1876,10);
   lineZ->SetLineColor(kGray+2);
   lineZ->SetLineStyle(7);
   lineZ->Draw();

   leg->Draw();
   hframe->GetXaxis()->SetRangeUser(88,96);
   ccc->Modified();
   ccc->cd();
   ccc->SetSelected(ccc);

   ccc->SaveAs("massZ4lScan_MZ2gt12_Legacy_split.eps");
   ccc->SaveAs("massZ4lScan_MZ2gt12_Legacy_split.png");
}
Ejemplo n.º 12
0
void mssm_limit_RHW_12p9_Final()
{
//=========Macro generated from canvas: c1/c1
//=========  (Wed Jul 27 09:42:19 2016) by ROOT version6.04/14
    //=========  (Wed Jul 27 09:41:49 2016) by ROOT version6.04/14
    TCanvas *c1 = new TCanvas("c1", "c1",0,45,600,600);
    gStyle->SetOptStat(0);
    c1->SetHighLightColor(2);
    c1->Range(0,0,1,1);
    c1->SetFillColor(0);
    c1->SetBorderMode(0);
    c1->SetBorderSize(2);
    c1->SetLeftMargin(0.12);
    c1->SetRightMargin(0.04);
    c1->SetTopMargin(0.06);
    c1->SetBottomMargin(0.12);
    c1->SetFrameFillStyle(0);
    c1->SetFrameLineWidth(2);
    c1->SetFrameBorderMode(0);
    
    // ------------>Primitives in pad: pad_leg
    TPad *pad_leg = new TPad("pad_leg", "pad_leg",0.4,0.65,0.9,0.9);
    pad_leg->Draw();
    pad_leg->cd();
    pad_leg->Range(0,0,1,1);
    pad_leg->SetFillColor(0);
    pad_leg->SetFillStyle(4000);
    pad_leg->SetBorderMode(0);
    pad_leg->SetBorderSize(2);
    pad_leg->SetLeftMargin(0.12);
    pad_leg->SetRightMargin(0.04);
    pad_leg->SetTopMargin(0.06);
    pad_leg->SetBottomMargin(0.12);
    pad_leg->SetFrameFillStyle(0);
    pad_leg->SetFrameLineWidth(2);
    pad_leg->SetFrameBorderMode(0);
    
    TLegend *leg = new TLegend(0.29,0.01,0.79,0.91,NULL,"NBNDC");
    leg->SetBorderSize(0);
    leg->SetTextFont(62);
    leg->SetTextSize(0.15);
    leg->SetLineColor(1);
    leg->SetLineStyle(1);
    leg->SetLineWidth(1);
    leg->SetFillColor(0);
    leg->SetFillStyle(1001);
    
    //    TLegendEntry *entry=leg->AddEntry("NULL","95% CL Excluded:","h");
    //   entry->SetLineColor(1);
    //   entry->SetLineStyle(1);
    //   entry->SetLineWidth(1);
    //   entry->SetMarkerColor(1);
    //   entry->SetMarkerStyle(21);
    //   entry->SetMarkerSize(1);
    //   entry->SetTextFont(62);
    
    TLegendEntry * entry=leg->AddEntry("Graph1","Theory (M_{Nu}=M_{W}/2)","L");
    entry->SetLineColor(4);
    entry->SetLineStyle(1);
    entry->SetLineWidth(3);
    entry->SetMarkerColor(4);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    
    entry=leg->AddEntry("Graph","Observed","L");
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(3);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    
    entry=leg->AddEntry("Graph","Expected","L");
    
    Int_t ci;      // for color index setting
    TColor *color; // for color definition with alpha
    
    ci = TColor::GetColor("#ff0000");
    entry->SetLineColor(ci);
    entry->SetLineStyle(1);
    entry->SetLineWidth(3);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    
    
    entry=leg->AddEntry("","#pm 1#sigma Expected","F");
    
    
    ci = TColor::GetColor("#00ff00");
    entry->SetFillColor(ci);
    entry->SetFillStyle(1001);
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    
    
    entry=leg->AddEntry("","#pm 2#sigma Expected","F");
    
    ci = TColor::GetColor("#fcf10f");
    entry->SetFillColor(ci);
    entry->SetFillStyle(1001);
    entry->SetLineColor(1);
    entry->SetLineStyle(1);
    entry->SetLineWidth(1);
    entry->SetMarkerColor(1);
    entry->SetMarkerStyle(21);
    entry->SetMarkerSize(1);
    entry->SetTextFont(62);
    leg->Draw();
    pad_leg->Modified();
    c1->cd();
    
    // ------------>Primitives in pad: pad_plot
    TPad *pad_plot = new TPad("pad_plot", "pad_plot",0,0,1,1);
    pad_plot->Draw();
    pad_plot->cd();
    pad_plot->Range(10.71429,-5.02439,1588.095,3.512195);
    pad_plot->SetFillColor(0);
    pad_plot->SetFillStyle(4000);
    pad_plot->SetBorderMode(0);
    pad_plot->SetBorderSize(2);
    pad_plot->SetLogy();
    pad_plot->SetGridx();
    pad_plot->SetGridy();
    pad_plot->SetLeftMargin(0.12);
    pad_plot->SetRightMargin(0.04);
    pad_plot->SetTopMargin(0.06);
    pad_plot->SetBottomMargin(0.12);
    pad_plot->SetFrameFillStyle(0);
    pad_plot->SetFrameLineWidth(2);
    pad_plot->SetFrameBorderMode(0);
    pad_plot->SetFrameFillStyle(0);
    pad_plot->SetFrameLineWidth(2);
    pad_plot->SetFrameBorderMode(0);

    
    
  
   
   TH1F *hist1d__1 = new TH1F("hist1d__1","",4,1000,4000);
   hist1d__1->SetMinimum(0.0001);
   hist1d__1->SetMaximum(10);
   hist1d__1->SetDirectory(0);
   hist1d__1->SetLineStyle(0);
   hist1d__1->SetMarkerStyle(20);
   hist1d__1->GetXaxis()->SetTitle("M_{W_{R}} [GeV]");
   hist1d__1->GetXaxis()->SetMoreLogLabels();
   hist1d__1->GetXaxis()->SetNoExponent();
   hist1d__1->GetXaxis()->SetNdivisions(50005);
   hist1d__1->GetXaxis()->SetLabelFont(42);
   hist1d__1->GetXaxis()->SetTitleSize(0.05);
   hist1d__1->GetXaxis()->SetTickLength(0.02);
   hist1d__1->GetXaxis()->SetTitleOffset(1.08);
   hist1d__1->GetXaxis()->SetTitleFont(42);
   hist1d__1->GetYaxis()->SetTitle("95% CL limit on #sigma#font[42]{}(pp#rightarrowW)#timesB(W#rightarrow#tau#taujj)[pb]");
   hist1d__1->GetYaxis()->SetNdivisions(506);
   hist1d__1->GetYaxis()->SetLabelFont(42);
   hist1d__1->GetYaxis()->SetLabelOffset(0.007);
   hist1d__1->GetYaxis()->SetTitleSize(0.045);
   hist1d__1->GetYaxis()->SetTickLength(0.02);
   hist1d__1->GetYaxis()->SetTitleOffset(1.08);
   hist1d__1->GetYaxis()->SetTitleFont(42);
   hist1d__1->GetZaxis()->SetNdivisions(506);
   hist1d__1->GetZaxis()->SetLabelFont(42);
   hist1d__1->GetZaxis()->SetLabelOffset(0.007);
   hist1d__1->GetZaxis()->SetTitleSize(0.05);
   hist1d__1->GetZaxis()->SetTickLength(0.02);
   hist1d__1->GetZaxis()->SetTitleFont(42);
   hist1d__1->Draw("");
   
    Double_t _fx3001[7] = {
        1000,
        1500,
        2000,
        2500,
        3000,
        3500,
        4000};
    Double_t _fy3001[7] = {
        0.1098728,
        0.01945496,
        0.007522583,
        0.003204346,
        0.001922607,
        0.001281738,
        0.0009155273};
    Double_t _felx3001[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fely3001[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fehx3001[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fehy3001[7] = {
        0.2584203,
        0.05385332,
        0.02205356,
        0.01286367,
        0.008620317,
        0.006632206,
        0.006158097};
    TGraphAsymmErrors *grae = new TGraphAsymmErrors(7,_fx3001,_fy3001,_felx3001,_fehx3001,_fely3001,_fehy3001);
    grae->SetName("");
    grae->SetTitle("");
    
    ci = TColor::GetColor("#fcf10f");
    grae->SetFillColor(ci);
    grae->SetMarkerStyle(20);
    
    TH1F *Graph_Graph_Graph13001 = new TH1F("Graph_Graph_Graph13001","",100,700,4300);
    Graph_Graph_Graph13001->SetMinimum(0.0008239746);
    Graph_Graph_Graph13001->SetMaximum(0.4050309);
    Graph_Graph_Graph13001->SetDirectory(0);
    Graph_Graph_Graph13001->SetStats(0);
    Graph_Graph_Graph13001->SetLineStyle(0);
    Graph_Graph_Graph13001->SetMarkerStyle(20);
    Graph_Graph_Graph13001->GetXaxis()->SetNdivisions(506);
    Graph_Graph_Graph13001->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph13001->GetXaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph13001->GetXaxis()->SetTickLength(0.02);
    Graph_Graph_Graph13001->GetXaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph13001->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph13001->GetYaxis()->SetNdivisions(506);
    Graph_Graph_Graph13001->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph13001->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph13001->GetYaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph13001->GetYaxis()->SetTickLength(0.02);
    Graph_Graph_Graph13001->GetYaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph13001->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph13001->GetZaxis()->SetNdivisions(506);
    Graph_Graph_Graph13001->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph13001->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph13001->GetZaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph13001->GetZaxis()->SetTickLength(0.02);
    Graph_Graph_Graph13001->GetZaxis()->SetTitleFont(42);
    grae->SetHistogram(Graph_Graph_Graph13001);
    
    grae->Draw("3");
    
    Double_t _fx3002[7] = {
        1000,
        1500,
        2000,
        2500,
        3000,
        3500,
        4000};
    Double_t _fy3002[7] = {
        0.1444494,
        0.02616048,
        0.009596825,
        0.004491806,
        0.002849579,
        0.002082825,
        0.001296997};
    Double_t _felx3002[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fely3002[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fehx3002[7] = {
        0,
        0,
        0,
        0,
        0,
        0,
        0};
    Double_t _fehy3002[7] = {
        0.1315547,
        0.02651767,
        0.01133649,
        0.006102214,
        0.00406737,
        0.002643064,
        0.003324276};
    grae = new TGraphAsymmErrors(7,_fx3002,_fy3002,_felx3002,_fehx3002,_fely3002,_fehy3002);
    grae->SetName("");
    grae->SetTitle("");
    
    ci = TColor::GetColor("#00ff00");
    grae->SetFillColor(ci);
    grae->SetMarkerStyle(20);
    
    TH1F *Graph_Graph_Graph23002 = new TH1F("Graph_Graph_Graph23002","",100,700,4300);
    Graph_Graph_Graph23002->SetMinimum(0.001167297);
    Graph_Graph_Graph23002->SetMaximum(0.3034748);
    Graph_Graph_Graph23002->SetDirectory(0);
    Graph_Graph_Graph23002->SetStats(0);
    Graph_Graph_Graph23002->SetLineStyle(0);
    Graph_Graph_Graph23002->SetMarkerStyle(20);
    Graph_Graph_Graph23002->GetXaxis()->SetNdivisions(506);
    Graph_Graph_Graph23002->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph23002->GetXaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph23002->GetXaxis()->SetTickLength(0.02);
    Graph_Graph_Graph23002->GetXaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph23002->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph23002->GetYaxis()->SetNdivisions(506);
    Graph_Graph_Graph23002->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph23002->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph23002->GetYaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph23002->GetYaxis()->SetTickLength(0.02);
    Graph_Graph_Graph23002->GetYaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph23002->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph23002->GetZaxis()->SetNdivisions(506);
    Graph_Graph_Graph23002->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph23002->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph23002->GetZaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph23002->GetZaxis()->SetTickLength(0.02);
    Graph_Graph_Graph23002->GetZaxis()->SetTitleFont(42);
    grae->SetHistogram(Graph_Graph_Graph23002);
    
    grae->Draw("3");
    
    Double_t Graph0_fx1[7] = {
        1000,
        1500,
        2000,
        2500,
        3000,
        3500,
        4000};
    Double_t Graph0_fy1[7] = {
        0.2001953,
        0.03662109,
        0.01416016,
        0.007324219,
        0.004394531,
        0.003417969,
        0.002441406};
    TGraph *graph = new TGraph(7,Graph0_fx1,Graph0_fy1);
    graph->SetName("Graph0");
    graph->SetTitle("Graph");
    graph->SetFillColor(1);
    
    ci = TColor::GetColor("#ff0000");
    graph->SetLineColor(ci);
    graph->SetLineWidth(3);
    
    TH1F *Graph_Graph_Graph11 = new TH1F("Graph_Graph_Graph11","Graph",100,700,4300);
    Graph_Graph_Graph11->SetMinimum(0.002197266);
    Graph_Graph_Graph11->SetMaximum(0.2199707);
    Graph_Graph_Graph11->SetDirectory(0);
    Graph_Graph_Graph11->SetStats(0);
    Graph_Graph_Graph11->SetLineStyle(0);
    Graph_Graph_Graph11->SetMarkerStyle(20);
    Graph_Graph_Graph11->GetXaxis()->SetNdivisions(506);
    Graph_Graph_Graph11->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetXaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph11->GetXaxis()->SetTickLength(0.02);
    Graph_Graph_Graph11->GetXaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph11->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph11->GetYaxis()->SetNdivisions(506);
    Graph_Graph_Graph11->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph11->GetYaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph11->GetYaxis()->SetTickLength(0.02);
    Graph_Graph_Graph11->GetYaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph11->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph11->GetZaxis()->SetNdivisions(506);
    Graph_Graph_Graph11->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph11->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph11->GetZaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph11->GetZaxis()->SetTickLength(0.02);
    Graph_Graph_Graph11->GetZaxis()->SetTitleFont(42);
    graph->SetHistogram(Graph_Graph_Graph11);
    
    graph->Draw("l");
    
    Double_t Graph1_fx2[7] = {
        1000,
        1500,
        2000,
        2500,
        3000,
        3500,
        4000};
    Double_t Graph1_fy2[7] = {
        0.2611428,
        0.02795093,
        0.01375811,
        0.007949162,
        0.00466821,
        0.003475476,
        0.002687559};
    graph = new TGraph(7,Graph1_fx2,Graph1_fy2);
    graph->SetName("Graph1");
    graph->SetTitle("Graph");
    graph->SetFillColor(1);
    graph->SetLineWidth(3);
    graph->SetMarkerStyle(20);
    
    TH1F *Graph_Graph_Graph22 = new TH1F("Graph_Graph_Graph22","Graph",100,700,4300);
    Graph_Graph_Graph22->SetMinimum(0.002418803);
    Graph_Graph_Graph22->SetMaximum(0.2869883);
    Graph_Graph_Graph22->SetDirectory(0);
    Graph_Graph_Graph22->SetStats(0);
    Graph_Graph_Graph22->SetLineStyle(0);
    Graph_Graph_Graph22->SetMarkerStyle(20);
    Graph_Graph_Graph22->GetXaxis()->SetNdivisions(506);
    Graph_Graph_Graph22->GetXaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetXaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph22->GetXaxis()->SetTickLength(0.02);
    Graph_Graph_Graph22->GetXaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph22->GetXaxis()->SetTitleFont(42);
    Graph_Graph_Graph22->GetYaxis()->SetNdivisions(506);
    Graph_Graph_Graph22->GetYaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetYaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph22->GetYaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph22->GetYaxis()->SetTickLength(0.02);
    Graph_Graph_Graph22->GetYaxis()->SetTitleOffset(1.08);
    Graph_Graph_Graph22->GetYaxis()->SetTitleFont(42);
    Graph_Graph_Graph22->GetZaxis()->SetNdivisions(506);
    Graph_Graph_Graph22->GetZaxis()->SetLabelFont(42);
    Graph_Graph_Graph22->GetZaxis()->SetLabelOffset(0.007);
    Graph_Graph_Graph22->GetZaxis()->SetTitleSize(0.05);
    Graph_Graph_Graph22->GetZaxis()->SetTickLength(0.02);
    Graph_Graph_Graph22->GetZaxis()->SetTitleFont(42);
    graph->SetHistogram(Graph_Graph_Graph22);
    
    graph->Draw("pl");
    
    
    
    const int nTH=7;
    
    Double_t mTh[nTH] = {1000,1500,2000,2500,3000,3500,4000};
    
    
    
    
//    Double_t xsTh[nTH] = {1.692E0,2.9E-1,6.563E-02,1.92E-02,6.030E-03,1.92E-03,6.030E-04};
    Double_t xsTh[nTH] = {1.692E0,2.9E-1,6.563E-02,1.92E-02,6.030E-03,0.00209,0.000801};
    
    
    
    TGraph *xsTh_vs_m = new TGraph(nTH, mTh, xsTh);
    
    xsTh_vs_m->SetLineWidth(2);
    
    xsTh_vs_m->SetLineColor(kBlue);
    
    xsTh_vs_m->SetFillColor(kCyan-6);
    
    xsTh_vs_m->SetMarkerSize(0.00001);
    
    xsTh_vs_m->SetMarkerStyle(22);
    
    xsTh_vs_m->SetMarkerColor(kBlue);
    
    
    //    TGraph *grshade = new TGraph(2*nTH,x_pdf,y_pdf);
    //
    //    grshade->SetFillColor(kCyan-6);
    //
    //    grshade->SetFillStyle(3001);
    
    
    xsTh_vs_m->Draw("L");
    
    //    grshade->Draw("f");
    
    
    
    tex = new TLatex(0.1578,0.9113,"");
    tex->SetNDC();
    tex->SetTextAlign(13);
    tex->SetTextSize(0.048);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.2,0.88,"CMS  ");
    tex->SetNDC();
    tex->SetTextAlign(12);
    tex->SetTextFont(61);
    tex->SetTextSize(0.06);
    tex->SetLineWidth(2);
    tex->Draw();
    tex = new TLatex(0.2,0.8," Preliminary ");
    tex->SetNDC();
    tex->SetTextAlign(12);
    tex->SetTextFont(52);
    tex->SetTextSize(0.055);
    tex->SetLineWidth(2);
    tex->Draw();
    
    tex = new TLatex(0.96,0.952,"12.9 fb^{-1} (13 TeV)");
    tex->SetNDC();
    tex->SetTextAlign(31);
    tex->SetTextFont(42);
    tex->SetTextSize(0.056);
    tex->SetLineWidth(2);
    tex->Draw();
   
    TH1F *hist1d__2 = new TH1F("hist1d__2","",3,2000,4000);
    hist1d__2->SetMinimum(0.0001);
    hist1d__2->SetMaximum(10);
    hist1d__2->SetDirectory(0);
    
    ptstats = new TPaveStats(0.78,0.775,0.98,0.935,"brNDC");
    ptstats->SetName("stats");
    ptstats->SetBorderSize(1);
    ptstats->SetFillColor(0);
    ptstats->SetTextAlign(12);
    ptstats->SetTextFont(42);
    AText = ptstats->AddText("hist1d");
    AText->SetTextSize(0.0368);
    //   AText = ptstats->AddText("Entries = 0      ");
    //   AText = ptstats->AddText("Mean  =      0");
    //   AText = ptstats->AddText("Std Dev   =      0");
    ptstats->SetOptStat(0);
    ptstats->SetOptFit(0);
    //   ptstats->Draw();
    hist1d__2->GetListOfFunctions()->Add(ptstats);
    ptstats->SetParent(hist1d__2);
    hist1d__2->SetLineStyle(0);
    hist1d__2->SetMarkerStyle(20);
    hist1d__2->GetXaxis()->SetTitle("M_{W_{R}} [GeV]");
    hist1d__2->GetXaxis()->SetMoreLogLabels();
    hist1d__2->GetXaxis()->SetNoExponent();
    hist1d__2->GetXaxis()->SetNdivisions(50005);
    hist1d__2->GetXaxis()->SetLabelFont(42);
    hist1d__2->GetXaxis()->SetTitleSize(0.05);
    hist1d__2->GetXaxis()->SetTickLength(0.02);
    hist1d__2->GetXaxis()->SetTitleOffset(1.08);
    hist1d__2->GetXaxis()->SetTitleFont(42);
    hist1d__2->GetYaxis()->SetTitle("95% CL limit on #sigma#font[42]{}(pp#rightarrowW)#timesB(W#rightarrow#tau#taujj)[pb]");
    hist1d__2->GetYaxis()->SetNdivisions(506);
    hist1d__2->GetYaxis()->SetLabelFont(42);
    hist1d__2->GetYaxis()->SetLabelOffset(0.007);
    hist1d__2->GetYaxis()->SetTitleSize(0.045);
    hist1d__2->GetYaxis()->SetTickLength(0.02);
    hist1d__2->GetYaxis()->SetTitleOffset(1.08);
    hist1d__2->GetYaxis()->SetTitleFont(42);
    hist1d__2->GetZaxis()->SetNdivisions(506);
    hist1d__2->GetZaxis()->SetLabelFont(42);
    hist1d__2->GetZaxis()->SetLabelOffset(0.007);
    hist1d__2->GetZaxis()->SetTitleSize(0.05);
    hist1d__2->GetZaxis()->SetTickLength(0.02);
    hist1d__2->GetZaxis()->SetTitleFont(42);
    hist1d__2->Draw("sameaxis");
    pad_plot->Modified();
    c1->cd();
    c1->Modified();
    c1->cd();
    c1->SetSelected(c1);
}
void fitLMC_c070116_LL1_floatlfixmusigma_nobkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Tue Jul  5 22:38:18 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_44e9780__1 = new TH1D("frame_44e9780__1","",100,4100,6100);
   frame_44e9780__1->SetBinContent(1,15.00557);
   frame_44e9780__1->SetMinimum(-8.8);
   frame_44e9780__1->SetMaximum(8.8);
   frame_44e9780__1->SetEntries(1);
   frame_44e9780__1->SetDirectory(0);
   frame_44e9780__1->SetStats(0);
   frame_44e9780__1->SetLineWidth(2);
   frame_44e9780__1->SetMarkerStyle(20);
   frame_44e9780__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_44e9780__1->GetXaxis()->SetNdivisions(505);
   frame_44e9780__1->GetXaxis()->SetLabelFont(132);
   frame_44e9780__1->GetXaxis()->SetLabelOffset(0.01);
   frame_44e9780__1->GetXaxis()->SetLabelSize(0.15);
   frame_44e9780__1->GetXaxis()->SetTitleSize(0.2);
   frame_44e9780__1->GetXaxis()->SetTitleOffset(1.1);
   frame_44e9780__1->GetXaxis()->SetTitleFont(132);
   frame_44e9780__1->GetYaxis()->SetTitle("Pull");
   frame_44e9780__1->GetYaxis()->CenterTitle(true);
   frame_44e9780__1->GetYaxis()->SetNdivisions(505);
   frame_44e9780__1->GetYaxis()->SetLabelFont(132);
   frame_44e9780__1->GetYaxis()->SetLabelOffset(0.01);
   frame_44e9780__1->GetYaxis()->SetLabelSize(0.15);
   frame_44e9780__1->GetYaxis()->SetTitleSize(0.15);
   frame_44e9780__1->GetYaxis()->SetTitleOffset(0.45);
   frame_44e9780__1->GetYaxis()->SetTitleFont(132);
   frame_44e9780__1->GetZaxis()->SetLabelFont(132);
   frame_44e9780__1->GetZaxis()->SetLabelSize(0.06);
   frame_44e9780__1->GetZaxis()->SetTitleSize(0.072);
   frame_44e9780__1->GetZaxis()->SetTitleOffset(1.2);
   frame_44e9780__1->GetZaxis()->SetTitleFont(132);
   frame_44e9780__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[87] = {
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030};
   Double_t pull_Hist_curvetot_fy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0.8702566,
   1.599844,
   0.3770175,
   13.12767,
   13.02552,
   -2.430346,
   -1.55089,
   -1.397439,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_felx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(87,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,4138,6202);
   Graph_pull_Hist_curvetot3001->SetMinimum(-5.186148);
   Graph_pull_Hist_curvetot3001->SetMaximum(15.88347);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_44e9780__2 = new TH1D("frame_44e9780__2","",100,4100,6100);
   frame_44e9780__2->SetBinContent(1,15.00557);
   frame_44e9780__2->SetMinimum(-8.8);
   frame_44e9780__2->SetMaximum(8.8);
   frame_44e9780__2->SetEntries(1);
   frame_44e9780__2->SetDirectory(0);
   frame_44e9780__2->SetStats(0);
   frame_44e9780__2->SetLineWidth(2);
   frame_44e9780__2->SetMarkerStyle(20);
   frame_44e9780__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_44e9780__2->GetXaxis()->SetNdivisions(505);
   frame_44e9780__2->GetXaxis()->SetLabelFont(132);
   frame_44e9780__2->GetXaxis()->SetLabelOffset(0.01);
   frame_44e9780__2->GetXaxis()->SetLabelSize(0.15);
   frame_44e9780__2->GetXaxis()->SetTitleSize(0.2);
   frame_44e9780__2->GetXaxis()->SetTitleOffset(1.1);
   frame_44e9780__2->GetXaxis()->SetTitleFont(132);
   frame_44e9780__2->GetYaxis()->SetTitle("Pull");
   frame_44e9780__2->GetYaxis()->CenterTitle(true);
   frame_44e9780__2->GetYaxis()->SetNdivisions(505);
   frame_44e9780__2->GetYaxis()->SetLabelFont(132);
   frame_44e9780__2->GetYaxis()->SetLabelOffset(0.01);
   frame_44e9780__2->GetYaxis()->SetLabelSize(0.15);
   frame_44e9780__2->GetYaxis()->SetTitleSize(0.15);
   frame_44e9780__2->GetYaxis()->SetTitleOffset(0.45);
   frame_44e9780__2->GetYaxis()->SetTitleFont(132);
   frame_44e9780__2->GetZaxis()->SetLabelFont(132);
   frame_44e9780__2->GetZaxis()->SetLabelSize(0.06);
   frame_44e9780__2->GetZaxis()->SetTitleSize(0.072);
   frame_44e9780__2->GetZaxis()->SetTitleOffset(1.2);
   frame_44e9780__2->GetZaxis()->SetTitleFont(132);
   frame_44e9780__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(3754.321,0,6223.457,4.122406);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4380460__3 = new TH1D("frame_4380460__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4380460__3->SetBinContent(1,3718.624);
   frame_4380460__3->SetMinimum(1);
   frame_4380460__3->SetMaximum(7500);
   frame_4380460__3->SetEntries(2);
   frame_4380460__3->SetDirectory(0);
   frame_4380460__3->SetStats(0);
   frame_4380460__3->SetLineWidth(2);
   frame_4380460__3->SetMarkerStyle(20);
   frame_4380460__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4380460__3->GetXaxis()->SetNdivisions(505);
   frame_4380460__3->GetXaxis()->SetLabelFont(132);
   frame_4380460__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4380460__3->GetXaxis()->SetLabelSize(0.06);
   frame_4380460__3->GetXaxis()->SetTitleSize(0.072);
   frame_4380460__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4380460__3->GetXaxis()->SetTitleFont(132);
   frame_4380460__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4380460__3->GetYaxis()->SetLabelFont(132);
   frame_4380460__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4380460__3->GetYaxis()->SetLabelSize(0.06);
   frame_4380460__3->GetYaxis()->SetTitleSize(0.072);
   frame_4380460__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4380460__3->GetYaxis()->SetTitleFont(132);
   frame_4380460__3->GetZaxis()->SetLabelFont(132);
   frame_4380460__3->GetZaxis()->SetLabelSize(0.06);
   frame_4380460__3->GetZaxis()->SetTitleSize(0.072);
   frame_4380460__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4380460__3->GetZaxis()->SetTitleFont(132);
   frame_4380460__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   5,
   30,
   1308,
   1283,
   36,
   7,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300);
   Graph_Hist3002->SetMinimum(1.478583);
   Graph_Hist3002->SetMaximum(1478.583);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5648.5,
   5652.85,
   5657.2,
   5665.9,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t curvetot_fy1[128] = {
   1.318037e-20,
   1.697329e-20,
   2.192681e-20,
   2.841782e-20,
   3.695286e-20,
   4.821525e-20,
   6.313046e-20,
   8.29568e-20,
   1.094122e-19,
   1.448517e-19,
   1.925181e-19,
   2.568959e-19,
   3.44215e-19,
   4.631709e-19,
   6.259584e-19,
   8.497653e-19,
   1.158939e-18,
   1.588153e-18,
   2.187048e-18,
   3.027099e-18,
   4.211801e-18,
   5.891915e-18,
   8.288401e-18,
   1.172715e-17,
   1.6692e-17,
   2.390612e-17,
   3.445801e-17,
   4.999802e-17,
   7.304715e-17,
   1.074866e-16,
   1.5934e-16,
   2.38035e-16,
   3.584559e-16,
   5.443165e-16,
   8.337551e-16,
   1.288715e-15,
   2.010839e-15,
   3.168703e-15,
   5.045031e-15,
   8.119553e-15,
   1.321627e-14,
   2.176873e-14,
   3.630456e-14,
   6.134368e-14,
   1.05089e-13,
   1.826608e-13,
   3.223916e-13,
   5.782969e-13,
   1.055259e-12,
   1.960913e-12,
   3.714837e-12,
   7.183609e-12,
   1.419907e-11,
   2.873063e-11,
   5.961044e-11,
   1.27056e-10,
   2.78779e-10,
   6.311323e-10,
   1.478102e-09,
   3.591593e-09,
   9.084823e-09,
   2.4013e-08,
   6.661593e-08,
   1.949445e-07,
   6.053539e-07,
   2.008574e-06,
   7.17998e-06,
   2.792565e-05,
   0.0001195993,
   0.0005723917,
   0.003118011,
   0.01978896,
   0.1508305,
   1.437428,
   4.905535,
   18.10213,
   35.92419,
   51.05403,
   73.00192,
   105.0495,
   152.1629,
   221.9135,
   325.934,
   482.2409,
   720.4907,
   1097.703,
   1678.639,
   2471.271,
   3257.573,
   3541.546,
   3077.86,
   2249.355,
   1504.05,
   981.6712,
   647.364,
   437.5418,
   304.3293,
   217.7367,
   159.8985,
   120.2075,
   92.26923,
   57.33169,
   37.75782,
   26.04724,
   13.78295,
   8.096796,
   3.441144,
   1.753948,
   1.006317,
   0.6274052,
   0.415992,
   0.2891995,
   0.2087556,
   0.1553637,
   0.118593,
   0.0924765,
   0.07343641,
   0.05924083,
   0.04844944,
   0.04010506,
   0.03355513,
   0.02834456,
   0.02414957,
   0.02073562,
   0.01793004,
   0.01560389,
   0.01365953,
   0.01365953};
   TGraph *graph = new TGraph(128,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",128,4126,6214);
   Graph_curvetot1->SetMinimum(1.186233e-20);
   Graph_curvetot1->SetMaximum(3895.701);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t sigL_fx2[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5648.5,
   5652.85,
   5657.2,
   5665.9,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t sigL_fy2[128] = {
   1.318037e-20,
   1.697329e-20,
   2.192681e-20,
   2.841782e-20,
   3.695286e-20,
   4.821525e-20,
   6.313046e-20,
   8.29568e-20,
   1.094122e-19,
   1.448517e-19,
   1.925181e-19,
   2.568959e-19,
   3.44215e-19,
   4.631709e-19,
   6.259584e-19,
   8.497653e-19,
   1.158939e-18,
   1.588153e-18,
   2.187048e-18,
   3.027099e-18,
   4.211801e-18,
   5.891915e-18,
   8.288401e-18,
   1.172715e-17,
   1.6692e-17,
   2.390612e-17,
   3.445801e-17,
   4.999802e-17,
   7.304715e-17,
   1.074866e-16,
   1.5934e-16,
   2.38035e-16,
   3.584559e-16,
   5.443165e-16,
   8.337551e-16,
   1.288715e-15,
   2.010839e-15,
   3.168703e-15,
   5.045031e-15,
   8.119553e-15,
   1.321627e-14,
   2.176873e-14,
   3.630456e-14,
   6.134368e-14,
   1.05089e-13,
   1.826608e-13,
   3.223916e-13,
   5.782969e-13,
   1.055259e-12,
   1.960913e-12,
   3.714837e-12,
   7.183609e-12,
   1.419907e-11,
   2.873063e-11,
   5.961044e-11,
   1.27056e-10,
   2.78779e-10,
   6.311323e-10,
   1.478102e-09,
   3.591593e-09,
   9.084823e-09,
   2.4013e-08,
   6.661593e-08,
   1.949445e-07,
   6.053539e-07,
   2.008574e-06,
   7.17998e-06,
   2.792565e-05,
   0.0001195993,
   0.0005723917,
   0.003118011,
   0.01978896,
   0.1508305,
   1.437428,
   4.905535,
   18.10213,
   35.92419,
   51.05403,
   73.00192,
   105.0495,
   152.1629,
   221.9135,
   325.934,
   482.2409,
   720.4907,
   1097.703,
   1678.639,
   2471.271,
   3257.573,
   3541.546,
   3077.86,
   2249.355,
   1504.05,
   981.6712,
   647.364,
   437.5418,
   304.3293,
   217.7367,
   159.8985,
   120.2075,
   92.26923,
   57.33169,
   37.75782,
   26.04724,
   13.78295,
   8.096796,
   3.441144,
   1.753948,
   1.006317,
   0.6274052,
   0.415992,
   0.2891995,
   0.2087556,
   0.1553637,
   0.118593,
   0.0924765,
   0.07343641,
   0.05924083,
   0.04844944,
   0.04010506,
   0.03355513,
   0.02834456,
   0.02414957,
   0.02073562,
   0.01793004,
   0.01560389,
   0.01365953,
   0.01365953};
   graph = new TGraph(128,sigL_fx2,sigL_fy2);
   graph->SetName("sigL");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigL2 = new TH1F("Graph_sigL2","Projection of totalPdf",128,4126,6214);
   Graph_sigL2->SetMinimum(1.186233e-20);
   Graph_sigL2->SetMaximum(3895.701);
   Graph_sigL2->SetDirectory(0);
   Graph_sigL2->SetStats(0);
   Graph_sigL2->SetLineWidth(2);
   Graph_sigL2->SetMarkerStyle(20);
   Graph_sigL2->GetXaxis()->SetNdivisions(505);
   Graph_sigL2->GetXaxis()->SetLabelFont(132);
   Graph_sigL2->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetXaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetXaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetXaxis()->SetTitleFont(132);
   Graph_sigL2->GetYaxis()->SetLabelFont(132);
   Graph_sigL2->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetYaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetYaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetYaxis()->SetTitleFont(132);
   Graph_sigL2->GetZaxis()->SetLabelFont(132);
   Graph_sigL2->GetZaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetZaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigL2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigL2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigL","#Lambda signal (hypatia)","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4380460__4 = new TH1D("frame_4380460__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4380460__4->SetBinContent(1,3718.624);
   frame_4380460__4->SetMinimum(1);
   frame_4380460__4->SetMaximum(7500);
   frame_4380460__4->SetEntries(2);
   frame_4380460__4->SetDirectory(0);
   frame_4380460__4->SetStats(0);
   frame_4380460__4->SetLineWidth(2);
   frame_4380460__4->SetMarkerStyle(20);
   frame_4380460__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4380460__4->GetXaxis()->SetNdivisions(505);
   frame_4380460__4->GetXaxis()->SetLabelFont(132);
   frame_4380460__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4380460__4->GetXaxis()->SetLabelSize(0.06);
   frame_4380460__4->GetXaxis()->SetTitleSize(0.072);
   frame_4380460__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4380460__4->GetXaxis()->SetTitleFont(132);
   frame_4380460__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4380460__4->GetYaxis()->SetLabelFont(132);
   frame_4380460__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4380460__4->GetYaxis()->SetLabelSize(0.06);
   frame_4380460__4->GetYaxis()->SetTitleSize(0.072);
   frame_4380460__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4380460__4->GetYaxis()->SetTitleFont(132);
   frame_4380460__4->GetZaxis()->SetLabelFont(132);
   frame_4380460__4->GetZaxis()->SetLabelSize(0.06);
   frame_4380460__4->GetZaxis()->SetTitleSize(0.072);
   frame_4380460__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4380460__4->GetZaxis()->SetTitleFont(132);
   frame_4380460__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 14
0
void wmj_fit_stack()
{
//=========Macro generated from canvas: default_Canvas/defaultCanvas
//=========  (Tue May  3 07:35:30 2016) by ROOT version6.04/10
   TCanvas *default_Canvas = new TCanvas("default_Canvas", "defaultCanvas",0,0,700,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   default_Canvas->SetHighLightColor(2);
   default_Canvas->Range(0,0,1,1);
   default_Canvas->SetFillColor(0);
   default_Canvas->SetBorderMode(0);
   default_Canvas->SetBorderSize(2);
   default_Canvas->SetTickx(1);
   default_Canvas->SetTicky(1);
   default_Canvas->SetLeftMargin(0.14);
   default_Canvas->SetRightMargin(0.05);
   default_Canvas->SetTopMargin(0.05);
   default_Canvas->SetBottomMargin(0.16);
   default_Canvas->SetFrameLineWidth(2);
   default_Canvas->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: upperPad
   TPad *upperPad = new TPad("upperPad", "upperPad",0.005,0.05,0.995,0.995);
   upperPad->Draw();
   upperPad->cd();
   upperPad->Range(-0.1730123,-5358.989,1.06279,32919.5);
   upperPad->SetFillColor(0);
   upperPad->SetFillStyle(4000);
   upperPad->SetBorderMode(0);
   upperPad->SetBorderSize(2);
   upperPad->SetTickx(1);
   upperPad->SetTicky(1);
   upperPad->SetLeftMargin(0.14);
   upperPad->SetRightMargin(0.05);
   upperPad->SetTopMargin(0.05);
   upperPad->SetBottomMargin(0.14);
   upperPad->SetFrameLineWidth(2);
   upperPad->SetFrameBorderMode(0);
   upperPad->SetFrameLineWidth(2);
   upperPad->SetFrameBorderMode(0);
   
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fx3005[20] = {
   0.025,
   0.075,
   0.125,
   0.175,
   0.225,
   0.275,
   0.325,
   0.375,
   0.425,
   0.475,
   0.525,
   0.575,
   0.625,
   0.675,
   0.725,
   0.775,
   0.825,
   0.875,
   0.925,
   0.975};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fy3005[20] = {
   0,
   0,
   9,
   26,
   118,
   315,
   881,
   1812,
   3086,
   4575,
   5856,
   6537,
   6824,
   6348,
   5662,
   4769,
   4941,
   6726,
   13179,
   28019};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_felx3005[20] = {
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fely3005[20] = {
   0,
   0,
   2.943461,
   5.066015,
   10.37428,
   17.25528,
   29.18586,
   42.07053,
   55.05403,
   67.14059,
   76.02614,
   80.35326,
   82.10902,
   79.17591,
   74.74792,
   68.55976,
   69.79403,
   81.51372,
   114.3009,
   166.8895};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehx3005[20] = {
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehy3005[20] = {
   1.147874,
   1.147874,
   4.110204,
   6.164324,
   11.37428,
   18.25528,
   30.18586,
   43.07053,
   56.05403,
   68.14059,
   77.02614,
   81.35326,
   83.10902,
   80.17591,
   75.74792,
   69.55976,
   70.79403,
   82.51372,
   115.3009,
   167.8895};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(20,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fx3005,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fy3005,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_felx3005,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehx3005,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fely3005,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehy3005);
   grae->SetName("h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]");
   grae->SetTitle("Histogram of combData_plot__muminus_ISO_");
   grae->SetFillColor(1);
   grae->SetFillStyle(0);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005 = new TH1F("Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005","Histogram of combData_plot__muminus_ISO_",100,0,1.1);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetMinimum(0);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetMaximum(31005.58);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetDirectory(0);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetStats(0);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetLineWidth(2);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->SetMarkerStyle(0);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetRange(1,91);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetNdivisions(1005);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetLabelOffset(0.02);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetXaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetYaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetZaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]56300130023005);
   
   grae->Draw("e1pa");
   
   Double_t h5_fx7[47] = {
   -0.02439024,
   -0.02439024,
   0,
   1.0201e-08,
   0.04999999,
   0.05000001,
   0.09999999,
   0.1,
   0.15,
   0.15,
   0.2,
   0.2,
   0.25,
   0.25,
   0.3,
   0.3,
   0.35,
   0.35,
   0.4,
   0.4,
   0.45,
   0.45,
   0.5,
   0.5,
   0.55,
   0.55,
   0.6,
   0.6,
   0.65,
   0.65,
   0.7,
   0.7,
   0.75,
   0.75,
   0.8,
   0.8,
   0.85,
   0.85,
   0.9,
   0.9,
   0.95,
   0.95,
   1,
   1,
   1,
   1.02439,
   1.02439};
   Double_t h5_fy7[47] = {
   0,
   0,
   0,
   8.630173e-06,
   8.630173e-06,
   8.630173e-06,
   8.630173e-06,
   8.630173e-06,
   8.630173e-06,
   3.789762,
   3.789762,
   71.12063,
   71.12063,
   211.4394,
   211.4394,
   857.7007,
   857.7007,
   1798.534,
   1798.534,
   3099.609,
   3099.609,
   4425.901,
   4425.901,
   5601.584,
   5601.584,
   6533.687,
   6533.687,
   6910.208,
   6910.208,
   6392.171,
   6392.171,
   5777.193,
   5777.193,
   5020.919,
   5020.919,
   5207.834,
   5207.834,
   6798.159,
   6798.159,
   13033.98,
   13033.98,
   27939.27,
   27939.27,
   0,
   0,
   0,
   0};
   TGraph *graph = new TGraph(47,h5_fx7,h5_fy7);
   graph->SetName("h5");
   graph->SetTitle("Projection of ");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#3333ff");
   graph->SetFillColor(ci);

   ci = TColor::GetColor("#3333ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(2);

   ci = TColor::GetColor("#3333ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(0);
   
   TH1F *Graph_h57 = new TH1F("Graph_h57","Projection of ",100,-0.1292683,1.129268);
   Graph_h57->SetMinimum(0);
   Graph_h57->SetMaximum(30733.2);
   Graph_h57->SetDirectory(0);
   Graph_h57->SetStats(0);
   Graph_h57->SetLineWidth(2);
   Graph_h57->SetMarkerStyle(0);
   Graph_h57->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_h57->GetXaxis()->SetRange(11,90);
   Graph_h57->GetXaxis()->SetNdivisions(1005);
   Graph_h57->GetXaxis()->SetLabelFont(132);
   Graph_h57->GetXaxis()->SetLabelOffset(0.02);
   Graph_h57->GetXaxis()->SetLabelSize(0.05);
   Graph_h57->GetXaxis()->SetTitleSize(0.06);
   Graph_h57->GetXaxis()->SetTitleFont(132);
   Graph_h57->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_h57->GetYaxis()->SetLabelFont(132);
   Graph_h57->GetYaxis()->SetLabelSize(0.05);
   Graph_h57->GetYaxis()->SetTitleSize(0.06);
   Graph_h57->GetYaxis()->SetTitleFont(132);
   Graph_h57->GetZaxis()->SetLabelFont(132);
   Graph_h57->GetZaxis()->SetLabelSize(0.05);
   Graph_h57->GetZaxis()->SetTitleSize(0.06);
   Graph_h57->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_h57);
   
   graph->Draw("f");
   
   Double_t sumBkgPdf_totbkg_fitW_fx8[47] = {
   -0.02439024,
   -0.02439024,
   0,
   1.0201e-08,
   0.04999999,
   0.05000001,
   0.09999999,
   0.1,
   0.15,
   0.15,
   0.2,
   0.2,
   0.25,
   0.25,
   0.3,
   0.3,
   0.35,
   0.35,
   0.4,
   0.4,
   0.45,
   0.45,
   0.5,
   0.5,
   0.55,
   0.55,
   0.6,
   0.6,
   0.65,
   0.65,
   0.7,
   0.7,
   0.75,
   0.75,
   0.8,
   0.8,
   0.85,
   0.85,
   0.9,
   0.9,
   0.95,
   0.95,
   1,
   1,
   1,
   1.02439,
   1.02439};
   Double_t sumBkgPdf_totbkg_fitW_fy8[47] = {
   0,
   0,
   0,
   2.878569e-06,
   2.878569e-06,
   2.878569e-06,
   2.878569e-06,
   2.878569e-06,
   2.878569e-06,
   3.789757,
   3.789757,
   71.12063,
   71.12063,
   211.4394,
   211.4394,
   855.0132,
   855.0132,
   1794.513,
   1794.513,
   3088.88,
   3088.88,
   4399.772,
   4399.772,
   5568.272,
   5568.272,
   6460.972,
   6460.972,
   6790.725,
   6790.725,
   6142.168,
   6142.168,
   5333.208,
   5333.208,
   4062.953,
   4062.953,
   3103.771,
   3103.771,
   2394.858,
   2394.858,
   1734.507,
   1734.507,
   1650.883,
   1650.883,
   0,
   0,
   0,
   0};
   graph = new TGraph(47,sumBkgPdf_totbkg_fitW_fx8,sumBkgPdf_totbkg_fitW_fy8);
   graph->SetName("sumBkgPdf_totbkg_fitW");
   graph->SetTitle("Projection of ");

   ci = TColor::GetColor("#ffff66");
   graph->SetFillColor(ci);

   ci = TColor::GetColor("#ffff66");
   graph->SetLineColor(ci);
   graph->SetLineWidth(2);

   ci = TColor::GetColor("#ffff66");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(0);
   
   TH1F *Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618 = new TH1F("Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618","Projection of ",100,-0.1292683,1.129268);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetMinimum(0);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetMaximum(7469.797);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetDirectory(0);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetStats(0);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetLineWidth(2);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->SetMarkerStyle(0);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetRange(11,90);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetNdivisions(1005);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetLabelOffset(0.02);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetXaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetYaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetYaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetZaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_Graph_Graph_Graph_sumBkgPdf_totbkg_fitW131618);
   
   graph->Draw("f");
   
   Double_t sumPdf_Norm[muminus_ISO_]_fx9[47] = {
   -0.02439024,
   -0.02439024,
   0,
   1.0201e-08,
   0.04999999,
   0.05000001,
   0.09999999,
   0.1,
   0.15,
   0.15,
   0.2,
   0.2,
   0.25,
   0.25,
   0.3,
   0.3,
   0.35,
   0.35,
   0.4,
   0.4,
   0.45,
   0.45,
   0.5,
   0.5,
   0.55,
   0.55,
   0.6,
   0.6,
   0.65,
   0.65,
   0.7,
   0.7,
   0.75,
   0.75,
   0.8,
   0.8,
   0.85,
   0.85,
   0.9,
   0.9,
   0.95,
   0.95,
   1,
   1,
   1,
   1.02439,
   1.02439};
   Double_t sumPdf_Norm[muminus_ISO_]_fy9[47] = {
   0,
   0,
   0,
   8.630165e-06,
   8.630165e-06,
   8.630165e-06,
   8.630165e-06,
   8.630165e-06,
   8.630165e-06,
   3.789756,
   3.789756,
   71.12054,
   71.12054,
   211.4391,
   211.4391,
   857.6998,
   857.6998,
   1798.532,
   1798.532,
   3099.606,
   3099.606,
   4425.897,
   4425.897,
   5601.578,
   5601.578,
   6533.68,
   6533.68,
   6910.201,
   6910.201,
   6392.164,
   6392.164,
   5777.187,
   5777.187,
   5020.914,
   5020.914,
   5207.829,
   5207.829,
   6798.152,
   6798.152,
   13033.97,
   13033.97,
   27939.24,
   27939.24,
   0,
   0,
   0,
   0};
   graph = new TGraph(47,sumPdf_Norm[muminus_ISO_]_fx9,sumPdf_Norm[muminus_ISO_]_fy9);
   graph->SetName("sumPdf_Norm[muminus_ISO_]");
   graph->SetTitle("Projection of ");

   ci = TColor::GetColor("#ff0000");
   graph->SetFillColor(ci);
   graph->SetFillStyle(0);

   ci = TColor::GetColor("#ff0000");
   graph->SetLineColor(ci);
   graph->SetLineWidth(2);

   ci = TColor::GetColor("#ff0000");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(0);
   
   TH1F *Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839 = new TH1F("Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839","Projection of ",100,-0.1292683,1.129268);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetMinimum(0);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetMaximum(30733.17);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetDirectory(0);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetStats(0);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetLineWidth(2);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->SetMarkerStyle(0);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetRange(11,90);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetNdivisions(1005);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetLabelOffset(0.02);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetXaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetYaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetYaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetZaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_Graph_Graph_Graph_sumPdf_Norm[muminus_ISO_]151839);
   
   graph->Draw("");
   
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fx3006[20] = {
   0.025,
   0.075,
   0.125,
   0.175,
   0.225,
   0.275,
   0.325,
   0.375,
   0.425,
   0.475,
   0.525,
   0.575,
   0.625,
   0.675,
   0.725,
   0.775,
   0.825,
   0.875,
   0.925,
   0.975};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fy3006[20] = {
   0,
   0,
   9,
   26,
   118,
   315,
   881,
   1812,
   3086,
   4575,
   5856,
   6537,
   6824,
   6348,
   5662,
   4769,
   4941,
   6726,
   13179,
   28019};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_felx3006[20] = {
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fely3006[20] = {
   0,
   0,
   2.943461,
   5.066015,
   10.37428,
   17.25528,
   29.18586,
   42.07053,
   55.05403,
   67.14059,
   76.02614,
   80.35326,
   82.10902,
   79.17591,
   74.74792,
   68.55976,
   69.79403,
   81.51372,
   114.3009,
   166.8895};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehx3006[20] = {
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025,
   0.025};
   Double_t h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehy3006[20] = {
   1.147874,
   1.147874,
   4.110204,
   6.164324,
   11.37428,
   18.25528,
   30.18586,
   43.07053,
   56.05403,
   68.14059,
   77.02614,
   81.35326,
   83.10902,
   80.17591,
   75.74792,
   69.55976,
   70.79403,
   82.51372,
   115.3009,
   167.8895};
   grae = new TGraphAsymmErrors(20,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fx3006,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fy3006,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_felx3006,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehx3006,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fely3006,h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]_fehy3006);
   grae->SetName("h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]");
   grae->SetTitle("Histogram of combData_plot__muminus_ISO_");
   grae->SetFillColor(1);
   grae->SetFillStyle(0);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006 = new TH1F("Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006","Histogram of combData_plot__muminus_ISO_",100,0,1.1);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetMinimum(0);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetMaximum(31005.58);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetDirectory(0);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetStats(0);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetLineWidth(2);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->SetMarkerStyle(0);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetRange(1,91);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetNdivisions(1005);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetLabelOffset(0.02);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetXaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetYaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetZaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Graph_Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]563001300230053006);
   
   grae->Draw("e1p");
   
   TLegend *leg = new TLegend(0.2,0.53,0.6,0.78,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(10);
   leg->SetFillStyle(0);
   TLegendEntry *entry=leg->AddEntry("h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]","Data, #sqrt{s}=8 TeV","lep");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("h5","Electroweak","f");

   ci = TColor::GetColor("#3333ff");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#3333ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sumBkgPdf_totbkg_fitW","QCD","f");

   ci = TColor::GetColor("#ffff66");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#ffff66");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sumPdf_Norm[muminus_ISO_]","Fit","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2,0.8,0.4,0.87,"brNDC");
   pt->SetBorderSize(0);
   pt->SetFillStyle(0);
   pt->SetLineWidth(2);
   pt->SetTextFont(132);
   TText *AText = pt->AddText("LHCb");
   pt->Draw();
   
   TH1F *Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy = new TH1F("Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy","Histogram of combData_plot__muminus_ISO_",100,0,1.1);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetMinimum(0);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetMaximum(31005.58);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetDirectory(0);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetStats(0);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetLineWidth(2);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->SetMarkerStyle(0);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetTitle("#it{p}_{T}^{#it{#mu}} / #it{p}_{T}^{#it{#mu}-jet}   ");
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetRange(1,91);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetNdivisions(1005);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetLabelOffset(0.02);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetXaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetTitle("Events / (0.05)");
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetTitleOffset(1.1);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetYaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetZaxis()->SetLabelFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetZaxis()->SetLabelSize(0.05);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetZaxis()->SetTitleSize(0.06);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->GetZaxis()->SetTitleFont(132);
   Graph_Graph_Graph_Graph_h_combData_Cut[samples == samples::fitW_etam_0 || samples == samples::fitW_etam_1 || samples == samples::fitW_etam_2 || samples == samples::fitW_etam_3]5630013002_copy->Draw("sameaxis");
   upperPad->Modified();
   default_Canvas->cd();
   default_Canvas->Modified();
   default_Canvas->cd();
   default_Canvas->SetSelected(default_Canvas);
}
void fitcomparingcuts_LM_optimized_DD1_sigregonly()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Fri May 13 23:29:18 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(1075.63,-26.4,1149.704,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_5602550__1 = new TH1D("frame_5602550__1","",100,1086,1146);
   frame_5602550__1->SetBinContent(1,3.745406);
   frame_5602550__1->SetMinimum(-8.8);
   frame_5602550__1->SetMaximum(8.8);
   frame_5602550__1->SetEntries(1);
   frame_5602550__1->SetDirectory(0);
   frame_5602550__1->SetStats(0);
   frame_5602550__1->SetLineWidth(2);
   frame_5602550__1->SetMarkerStyle(20);
   frame_5602550__1->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5602550__1->GetXaxis()->SetNdivisions(505);
   frame_5602550__1->GetXaxis()->SetLabelFont(132);
   frame_5602550__1->GetXaxis()->SetLabelOffset(0.01);
   frame_5602550__1->GetXaxis()->SetLabelSize(0.15);
   frame_5602550__1->GetXaxis()->SetTitleSize(0.2);
   frame_5602550__1->GetXaxis()->SetTitleOffset(1.1);
   frame_5602550__1->GetXaxis()->SetTitleFont(132);
   frame_5602550__1->GetYaxis()->SetTitle("Pull");
   frame_5602550__1->GetYaxis()->CenterTitle(true);
   frame_5602550__1->GetYaxis()->SetNdivisions(505);
   frame_5602550__1->GetYaxis()->SetLabelFont(132);
   frame_5602550__1->GetYaxis()->SetLabelOffset(0.01);
   frame_5602550__1->GetYaxis()->SetLabelSize(0.15);
   frame_5602550__1->GetYaxis()->SetTitleSize(0.15);
   frame_5602550__1->GetYaxis()->SetTitleOffset(0.45);
   frame_5602550__1->GetYaxis()->SetTitleFont(132);
   frame_5602550__1->GetZaxis()->SetLabelFont(132);
   frame_5602550__1->GetZaxis()->SetLabelSize(0.06);
   frame_5602550__1->GetZaxis()->SetTitleSize(0.072);
   frame_5602550__1->GetZaxis()->SetTitleOffset(1.2);
   frame_5602550__1->GetZaxis()->SetTitleFont(132);
   frame_5602550__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[24] = {
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9};
   Double_t pull_Hist_curvetot_fy3001[24] = {
   -0.3330637,
   -1.949993,
   -3.139195,
   -0.6971619,
   -1.655885,
   1.42007,
   1.006975,
   -0.1414765,
   -0.1440619,
   -0.3520065,
   0.8182724,
   1.900459,
   0.5393396,
   -1.447405,
   -1.879962,
   -1.916407,
   0.9788169,
   0.6653271,
   2.369949,
   0.4574603,
   2.123165,
   0.6650093,
   0.5132994,
   -1.11117};
   Double_t pull_Hist_curvetot_felx3001[24] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[24] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[24] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[24] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(24,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_M and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_M and Projection of totalPdf",100,1107.72,1124.28);
   Graph_pull_Hist_curvetot3001->SetMinimum(-4.890109);
   Graph_pull_Hist_curvetot3001->SetMaximum(4.120863);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_5602550__2 = new TH1D("frame_5602550__2","",100,1086,1146);
   frame_5602550__2->SetBinContent(1,3.745406);
   frame_5602550__2->SetMinimum(-8.8);
   frame_5602550__2->SetMaximum(8.8);
   frame_5602550__2->SetEntries(1);
   frame_5602550__2->SetDirectory(0);
   frame_5602550__2->SetStats(0);
   frame_5602550__2->SetLineWidth(2);
   frame_5602550__2->SetMarkerStyle(20);
   frame_5602550__2->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5602550__2->GetXaxis()->SetNdivisions(505);
   frame_5602550__2->GetXaxis()->SetLabelFont(132);
   frame_5602550__2->GetXaxis()->SetLabelOffset(0.01);
   frame_5602550__2->GetXaxis()->SetLabelSize(0.15);
   frame_5602550__2->GetXaxis()->SetTitleSize(0.2);
   frame_5602550__2->GetXaxis()->SetTitleOffset(1.1);
   frame_5602550__2->GetXaxis()->SetTitleFont(132);
   frame_5602550__2->GetYaxis()->SetTitle("Pull");
   frame_5602550__2->GetYaxis()->CenterTitle(true);
   frame_5602550__2->GetYaxis()->SetNdivisions(505);
   frame_5602550__2->GetYaxis()->SetLabelFont(132);
   frame_5602550__2->GetYaxis()->SetLabelOffset(0.01);
   frame_5602550__2->GetYaxis()->SetLabelSize(0.15);
   frame_5602550__2->GetYaxis()->SetTitleSize(0.15);
   frame_5602550__2->GetYaxis()->SetTitleOffset(0.45);
   frame_5602550__2->GetYaxis()->SetTitleFont(132);
   frame_5602550__2->GetZaxis()->SetLabelFont(132);
   frame_5602550__2->GetZaxis()->SetLabelSize(0.06);
   frame_5602550__2->GetZaxis()->SetTitleSize(0.072);
   frame_5602550__2->GetZaxis()->SetTitleOffset(1.2);
   frame_5602550__2->GetZaxis()->SetTitleFont(132);
   frame_5602550__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(1075.63,0,1149.704,1077.436);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_5368230__3 = new TH1D("frame_5368230__3","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_5368230__3->SetBinContent(1,1012.789);
   frame_5368230__3->SetMaximum(1012.789);
   frame_5368230__3->SetEntries(1);
   frame_5368230__3->SetDirectory(0);
   frame_5368230__3->SetStats(0);
   frame_5368230__3->SetLineWidth(2);
   frame_5368230__3->SetMarkerStyle(20);
   frame_5368230__3->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5368230__3->GetXaxis()->SetNdivisions(505);
   frame_5368230__3->GetXaxis()->SetLabelFont(132);
   frame_5368230__3->GetXaxis()->SetLabelOffset(0.01);
   frame_5368230__3->GetXaxis()->SetLabelSize(0.06);
   frame_5368230__3->GetXaxis()->SetTitleSize(0.072);
   frame_5368230__3->GetXaxis()->SetTitleOffset(0.95);
   frame_5368230__3->GetXaxis()->SetTitleFont(132);
   frame_5368230__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_5368230__3->GetYaxis()->SetLabelFont(132);
   frame_5368230__3->GetYaxis()->SetLabelOffset(0.01);
   frame_5368230__3->GetYaxis()->SetLabelSize(0.06);
   frame_5368230__3->GetYaxis()->SetTitleSize(0.072);
   frame_5368230__3->GetYaxis()->SetTitleOffset(0.95);
   frame_5368230__3->GetYaxis()->SetTitleFont(132);
   frame_5368230__3->GetZaxis()->SetLabelFont(132);
   frame_5368230__3->GetZaxis()->SetLabelSize(0.06);
   frame_5368230__3->GetZaxis()->SetTitleSize(0.072);
   frame_5368230__3->GetZaxis()->SetTitleOffset(1.2);
   frame_5368230__3->GetZaxis()->SetTitleFont(132);
   frame_5368230__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   1086.3,
   1086.9,
   1087.5,
   1088.1,
   1088.7,
   1089.3,
   1089.9,
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5,
   1106.1,
   1106.7,
   1107.3,
   1107.9,
   1108.5,
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9,
   1123.5,
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5,
   1136.1,
   1136.7,
   1137.3,
   1137.9,
   1138.5,
   1139.1,
   1139.7,
   1140.3,
   1140.9,
   1141.5,
   1142.1,
   1142.7,
   1143.3,
   1143.9,
   1144.5,
   1145.1,
   1145.7};
   Double_t Hist_fy3002[100] = {
   12,
   9,
   17,
   11,
   12,
   7,
   15,
   7,
   11,
   19,
   12,
   13,
   12,
   11,
   10,
   9,
   8,
   9,
   12,
   8,
   8,
   10,
   9,
   12,
   14,
   10,
   9,
   8,
   14,
   6,
   11,
   14,
   17,
   16,
   23,
   17,
   23,
   23,
   36,
   36,
   40,
   70,
   84,
   155,
   217,
   304,
   451,
   619,
   809,
   934,
   880,
   716,
   545,
   381,
   297,
   195,
   158,
   99,
   94,
   64,
   51,
   32,
   46,
   39,
   23,
   20,
   21,
   20,
   17,
   22,
   14,
   13,
   19,
   11,
   15,
   13,
   18,
   19,
   20,
   14,
   14,
   14,
   15,
   7,
   12,
   17,
   12,
   14,
   12,
   13,
   15,
   21,
   17,
   10,
   13,
   12,
   21,
   12,
   10,
   4};
   Double_t Hist_felx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fely3002[100] = {
   3.464102,
   3,
   4.123106,
   3.316625,
   3.464102,
   2.645751,
   3.872983,
   2.645751,
   3.316625,
   4.358899,
   3.464102,
   3.605551,
   3.464102,
   3.316625,
   3.162278,
   3,
   2.828427,
   3,
   3.464102,
   2.828427,
   2.828427,
   3.162278,
   3,
   3.464102,
   3.741657,
   3.162278,
   3,
   2.828427,
   3.741657,
   2.44949,
   3.316625,
   3.741657,
   4.123106,
   4,
   4.795832,
   4.123106,
   4.795832,
   4.795832,
   6,
   6,
   6.324555,
   8.3666,
   9.165151,
   12.4499,
   14.73092,
   17.4356,
   21.23676,
   24.87971,
   28.44293,
   30.56141,
   29.66479,
   26.75818,
   23.34524,
   19.51922,
   17.23369,
   13.96424,
   12.56981,
   9.949874,
   9.69536,
   8,
   7.141428,
   5.656854,
   6.78233,
   6.244998,
   4.795832,
   4.472136,
   4.582576,
   4.472136,
   4.123106,
   4.690416,
   3.741657,
   3.605551,
   4.358899,
   3.316625,
   3.872983,
   3.605551,
   4.242641,
   4.358899,
   4.472136,
   3.741657,
   3.741657,
   3.741657,
   3.872983,
   2.645751,
   3.464102,
   4.123106,
   3.464102,
   3.741657,
   3.464102,
   3.605551,
   3.872983,
   4.582576,
   4.123106,
   3.162278,
   3.605551,
   3.464102,
   4.582576,
   3.464102,
   3.162278,
   2};
   Double_t Hist_fehx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fehy3002[100] = {
   3.464102,
   3,
   4.123106,
   3.316625,
   3.464102,
   2.645751,
   3.872983,
   2.645751,
   3.316625,
   4.358899,
   3.464102,
   3.605551,
   3.464102,
   3.316625,
   3.162278,
   3,
   2.828427,
   3,
   3.464102,
   2.828427,
   2.828427,
   3.162278,
   3,
   3.464102,
   3.741657,
   3.162278,
   3,
   2.828427,
   3.741657,
   2.44949,
   3.316625,
   3.741657,
   4.123106,
   4,
   4.795832,
   4.123106,
   4.795832,
   4.795832,
   6,
   6,
   6.324555,
   8.3666,
   9.165151,
   12.4499,
   14.73092,
   17.4356,
   21.23676,
   24.87971,
   28.44293,
   30.56141,
   29.66479,
   26.75818,
   23.34524,
   19.51922,
   17.23369,
   13.96424,
   12.56981,
   9.949874,
   9.69536,
   8,
   7.141428,
   5.656854,
   6.78233,
   6.244998,
   4.795832,
   4.472136,
   4.582576,
   4.472136,
   4.123106,
   4.690416,
   3.741657,
   3.605551,
   4.358899,
   3.316625,
   3.872983,
   3.605551,
   4.242641,
   4.358899,
   4.472136,
   3.741657,
   3.741657,
   3.741657,
   3.872983,
   2.645751,
   3.464102,
   4.123106,
   3.464102,
   3.741657,
   3.464102,
   3.605551,
   3.872983,
   4.582576,
   4.123106,
   3.162278,
   3.605551,
   3.464102,
   4.582576,
   3.464102,
   3.162278,
   2};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_M");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_M",100,1080,1152);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(1060.818);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   1108.505,
   1108.653,
   1108.802,
   1108.95,
   1109.099,
   1109.247,
   1109.396,
   1109.544,
   1109.693,
   1109.842,
   1109.99,
   1110.139,
   1110.287,
   1110.436,
   1110.584,
   1110.733,
   1110.882,
   1111.03,
   1111.179,
   1111.327,
   1111.476,
   1111.624,
   1111.773,
   1111.922,
   1112.07,
   1112.219,
   1112.367,
   1112.516,
   1112.664,
   1112.813,
   1112.961,
   1113.11,
   1113.259,
   1113.407,
   1113.556,
   1113.704,
   1113.853,
   1114.001,
   1114.15,
   1114.299,
   1114.447,
   1114.596,
   1114.744,
   1114.893,
   1115.041,
   1115.19,
   1115.339,
   1115.487,
   1115.636,
   1115.784,
   1115.933,
   1116.081,
   1116.23,
   1116.378,
   1116.527,
   1116.676,
   1116.824,
   1116.973,
   1117.121,
   1117.27,
   1117.418,
   1117.567,
   1117.716,
   1117.864,
   1118.013,
   1118.161,
   1118.31,
   1118.458,
   1118.607,
   1118.756,
   1118.904,
   1119.053,
   1119.201,
   1119.35,
   1119.498,
   1119.647,
   1119.795,
   1119.944,
   1120.093,
   1120.241,
   1120.39,
   1120.538,
   1120.687,
   1120.835,
   1120.984,
   1121.133,
   1121.281,
   1121.43,
   1121.578,
   1121.727,
   1121.875,
   1122.024,
   1122.173,
   1122.321,
   1122.47,
   1122.618,
   1122.767,
   1122.915,
   1123.064,
   1123.212,
   1123.361,
   1123.361};
   Double_t curvetot_fy1[102] = {
   30.29978,
   32.0559,
   33.91896,
   35.89256,
   37.98048,
   40.18694,
   42.51682,
   44.97598,
   47.57177,
   50.31356,
   53.2135,
   56.28743,
   59.556,
   63.04591,
   66.79149,
   70.8363,
   75.23501,
   80.05526,
   85.37962,
   91.30726,
   97.95553,
   105.4609,
   113.9791,
   123.6849,
   134.7698,
   147.4391,
   161.9068,
   178.3894,
   197.097,
   218.2234,
   241.9346,
   268.3554,
   297.5564,
   329.54,
   364.228,
   401.45,
   440.935,
   482.3067,
   525.0822,
   568.6765,
   612.4121,
   655.5338,
   697.2294,
   736.6539,
   772.9585,
   805.3213,
   832.9784,
   855.2553,
   871.5944,
   881.5791,
   884.9519,
   881.6256,
   871.6873,
   855.3946,
   833.1642,
   805.5535,
   773.2371,
   736.9789,
   697.6009,
   655.9518,
   612.8765,
   569.1873,
   525.6395,
   482.9104,
   441.5852,
   402.1465,
   364.971,
   330.3295,
   298.3922,
   269.2377,
   242.8633,
   219.1986,
   198.1186,
   179.4575,
   163.0213,
   148.6,
   135.9772,
   124.9387,
   115.2793,
   106.8075,
   99.34864,
   92.74681,
   86.8656,
   81.58768,
   76.81386,
   72.46159,
   68.46322,
   64.76408,
   61.3206,
   58.09848,
   55.07098,
   52.21747,
   49.52212,
   46.97277,
   44.56004,
   42.27661,
   40.11658,
   38.0751,
   36.14794,
   34.33131,
   32.62163,
   32.62163};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,1107.019,1124.847);
   Graph_curvetot1->SetMinimum(0);
   Graph_curvetot1->SetMaximum(970.4171);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t bkg_fx2[102] = {
   1108.505,
   1108.653,
   1108.802,
   1108.95,
   1109.099,
   1109.247,
   1109.396,
   1109.544,
   1109.693,
   1109.842,
   1109.99,
   1110.139,
   1110.287,
   1110.436,
   1110.584,
   1110.733,
   1110.882,
   1111.03,
   1111.179,
   1111.327,
   1111.476,
   1111.624,
   1111.773,
   1111.922,
   1112.07,
   1112.219,
   1112.367,
   1112.516,
   1112.664,
   1112.813,
   1112.961,
   1113.11,
   1113.259,
   1113.407,
   1113.556,
   1113.704,
   1113.853,
   1114.001,
   1114.15,
   1114.299,
   1114.447,
   1114.596,
   1114.744,
   1114.893,
   1115.041,
   1115.19,
   1115.339,
   1115.487,
   1115.636,
   1115.784,
   1115.933,
   1116.081,
   1116.23,
   1116.378,
   1116.527,
   1116.676,
   1116.824,
   1116.973,
   1117.121,
   1117.27,
   1117.418,
   1117.567,
   1117.716,
   1117.864,
   1118.013,
   1118.161,
   1118.31,
   1118.458,
   1118.607,
   1118.756,
   1118.904,
   1119.053,
   1119.201,
   1119.35,
   1119.498,
   1119.647,
   1119.795,
   1119.944,
   1120.093,
   1120.241,
   1120.39,
   1120.538,
   1120.687,
   1120.835,
   1120.984,
   1121.133,
   1121.281,
   1121.43,
   1121.578,
   1121.727,
   1121.875,
   1122.024,
   1122.173,
   1122.321,
   1122.47,
   1122.618,
   1122.767,
   1122.915,
   1123.064,
   1123.212,
   1123.361,
   1123.361};
   Double_t bkg_fy2[102] = {
   9.168666,
   9.178623,
   9.188847,
   9.199339,
   9.2101,
   9.221128,
   9.232424,
   9.243988,
   9.25582,
   9.26792,
   9.280288,
   9.292923,
   9.305827,
   9.318999,
   9.332438,
   9.346145,
   9.360121,
   9.374364,
   9.388875,
   9.403654,
   9.418701,
   9.434016,
   9.449599,
   9.46545,
   9.481568,
   9.497955,
   9.514609,
   9.531532,
   9.548722,
   9.56618,
   9.583906,
   9.601901,
   9.620163,
   9.638692,
   9.65749,
   9.676556,
   9.69589,
   9.715491,
   9.735361,
   9.755498,
   9.775904,
   9.796577,
   9.817518,
   9.838727,
   9.860204,
   9.881949,
   9.903962,
   9.926243,
   9.948792,
   9.971608,
   9.994693,
   10.01805,
   10.04167,
   10.06555,
   10.08971,
   10.11413,
   10.13883,
   10.16379,
   10.18901,
   10.21451,
   10.24027,
   10.26631,
   10.2926,
   10.31917,
   10.34601,
   10.37311,
   10.40048,
   10.42812,
   10.45603,
   10.4842,
   10.51265,
   10.54136,
   10.57034,
   10.59958,
   10.6291,
   10.65888,
   10.68893,
   10.71925,
   10.74984,
   10.78069,
   10.81181,
   10.8432,
   10.87486,
   10.90679,
   10.93898,
   10.97144,
   11.00417,
   11.03717,
   11.07043,
   11.10397,
   11.13777,
   11.17184,
   11.20617,
   11.24078,
   11.27565,
   11.31079,
   11.3462,
   11.38188,
   11.41782,
   11.45404,
   11.49052,
   11.49052};
   graph = new TGraph(102,bkg_fx2,bkg_fy2);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg2 = new TH1F("Graph_bkg2","Projection of totalPdf",102,1107.019,1124.847);
   Graph_bkg2->SetMinimum(8.936481);
   Graph_bkg2->SetMaximum(11.7227);
   Graph_bkg2->SetDirectory(0);
   Graph_bkg2->SetStats(0);
   Graph_bkg2->SetLineWidth(2);
   Graph_bkg2->SetMarkerStyle(20);
   Graph_bkg2->GetXaxis()->SetNdivisions(505);
   Graph_bkg2->GetXaxis()->SetLabelFont(132);
   Graph_bkg2->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetXaxis()->SetTitleFont(132);
   Graph_bkg2->GetYaxis()->SetLabelFont(132);
   Graph_bkg2->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetYaxis()->SetTitleFont(132);
   Graph_bkg2->GetZaxis()->SetLabelFont(132);
   Graph_bkg2->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg2);
   
   graph->Draw("l");
   
   Double_t sigLM_fx3[102] = {
   1108.505,
   1108.653,
   1108.802,
   1108.95,
   1109.099,
   1109.247,
   1109.396,
   1109.544,
   1109.693,
   1109.842,
   1109.99,
   1110.139,
   1110.287,
   1110.436,
   1110.584,
   1110.733,
   1110.882,
   1111.03,
   1111.179,
   1111.327,
   1111.476,
   1111.624,
   1111.773,
   1111.922,
   1112.07,
   1112.219,
   1112.367,
   1112.516,
   1112.664,
   1112.813,
   1112.961,
   1113.11,
   1113.259,
   1113.407,
   1113.556,
   1113.704,
   1113.853,
   1114.001,
   1114.15,
   1114.299,
   1114.447,
   1114.596,
   1114.744,
   1114.893,
   1115.041,
   1115.19,
   1115.339,
   1115.487,
   1115.636,
   1115.784,
   1115.933,
   1116.081,
   1116.23,
   1116.378,
   1116.527,
   1116.676,
   1116.824,
   1116.973,
   1117.121,
   1117.27,
   1117.418,
   1117.567,
   1117.716,
   1117.864,
   1118.013,
   1118.161,
   1118.31,
   1118.458,
   1118.607,
   1118.756,
   1118.904,
   1119.053,
   1119.201,
   1119.35,
   1119.498,
   1119.647,
   1119.795,
   1119.944,
   1120.093,
   1120.241,
   1120.39,
   1120.538,
   1120.687,
   1120.835,
   1120.984,
   1121.133,
   1121.281,
   1121.43,
   1121.578,
   1121.727,
   1121.875,
   1122.024,
   1122.173,
   1122.321,
   1122.47,
   1122.618,
   1122.767,
   1122.915,
   1123.064,
   1123.212,
   1123.361,
   1123.361};
   Double_t sigLM_fy3[102] = {
   21.13111,
   22.87727,
   24.73012,
   26.69322,
   28.77038,
   30.96581,
   33.28439,
   35.73199,
   38.31595,
   41.04564,
   43.93321,
   46.99451,
   50.25017,
   53.72691,
   57.45905,
   61.49015,
   65.87488,
   70.6809,
   75.99074,
   81.90361,
   88.53683,
   96.02684,
   104.5295,
   114.2194,
   125.2882,
   137.9411,
   152.3922,
   168.8579,
   187.5483,
   208.6573,
   232.3507,
   258.7535,
   287.9362,
   319.9013,
   354.5705,
   391.7734,
   431.2391,
   472.5913,
   515.3469,
   558.921,
   602.6362,
   645.7372,
   687.4118,
   726.8151,
   763.0983,
   795.4393,
   823.0745,
   845.3291,
   861.6456,
   871.6075,
   874.9572,
   871.6075,
   861.6456,
   845.3291,
   823.0745,
   795.4393,
   763.0983,
   726.8151,
   687.4118,
   645.7372,
   602.6362,
   558.921,
   515.3469,
   472.5913,
   431.2391,
   391.7734,
   354.5705,
   319.9013,
   287.9362,
   258.7535,
   232.3507,
   208.6573,
   187.5483,
   168.8579,
   152.3922,
   137.9411,
   125.2882,
   114.2194,
   104.5295,
   96.02684,
   88.53683,
   81.90361,
   75.99074,
   70.6809,
   65.87488,
   61.49015,
   57.45905,
   53.72691,
   50.25017,
   46.99451,
   43.93321,
   41.04564,
   38.31595,
   35.73199,
   33.28439,
   30.96581,
   28.77038,
   26.69322,
   24.73012,
   22.87727,
   21.13111,
   21.13111};
   graph = new TGraph(102,sigLM_fx3,sigLM_fy3);
   graph->SetName("sigLM");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(3);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigLM3 = new TH1F("Graph_sigLM3","Projection of totalPdf",102,1107.019,1124.847);
   Graph_sigLM3->SetMinimum(0);
   Graph_sigLM3->SetMaximum(960.3398);
   Graph_sigLM3->SetDirectory(0);
   Graph_sigLM3->SetStats(0);
   Graph_sigLM3->SetLineWidth(2);
   Graph_sigLM3->SetMarkerStyle(20);
   Graph_sigLM3->GetXaxis()->SetNdivisions(505);
   Graph_sigLM3->GetXaxis()->SetLabelFont(132);
   Graph_sigLM3->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigLM3->GetXaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetXaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigLM3->GetXaxis()->SetTitleFont(132);
   Graph_sigLM3->GetYaxis()->SetLabelFont(132);
   Graph_sigLM3->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigLM3->GetYaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetYaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigLM3->GetYaxis()->SetTitleFont(132);
   Graph_sigLM3->GetZaxis()->SetLabelFont(132);
   Graph_sigLM3->GetZaxis()->SetLabelSize(0.06);
   Graph_sigLM3->GetZaxis()->SetTitleSize(0.072);
   Graph_sigLM3->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigLM3->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigLM3);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.75,0.5,1,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigLM","#Lambda M (dbl Gaus)","l");
   entry->SetLineColor(3);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_5368230__4 = new TH1D("frame_5368230__4","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_5368230__4->SetBinContent(1,1012.789);
   frame_5368230__4->SetMaximum(1012.789);
   frame_5368230__4->SetEntries(1);
   frame_5368230__4->SetDirectory(0);
   frame_5368230__4->SetStats(0);
   frame_5368230__4->SetLineWidth(2);
   frame_5368230__4->SetMarkerStyle(20);
   frame_5368230__4->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_5368230__4->GetXaxis()->SetNdivisions(505);
   frame_5368230__4->GetXaxis()->SetLabelFont(132);
   frame_5368230__4->GetXaxis()->SetLabelOffset(0.01);
   frame_5368230__4->GetXaxis()->SetLabelSize(0.06);
   frame_5368230__4->GetXaxis()->SetTitleSize(0.072);
   frame_5368230__4->GetXaxis()->SetTitleOffset(0.95);
   frame_5368230__4->GetXaxis()->SetTitleFont(132);
   frame_5368230__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_5368230__4->GetYaxis()->SetLabelFont(132);
   frame_5368230__4->GetYaxis()->SetLabelOffset(0.01);
   frame_5368230__4->GetYaxis()->SetLabelSize(0.06);
   frame_5368230__4->GetYaxis()->SetTitleSize(0.072);
   frame_5368230__4->GetYaxis()->SetTitleOffset(0.95);
   frame_5368230__4->GetYaxis()->SetTitleFont(132);
   frame_5368230__4->GetZaxis()->SetLabelFont(132);
   frame_5368230__4->GetZaxis()->SetLabelSize(0.06);
   frame_5368230__4->GetZaxis()->SetTitleSize(0.072);
   frame_5368230__4->GetZaxis()->SetTitleOffset(1.2);
   frame_5368230__4->GetZaxis()->SetTitleFont(132);
   frame_5368230__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 16
0
void Plot_MASS_1824_4555_0200()
{
  gStyle->SetEndErrorSize(0);
  
//=========Macro generated from canvas: cMassFig_PbPb/cMassFig
//=========  (Wed Jun 28 13:59:22 2017) by ROOT version6.06/00
   TCanvas *cMassFig_PbPb = new TCanvas("cMassFig_PbPb", "cMassFig",0,22,800,800);
   cMassFig_PbPb->Range(0,0,1,1);
   cMassFig_PbPb->SetFillColor(0);
   cMassFig_PbPb->SetBorderMode(0);
   cMassFig_PbPb->SetBorderSize(2);
   cMassFig_PbPb->SetTickx(1);
   cMassFig_PbPb->SetTicky(1);
   cMassFig_PbPb->SetLeftMargin(0.16);
   cMassFig_PbPb->SetRightMargin(0.04);
   cMassFig_PbPb->SetTopMargin(0.08);
   cMassFig_PbPb->SetBottomMargin(0.12);
   cMassFig_PbPb->SetFrameFillStyle(0);
   cMassFig_PbPb->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad1_PbPb
//   TPad *pad1_PbPb = new TPad("pad1_PbPb", "",0,0.23,1,1);
//   pad1_PbPb->Draw();
//   pad1_PbPb->cd();
//   pad1_PbPb->Range(2.42,2.332543,3.545,3.534904);
//   pad1_PbPb->SetFillColor(0);
//   pad1_PbPb->SetBorderMode(0);
//   pad1_PbPb->SetBorderSize(2);
//   pad1_PbPb->SetLogy();
//   pad1_PbPb->SetTickx(1);
//   pad1_PbPb->SetTicky(1);
//   pad1_PbPb->SetLeftMargin(0.16);
//   pad1_PbPb->SetRightMargin(0.04);
//   pad1_PbPb->SetTopMargin(0.08);
//   pad1_PbPb->SetBottomMargin(0.015);
//   pad1_PbPb->SetFrameFillStyle(0);
//   pad1_PbPb->SetFrameBorderMode(0);
//   pad1_PbPb->SetFrameFillStyle(0);
//   pad1_PbPb->SetFrameBorderMode(0);
   
   TH1D *frame_25fab720__5 = new TH1D("frame_25fab720__5","",36,2.6,3.5);
   frame_25fab720__5->SetBinContent(1,1091.736);
   frame_25fab720__5->SetMinimum(224.1707);
   frame_25fab720__5->SetMaximum(2746.091);
   frame_25fab720__5->SetEntries(1);
   frame_25fab720__5->SetDirectory(0);
   frame_25fab720__5->SetStats(0);
   frame_25fab720__5->SetLineStyle(0);
   frame_25fab720__5->SetMarkerStyle(20);
   frame_25fab720__5->GetXaxis()->SetTitle("m_{#mu^{+}#mu^{-}} (GeV/c^{2})");
   frame_25fab720__5->GetXaxis()->CenterTitle(true);
   frame_25fab720__5->GetXaxis()->SetTitleOffset(1.25);
   frame_25fab720__5->GetXaxis()->SetLabelFont(42);
   frame_25fab720__5->GetXaxis()->SetLabelOffset(0.015);
   frame_25fab720__5->GetXaxis()->SetLabelSize(0.048);
   frame_25fab720__5->GetXaxis()->SetTitleSize(0.044);
   frame_25fab720__5->GetXaxis()->SetTitleFont(42);
   frame_25fab720__5->GetYaxis()->SetTitle("Events / ( 0.025 GeV/c^{2} )");
   frame_25fab720__5->GetYaxis()->CenterTitle(true);
   frame_25fab720__5->GetYaxis()->SetRangeUser(0,1500);
   frame_25fab720__5->GetYaxis()->SetLabelOffset(0.007);
   frame_25fab720__5->GetYaxis()->SetTitleOffset(1.9);
   frame_25fab720__5->GetYaxis()->SetLabelSize(0.048);
   frame_25fab720__5->GetYaxis()->SetTitleSize(0.044);
   frame_25fab720__5->GetYaxis()->SetTitleFont(42);
   frame_25fab720__5->GetZaxis()->SetLabelFont(42);
   frame_25fab720__5->GetZaxis()->SetLabelOffset(0.007);
   frame_25fab720__5->GetZaxis()->SetLabelSize(0.05);
   frame_25fab720__5->GetZaxis()->SetTitleSize(0.06);
   frame_25fab720__5->GetZaxis()->SetTitleFont(42);
   frame_25fab720__5->Draw("FUNC");
   
   Double_t dOS_fx3004[36] = {
   2.6125,
   2.6375,
   2.6625,
   2.6875,
   2.7125,
   2.7375,
   2.7625,
   2.7875,
   2.8125,
   2.8375,
   2.8625,
   2.8875,
   2.9125,
   2.9375,
   2.9625,
   2.9875,
   3.0125,
   3.0375,
   3.0625,
   3.0875,
   3.1125,
   3.1375,
   3.1625,
   3.1875,
   3.2125,
   3.2375,
   3.2625,
   3.2875,
   3.3125,
   3.3375,
   3.3625,
   3.3875,
   3.4125,
   3.4375,
   3.4625,
   3.4875};
   Double_t dOS_fy3004[36] = {
   407,
   379,
   378,
   398,
   356,
   365,
   371,
   343,
   390,
   377,
   378,
   426,
   390,
   422,
   414,
   463,
   528,
   795,
   969,
   1008,
   933,
   736,
   600,
   453,
   383,
   376,
   330,
   371,
   326,
   342,
   324,
   344,
   297,
   345,
   306,
   288};
   Double_t dOS_felx3004[36] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t dOS_fely3004[36] = {
   20.17424,
   19.46792,
   19.44222,
   19.94994,
   18.86796,
   19.10497,
   19.26136,
   18.52026,
   19.74842,
   19.41649,
   19.44222,
   20.63977,
   19.74842,
   20.54264,
   20.34699,
   21.51743,
   22.97825,
   28.19574,
   31.12876,
   31.74902,
   30.54505,
   27.12932,
   24.4949,
   21.2838,
   19.57039,
   19.39072,
   18.1659,
   19.26136,
   18.05547,
   18.49324,
   18,
   18.54724,
   17.23369,
   18.57418,
   17.49286,
   16.97056};
   Double_t dOS_fehx3004[36] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t dOS_fehy3004[36] = {
   20.17424,
   19.46792,
   19.44222,
   19.94994,
   18.86796,
   19.10497,
   19.26136,
   18.52026,
   19.74842,
   19.41649,
   19.44222,
   20.63977,
   19.74842,
   20.54264,
   20.34699,
   21.51743,
   22.97825,
   28.19574,
   31.12876,
   31.74902,
   30.54505,
   27.12932,
   24.4949,
   21.2838,
   19.57039,
   19.39072,
   18.1659,
   19.26136,
   18.05547,
   18.49324,
   18,
   18.54724,
   17.23369,
   18.57418,
   17.49286,
   16.97056};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(36,dOS_fx3004,dOS_fy3004,dOS_felx3004,dOS_fehx3004,dOS_fely3004,dOS_fehy3004);
   grae->SetName("dOS");
   grae->SetTitle("Histogram of dOS_DATA_PbPb_plot__invMass");
   grae->SetFillColor(1);
   grae->SetMarkerStyle(8);
   grae->SetMarkerSize(1.2);
   
   TH1F *Graph_dOS3004 = new TH1F("Graph_dOS3004","Histogram of dOS_DATA_PbPb_plot__invMass",100,2.525,3.575);
   Graph_dOS3004->SetMinimum(194.1575);
   Graph_dOS3004->SetMaximum(1116.621);
   Graph_dOS3004->SetDirectory(0);
   Graph_dOS3004->SetStats(0);
   Graph_dOS3004->SetLineStyle(0);
   Graph_dOS3004->SetMarkerStyle(20);
   Graph_dOS3004->GetXaxis()->SetLabelFont(42);
   Graph_dOS3004->GetXaxis()->SetLabelOffset(0.007);
   Graph_dOS3004->GetXaxis()->SetLabelSize(0.05);
   Graph_dOS3004->GetXaxis()->SetTitleSize(0.06);
   Graph_dOS3004->GetXaxis()->SetTitleOffset(0.9);
   Graph_dOS3004->GetXaxis()->SetTitleFont(42);
   Graph_dOS3004->GetYaxis()->SetLabelFont(42);
   Graph_dOS3004->GetYaxis()->SetLabelOffset(0.007);
   Graph_dOS3004->GetYaxis()->SetLabelSize(0.05);
   Graph_dOS3004->GetYaxis()->SetTitleSize(0.06);
   Graph_dOS3004->GetYaxis()->SetTitleOffset(1.25);
   Graph_dOS3004->GetYaxis()->SetTitleFont(42);
   Graph_dOS3004->GetZaxis()->SetLabelFont(42);
   Graph_dOS3004->GetZaxis()->SetLabelOffset(0.007);
   Graph_dOS3004->GetZaxis()->SetLabelSize(0.05);
   Graph_dOS3004->GetZaxis()->SetTitleSize(0.06);
   Graph_dOS3004->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_dOS3004);
   
   grae->Draw("p");
   
   Double_t BKG_fx6[40] = {
   2.6,
   2.6,
   2.625,
   2.65,
   2.675,
   2.7,
   2.725,
   2.75,
   2.775,
   2.8,
   2.825,
   2.85,
   2.875,
   2.9,
   2.925,
   2.95,
   2.975,
   3,
   3.025,
   3.05,
   3.075,
   3.1,
   3.125,
   3.15,
   3.175,
   3.2,
   3.225,
   3.25,
   3.275,
   3.3,
   3.325,
   3.35,
   3.375,
   3.4,
   3.425,
   3.45,
   3.475,
   3.5,
   3.5,
   3.5};
   Double_t BKG_fy6[40] = {
   0,
   387.6149,
   385.6614,
   383.708,
   381.7545,
   379.8011,
   377.8476,
   375.8942,
   373.9407,
   371.9873,
   370.0338,
   368.0804,
   366.1269,
   364.1735,
   362.22,
   360.2666,
   358.3131,
   356.3597,
   354.4062,
   352.4528,
   350.4993,
   348.5459,
   346.5924,
   344.639,
   342.6855,
   340.7321,
   338.7786,
   336.8252,
   334.8717,
   332.9183,
   330.9648,
   329.0114,
   327.0579,
   325.1045,
   323.151,
   321.1976,
   319.2441,
   317.2907,
   317.2907,
   0};
   TGraph *graph = new TGraph(40,BKG_fx6,BKG_fy6);
   graph->SetName("BKG");
   graph->SetTitle("Projection of pdfCTAUMASS_Tot_PbPb");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#99ccff");
   graph->SetFillColor(ci);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
//   graph->SetLineStyle(2);
   graph->SetLineWidth(0); // 3
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_BKG6 = new TH1F("Graph_BKG6","Projection of pdfCTAUMASS_Tot_PbPb",100,2.51,3.59);
   Graph_BKG6->SetMinimum(0.4263764);
   Graph_BKG6->SetMaximum(426.3764);
   Graph_BKG6->SetDirectory(0);
   Graph_BKG6->SetStats(0);
   Graph_BKG6->SetLineStyle(0);
   Graph_BKG6->SetMarkerStyle(20);
   Graph_BKG6->GetXaxis()->SetLabelFont(42);
   Graph_BKG6->GetXaxis()->SetLabelOffset(0.007);
   Graph_BKG6->GetXaxis()->SetLabelSize(0.05);
   Graph_BKG6->GetXaxis()->SetTitleSize(0.06);
   Graph_BKG6->GetXaxis()->SetTitleOffset(0.9);
   Graph_BKG6->GetXaxis()->SetTitleFont(42);
   Graph_BKG6->GetYaxis()->SetLabelFont(42);
   Graph_BKG6->GetYaxis()->SetLabelOffset(0.007);
   Graph_BKG6->GetYaxis()->SetLabelSize(0.05);
   Graph_BKG6->GetYaxis()->SetTitleSize(0.06);
   Graph_BKG6->GetYaxis()->SetTitleOffset(1.25);
   Graph_BKG6->GetYaxis()->SetTitleFont(42);
   Graph_BKG6->GetZaxis()->SetLabelFont(42);
   Graph_BKG6->GetZaxis()->SetLabelOffset(0.007);
   Graph_BKG6->GetZaxis()->SetLabelSize(0.05);
   Graph_BKG6->GetZaxis()->SetTitleSize(0.06);
   Graph_BKG6->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_BKG6);
   
   graph->Draw("f");
   
   Double_t JPSIPR_fx7[230] = {
   2.575,
   2.575,
   2.6,
   2.625,
   2.65,
   2.675,
   2.7,
   2.725,
   2.75,
   2.775,
   2.8,
   2.825,
   2.85,
   2.8625,
   2.875,
   2.8875,
   2.9,
   2.90625,
   2.9125,
   2.91875,
   2.925,
   2.93125,
   2.9375,
   2.940625,
   2.94375,
   2.946875,
   2.95,
   2.953125,
   2.95625,
   2.959375,
   2.9625,
   2.964063,
   2.965625,
   2.967188,
   2.96875,
   2.970312,
   2.971875,
   2.973438,
   2.975,
   2.976562,
   2.978125,
   2.979688,
   2.98125,
   2.982813,
   2.984375,
   2.985937,
   2.9875,
   2.989062,
   2.990625,
   2.992188,
   2.99375,
   2.995312,
   2.996875,
   2.998438,
   3,
   3.001562,
   3.003125,
   3.004688,
   3.00625,
   3.007812,
   3.009375,
   3.010938,
   3.0125,
   3.014063,
   3.015625,
   3.017187,
   3.01875,
   3.020312,
   3.021875,
   3.023438,
   3.025,
   3.026562,
   3.028125,
   3.029688,
   3.03125,
   3.034375,
   3.0375,
   3.04375,
   3.046875,
   3.05,
   3.051562,
   3.053125,
   3.054688,
   3.05625,
   3.057812,
   3.059375,
   3.060938,
   3.0625,
   3.064062,
   3.065625,
   3.067188,
   3.06875,
   3.070312,
   3.071094,
   3.071875,
   3.072656,
   3.073438,
   3.074219,
   3.075,
   3.075781,
   3.076563,
   3.077344,
   3.078125,
   3.078906,
   3.079688,
   3.080469,
   3.08125,
   3.082031,
   3.082813,
   3.083594,
   3.084375,
   3.085156,
   3.085938,
   3.086719,
   3.0875,
   3.088281,
   3.089063,
   3.089844,
   3.090625,
   3.091406,
   3.092188,
   3.092969,
   3.09375,
   3.094531,
   3.095312,
   3.096094,
   3.096875,
   3.097656,
   3.098438,
   3.099219,
   3.1,
   3.100781,
   3.101562,
   3.102344,
   3.103125,
   3.103906,
   3.104688,
   3.10625,
   3.107813,
   3.109375,
   3.110937,
   3.1125,
   3.114062,
   3.115625,
   3.117188,
   3.11875,
   3.120312,
   3.121875,
   3.123438,
   3.125,
   3.128125,
   3.13125,
   3.1375,
   3.140625,
   3.14375,
   3.145312,
   3.146875,
   3.148438,
   3.15,
   3.151562,
   3.153125,
   3.154688,
   3.15625,
   3.157812,
   3.159375,
   3.160937,
   3.1625,
   3.164062,
   3.165625,
   3.167187,
   3.16875,
   3.170312,
   3.171875,
   3.173437,
   3.175,
   3.176562,
   3.178125,
   3.179688,
   3.18125,
   3.182812,
   3.184375,
   3.185938,
   3.1875,
   3.189062,
   3.190625,
   3.192188,
   3.19375,
   3.195312,
   3.196875,
   3.198438,
   3.2,
   3.201563,
   3.203125,
   3.204688,
   3.20625,
   3.207813,
   3.209375,
   3.210938,
   3.2125,
   3.215625,
   3.21875,
   3.221875,
   3.225,
   3.228125,
   3.23125,
   3.234375,
   3.2375,
   3.240625,
   3.24375,
   3.246875,
   3.25,
   3.253125,
   3.25625,
   3.2625,
   3.26875,
   3.275,
   3.28125,
   3.2875,
   3.3,
   3.325,
   3.35,
   3.375,
   3.4,
   3.425,
   3.45,
   3.475,
   3.5,
   3.5,
   3.525,
   3.525};
   Double_t JPSIPR_fy7[230] = {
   0,
   391.674,
   391.674,
   389.8809,
   388.1159,
   386.3862,
   384.7014,
   383.0748,
   381.5254,
   380.0812,
   378.7849,
   377.7045,
   376.9557,
   376.7656,
   376.75,
   376.9694,
   377.5149,
   377.9517,
   378.5296,
   379.2814,
   380.2507,
   381.4961,
   383.099,
   384.0688,
   385.1749,
   386.4401,
   387.8929,
   389.5683,
   391.5107,
   393.7766,
   396.4389,
   397.9477,
   399.594,
   401.395,
   403.3708,
   405.5451,
   407.9459,
   410.6067,
   413.552,
   416.6761,
   419.9526,
   423.3851,
   426.9771,
   430.732,
   434.6528,
   438.7424,
   443.0036,
   447.4387,
   452.05,
   456.8395,
   461.8088,
   466.9594,
   472.2924,
   477.8089,
   483.5095,
   489.3949,
   495.4654,
   501.7214,
   508.1633,
   514.7918,
   521.6076,
   528.6125,
   535.8087,
   543.2002,
   550.7929,
   558.5959,
   566.6226,
   574.8925,
   583.3689,
   592.0122,
   600.8151,
   609.7695,
   618.8663,
   628.0955,
   637.4461,
   656.4623,
   675.8061,
   714.953,
   734.4514,
   753.669,
   763.1134,
   772.415,
   781.5482,
   790.4868,
   799.2045,
   807.6744,
   815.8697,
   823.7637,
   831.3298,
   838.5421,
   845.3749,
   851.8037,
   857.8045,
   860.6372,
   863.3546,
   865.954,
   868.4329,
   870.7888,
   873.0193,
   875.1222,
   877.0955,
   878.9371,
   880.6451,
   882.2178,
   883.6535,
   884.9508,
   886.1081,
   887.1244,
   887.9985,
   888.7295,
   889.3165,
   889.7589,
   890.0562,
   890.208,
   890.2141,
   890.0744,
   889.789,
   889.3581,
   888.7822,
   888.0617,
   887.1973,
   886.1898,
   885.0402,
   883.7496,
   882.3193,
   880.7506,
   879.045,
   877.2042,
   875.23,
   873.1242,
   870.889,
   868.5263,
   866.0384,
   863.4278,
   860.6967,
   857.8479,
   854.8839,
   848.6212,
   841.9315,
   834.8386,
   827.3672,
   819.5428,
   811.3916,
   802.9401,
   794.215,
   785.2431,
   776.0512,
   766.6658,
   757.1129,
   747.4182,
   727.7026,
   707.7097,
   667.5828,
   647.753,
   628.2529,
   618.6611,
   609.1911,
   599.854,
   590.6595,
   581.6169,
   572.7342,
   564.0186,
   555.4764,
   547.1134,
   538.9343,
   530.9433,
   523.1438,
   515.5387,
   508.1302,
   500.92,
   493.9093,
   487.0987,
   480.4886,
   474.0786,
   467.8683,
   461.8566,
   456.0423,
   450.4237,
   444.9989,
   439.7656,
   434.7215,
   429.8638,
   425.1896,
   420.6958,
   416.379,
   412.2357,
   408.2623,
   404.455,
   400.8099,
   397.3229,
   393.99,
   390.8069,
   387.7694,
   384.8731,
   382.1136,
   379.4866,
   376.9877,
   374.6124,
   372.3562,
   368.184,
   364.4362,
   361.0788,
   358.0787,
   355.4041,
   353.0246,
   350.9116,
   349.0378,
   347.3779,
   345.9085,
   344.6079,
   343.4561,
   342.4352,
   341.5286,
   340.0009,
   338.7727,
   337.7652,
   336.9174,
   336.1836,
   334.931,
   332.8051,
   330.8169,
   328.8499,
   326.8855,
   324.9213,
   322.9572,
   320.993,
   319.0289,
   319.0289,
   319.0289,
   0};
   graph = new TGraph(230,JPSIPR_fx7,JPSIPR_fy7);
   graph->SetName("JPSIPR");
   graph->SetTitle("Projection of pdfCTAUMASS_Tot_PbPb");
   graph->SetFillColor(1);
   graph->SetLineColor(2);

   ci = TColor::GetColor("#000099");
   graph->SetLineColor(2);
   graph->SetLineStyle(9);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_JPSIPR7 = new TH1F("Graph_JPSIPR7","Projection of pdfCTAUMASS_Tot_PbPb",230,2.48,3.62);
   Graph_JPSIPR7->SetMinimum(0.9792355);
   Graph_JPSIPR7->SetMaximum(979.2355);
   Graph_JPSIPR7->SetDirectory(0);
   Graph_JPSIPR7->SetStats(0);
   Graph_JPSIPR7->SetLineStyle(0);
   Graph_JPSIPR7->SetMarkerStyle(20);
   Graph_JPSIPR7->GetXaxis()->SetLabelFont(42);
   Graph_JPSIPR7->GetXaxis()->SetLabelOffset(0.007);
   Graph_JPSIPR7->GetXaxis()->SetLabelSize(0.05);
   Graph_JPSIPR7->GetXaxis()->SetTitleSize(0.06);
   Graph_JPSIPR7->GetXaxis()->SetTitleOffset(0.9);
   Graph_JPSIPR7->GetXaxis()->SetTitleFont(42);
   Graph_JPSIPR7->GetYaxis()->SetLabelFont(42);
   Graph_JPSIPR7->GetYaxis()->SetLabelOffset(0.007);
   Graph_JPSIPR7->GetYaxis()->SetLabelSize(0.05);
   Graph_JPSIPR7->GetYaxis()->SetTitleSize(0.06);
   Graph_JPSIPR7->GetYaxis()->SetTitleOffset(1.25);
   Graph_JPSIPR7->GetYaxis()->SetTitleFont(42);
   Graph_JPSIPR7->GetZaxis()->SetLabelFont(42);
   Graph_JPSIPR7->GetZaxis()->SetLabelOffset(0.007);
   Graph_JPSIPR7->GetZaxis()->SetLabelSize(0.05);
   Graph_JPSIPR7->GetZaxis()->SetTitleSize(0.06);
   Graph_JPSIPR7->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_JPSIPR7);
   
   graph->Draw("l");
   
   Double_t JPSINOPR_fx8[218] = {
   2.575,
   2.575,
   2.6,
   2.625,
   2.65,
   2.675,
   2.7,
   2.725,
   2.75,
   2.775,
   2.8,
   2.825,
   2.85,
   2.8625,
   2.875,
   2.8875,
   2.9,
   2.90625,
   2.9125,
   2.91875,
   2.925,
   2.93125,
   2.9375,
   2.940625,
   2.94375,
   2.946875,
   2.95,
   2.953125,
   2.95625,
   2.959375,
   2.9625,
   2.964063,
   2.965625,
   2.967188,
   2.96875,
   2.970312,
   2.971875,
   2.973438,
   2.975,
   2.976562,
   2.978125,
   2.979688,
   2.98125,
   2.982813,
   2.984375,
   2.985937,
   2.9875,
   2.989062,
   2.990625,
   2.992188,
   2.99375,
   2.995312,
   2.996875,
   2.998438,
   3,
   3.001562,
   3.003125,
   3.004688,
   3.00625,
   3.007812,
   3.009375,
   3.010938,
   3.0125,
   3.014063,
   3.015625,
   3.017187,
   3.01875,
   3.020312,
   3.021875,
   3.023438,
   3.025,
   3.026562,
   3.028125,
   3.03125,
   3.034375,
   3.0375,
   3.04375,
   3.046875,
   3.05,
   3.051562,
   3.053125,
   3.054688,
   3.05625,
   3.057812,
   3.059375,
   3.060938,
   3.0625,
   3.064062,
   3.065625,
   3.067188,
   3.06875,
   3.070312,
   3.071875,
   3.073438,
   3.075,
   3.075781,
   3.076563,
   3.077344,
   3.078125,
   3.078906,
   3.079688,
   3.080469,
   3.08125,
   3.082031,
   3.082813,
   3.083594,
   3.084375,
   3.085156,
   3.085938,
   3.086719,
   3.0875,
   3.088281,
   3.089063,
   3.089844,
   3.090625,
   3.091406,
   3.092188,
   3.092969,
   3.09375,
   3.094531,
   3.095312,
   3.096094,
   3.096875,
   3.097656,
   3.098438,
   3.099219,
   3.1,
   3.101562,
   3.103125,
   3.104688,
   3.10625,
   3.107813,
   3.109375,
   3.110937,
   3.1125,
   3.114062,
   3.115625,
   3.117188,
   3.11875,
   3.120312,
   3.121875,
   3.123438,
   3.125,
   3.128125,
   3.13125,
   3.1375,
   3.140625,
   3.14375,
   3.146875,
   3.148438,
   3.15,
   3.151562,
   3.153125,
   3.154688,
   3.15625,
   3.157812,
   3.159375,
   3.160937,
   3.1625,
   3.164062,
   3.165625,
   3.167187,
   3.16875,
   3.170312,
   3.171875,
   3.173437,
   3.175,
   3.176562,
   3.178125,
   3.179688,
   3.18125,
   3.182812,
   3.184375,
   3.185938,
   3.1875,
   3.189062,
   3.190625,
   3.192188,
   3.19375,
   3.195312,
   3.196875,
   3.198438,
   3.2,
   3.201563,
   3.203125,
   3.204688,
   3.20625,
   3.209375,
   3.2125,
   3.215625,
   3.21875,
   3.221875,
   3.225,
   3.228125,
   3.23125,
   3.234375,
   3.2375,
   3.240625,
   3.24375,
   3.246875,
   3.25,
   3.25625,
   3.2625,
   3.26875,
   3.275,
   3.2875,
   3.3,
   3.325,
   3.35,
   3.375,
   3.4,
   3.425,
   3.45,
   3.475,
   3.5,
   3.5,
   3.525,
   3.525};
   Double_t JPSINOPR_fy8[218] = {
   0,
   390.2546,
   390.2546,
   388.336,
   386.425,
   384.5234,
   382.6337,
   380.7596,
   378.9061,
   377.0806,
   375.2945,
   373.5661,
   371.9261,
   371.1552,
   370.4309,
   369.7692,
   369.1945,
   368.951,
   368.745,
   368.5854,
   368.4839,
   368.4559,
   368.5233,
   368.6019,
   368.7169,
   368.8743,
   369.0817,
   369.3485,
   369.6864,
   370.1107,
   370.6407,
   370.9531,
   371.3021,
   371.6924,
   372.1293,
   372.6192,
   373.1694,
   373.789,
   374.4845,
   375.2277,
   376.0115,
   376.8369,
   377.7048,
   378.6162,
   379.5719,
   380.5725,
   381.6189,
   382.7117,
   383.8515,
   385.0388,
   386.2741,
   387.5577,
   388.89,
   390.2712,
   391.7015,
   393.1811,
   394.71,
   396.2885,
   397.9165,
   399.5942,
   401.322,
   403.1001,
   404.9293,
   406.8105,
   408.7455,
   410.7365,
   412.7871,
   414.9027,
   417.0733,
   419.2884,
   421.546,
   423.8441,
   426.1801,
   430.9552,
   435.8467,
   440.8256,
   450.9058,
   455.9259,
   460.8711,
   463.2998,
   465.6905,
   468.0363,
   470.3302,
   472.5651,
   474.7339,
   476.8296,
   478.8448,
   480.7727,
   482.6061,
   484.3384,
   485.9629,
   487.4733,
   488.8634,
   490.1278,
   491.2609,
   491.7768,
   492.258,
   492.7041,
   493.1147,
   493.4891,
   493.827,
   494.1279,
   494.3916,
   494.6176,
   494.8057,
   494.9556,
   495.0672,
   495.1402,
   495.1744,
   495.1699,
   495.1265,
   495.0443,
   494.9231,
   494.7632,
   494.5646,
   494.3274,
   494.0519,
   493.7382,
   493.3866,
   492.9974,
   492.5709,
   492.1075,
   491.6077,
   491.0717,
   490.5002,
   489.8936,
   489.2524,
   487.8688,
   486.3542,
   484.7139,
   482.9537,
   481.0795,
   479.0979,
   477.0153,
   474.8385,
   472.5746,
   470.2306,
   467.8136,
   465.3309,
   462.7894,
   460.1963,
   457.5586,
   454.8831,
   449.445,
   443.9329,
   432.8712,
   427.4026,
   422.022,
   416.7583,
   414.1781,
   411.636,
   409.1343,
   406.6753,
   404.2609,
   401.8927,
   399.5723,
   397.301,
   395.0798,
   392.9097,
   390.7914,
   388.7256,
   386.7127,
   384.7529,
   382.8465,
   380.9936,
   379.1941,
   377.4478,
   375.7545,
   374.1138,
   372.5254,
   370.9886,
   369.5029,
   368.0676,
   366.6821,
   365.3455,
   364.057,
   362.8157,
   361.6207,
   360.4709,
   359.3655,
   358.3034,
   357.2834,
   356.3045,
   355.3656,
   354.4655,
   353.603,
   352.7771,
   351.23,
   349.8147,
   348.522,
   347.3424,
   346.267,
   345.2868,
   344.3935,
   343.5788,
   342.8353,
   342.1555,
   341.5328,
   340.9609,
   340.4339,
   339.9467,
   339.0726,
   338.3051,
   337.6174,
   336.9887,
   335.8467,
   334.7925,
   332.7852,
   330.8146,
   328.8497,
   326.8855,
   324.9213,
   322.9572,
   320.993,
   319.0289,
   319.0289,
   319.0289,
   0};
   graph = new TGraph(218,JPSINOPR_fx8,JPSINOPR_fy8);
   graph->SetName("JPSINOPR");
   graph->SetTitle("Projection of pdfCTAUMASS_Tot_PbPb");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#339933");
   graph->SetLineColor(ci);
   graph->SetLineStyle(4);
   graph->SetLineWidth(5);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_JPSINOPR8 = new TH1F("Graph_JPSINOPR8","Projection of pdfCTAUMASS_Tot_PbPb",218,2.48,3.62);
   Graph_JPSINOPR8->SetMinimum(0.5446919);
   Graph_JPSINOPR8->SetMaximum(544.6919);
   Graph_JPSINOPR8->SetDirectory(0);
   Graph_JPSINOPR8->SetStats(0);
   Graph_JPSINOPR8->SetLineStyle(0);
   Graph_JPSINOPR8->SetMarkerStyle(20);
   Graph_JPSINOPR8->GetXaxis()->SetLabelFont(42);
   Graph_JPSINOPR8->GetXaxis()->SetLabelOffset(0.007);
   Graph_JPSINOPR8->GetXaxis()->SetLabelSize(0.05);
   Graph_JPSINOPR8->GetXaxis()->SetTitleSize(0.06);
   Graph_JPSINOPR8->GetXaxis()->SetTitleOffset(0.9);
   Graph_JPSINOPR8->GetXaxis()->SetTitleFont(42);
   Graph_JPSINOPR8->GetYaxis()->SetLabelFont(42);
   Graph_JPSINOPR8->GetYaxis()->SetLabelOffset(0.007);
   Graph_JPSINOPR8->GetYaxis()->SetLabelSize(0.05);
   Graph_JPSINOPR8->GetYaxis()->SetTitleSize(0.06);
   Graph_JPSINOPR8->GetYaxis()->SetTitleOffset(1.25);
   Graph_JPSINOPR8->GetYaxis()->SetTitleFont(42);
   Graph_JPSINOPR8->GetZaxis()->SetLabelFont(42);
   Graph_JPSINOPR8->GetZaxis()->SetLabelOffset(0.007);
   Graph_JPSINOPR8->GetZaxis()->SetLabelSize(0.05);
   Graph_JPSINOPR8->GetZaxis()->SetTitleSize(0.06);
   Graph_JPSINOPR8->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_JPSINOPR8);
   
   graph->Draw("l");
   
   Double_t dOS_fx3005[36] = {
   2.6125,
   2.6375,
   2.6625,
   2.6875,
   2.7125,
   2.7375,
   2.7625,
   2.7875,
   2.8125,
   2.8375,
   2.8625,
   2.8875,
   2.9125,
   2.9375,
   2.9625,
   2.9875,
   3.0125,
   3.0375,
   3.0625,
   3.0875,
   3.1125,
   3.1375,
   3.1625,
   3.1875,
   3.2125,
   3.2375,
   3.2625,
   3.2875,
   3.3125,
   3.3375,
   3.3625,
   3.3875,
   3.4125,
   3.4375,
   3.4625,
   3.4875};
   Double_t dOS_fy3005[36] = {
   407,
   379,
   378,
   398,
   356,
   365,
   371,
   343,
   390,
   377,
   378,
   426,
   390,
   422,
   414,
   463,
   528,
   795,
   969,
   1008,
   933,
   736,
   600,
   453,
   383,
   376,
   330,
   371,
   326,
   342,
   324,
   344,
   297,
   345,
   306,
   288};
   Double_t dOS_felx3005[36] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t dOS_fely3005[36] = {
   20.17424,
   19.46792,
   19.44222,
   19.94994,
   18.86796,
   19.10497,
   19.26136,
   18.52026,
   19.74842,
   19.41649,
   19.44222,
   20.63977,
   19.74842,
   20.54264,
   20.34699,
   21.51743,
   22.97825,
   28.19574,
   31.12876,
   31.74902,
   30.54505,
   27.12932,
   24.4949,
   21.2838,
   19.57039,
   19.39072,
   18.1659,
   19.26136,
   18.05547,
   18.49324,
   18,
   18.54724,
   17.23369,
   18.57418,
   17.49286,
   16.97056};
   Double_t dOS_fehx3005[36] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t dOS_fehy3005[36] = {
   20.17424,
   19.46792,
   19.44222,
   19.94994,
   18.86796,
   19.10497,
   19.26136,
   18.52026,
   19.74842,
   19.41649,
   19.44222,
   20.63977,
   19.74842,
   20.54264,
   20.34699,
   21.51743,
   22.97825,
   28.19574,
   31.12876,
   31.74902,
   30.54505,
   27.12932,
   24.4949,
   21.2838,
   19.57039,
   19.39072,
   18.1659,
   19.26136,
   18.05547,
   18.49324,
   18,
   18.54724,
   17.23369,
   18.57418,
   17.49286,
   16.97056};
   grae = new TGraphAsymmErrors(36,dOS_fx3005,dOS_fy3005,dOS_felx3005,dOS_fehx3005,dOS_fely3005,dOS_fehy3005);
   grae->SetName("dOS");
   grae->SetTitle("Histogram of dOS_DATA_PbPb_plot__invMass");
   grae->SetFillColor(1);
   grae->SetMarkerStyle(8);
   grae->SetMarkerSize(1.2);
   
   TH1F *Graph_dOS3005 = new TH1F("Graph_dOS3005","Histogram of dOS_DATA_PbPb_plot__invMass",100,2.525,3.575);
   Graph_dOS3005->SetMinimum(194.1575);
   Graph_dOS3005->SetMaximum(1116.621);
   Graph_dOS3005->SetDirectory(0);
   Graph_dOS3005->SetStats(0);
   Graph_dOS3005->SetLineStyle(0);
   Graph_dOS3005->SetMarkerStyle(20);
   Graph_dOS3005->GetXaxis()->SetLabelFont(42);
   Graph_dOS3005->GetXaxis()->SetLabelOffset(0.007);
   Graph_dOS3005->GetXaxis()->SetLabelSize(0.05);
   Graph_dOS3005->GetXaxis()->SetTitleSize(0.06);
   Graph_dOS3005->GetXaxis()->SetTitleOffset(0.9);
   Graph_dOS3005->GetXaxis()->SetTitleFont(42);
   Graph_dOS3005->GetYaxis()->SetLabelFont(42);
   Graph_dOS3005->GetYaxis()->SetLabelOffset(0.007);
   Graph_dOS3005->GetYaxis()->SetLabelSize(0.05);
   Graph_dOS3005->GetYaxis()->SetTitleSize(0.06);
   Graph_dOS3005->GetYaxis()->SetTitleOffset(1.25);
   Graph_dOS3005->GetYaxis()->SetTitleFont(42);
   Graph_dOS3005->GetZaxis()->SetLabelFont(42);
   Graph_dOS3005->GetZaxis()->SetLabelOffset(0.007);
   Graph_dOS3005->GetZaxis()->SetLabelSize(0.05);
   Graph_dOS3005->GetZaxis()->SetTitleSize(0.06);
   Graph_dOS3005->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_dOS3005);
   
   grae->Draw("p");
   
   Double_t PDF_fx9[86] = {
   2.575,
   2.575,
   2.6,
   2.625,
   2.65,
   2.675,
   2.7,
   2.725,
   2.75,
   2.775,
   2.8,
   2.825,
   2.85,
   2.875,
   2.9,
   2.925,
   2.9375,
   2.95,
   2.95625,
   2.9625,
   2.96875,
   2.975,
   2.98125,
   2.9875,
   2.99375,
   3,
   3.00625,
   3.0125,
   3.01875,
   3.025,
   3.03125,
   3.0375,
   3.05,
   3.05625,
   3.059375,
   3.0625,
   3.065625,
   3.06875,
   3.071875,
   3.075,
   3.078125,
   3.08125,
   3.084375,
   3.0875,
   3.090625,
   3.09375,
   3.096875,
   3.1,
   3.103125,
   3.10625,
   3.109375,
   3.1125,
   3.115625,
   3.11875,
   3.125,
   3.1375,
   3.14375,
   3.15,
   3.15625,
   3.1625,
   3.16875,
   3.175,
   3.18125,
   3.1875,
   3.19375,
   3.2,
   3.20625,
   3.2125,
   3.21875,
   3.225,
   3.2375,
   3.25,
   3.2625,
   3.275,
   3.3,
   3.325,
   3.35,
   3.375,
   3.4,
   3.425,
   3.45,
   3.475,
   3.5,
   3.5,
   3.525,
   3.525};
   Double_t PDF_fy9[86] = {
   0,
   392.1903,
   392.1903,
   390.4427,
   388.7309,
   387.0637,
   385.4533,
   383.9168,
   382.4781,
   381.1725,
   380.0543,
   379.2096,
   378.785,
   379.0482,
   380.5409,
   384.5302,
   388.4,
   394.7343,
   399.448,
   405.8215,
   414.733,
   427.7605,
   444.8969,
   465.3285,
   489.2799,
   516.8991,
   548.2589,
   583.4081,
   622.571,
   666.0134,
   712.5446,
   761.266,
   860.1565,
   906.9244,
   928.7612,
   949.207,
   967.9922,
   984.856,
   999.5531,
   1011.861,
   1021.586,
   1028.571,
   1032.701,
   1033.903,
   1032.155,
   1027.48,
   1019.952,
   1009.686,
   996.8411,
   981.6106,
   964.2177,
   944.9081,
   923.943,
   901.5918,
   853.8101,
   752.9449,
   703.2569,
   655.7685,
   611.3332,
   570.5086,
   533.6083,
   500.7533,
   471.9156,
   446.9543,
   425.6435,
   407.6958,
   392.783,
   380.5543,
   370.653,
   362.7309,
   351.5408,
   344.7325,
   340.6176,
   338.0476,
   334.9814,
   332.8124,
   330.8178,
   328.85,
   326.8855,
   324.9213,
   322.9572,
   320.993,
   319.0289,
   319.0289,
   319.0289,
   0};
   graph = new TGraph(86,PDF_fx9,PDF_fy9);
   graph->SetName("PDF");
   graph->SetTitle("Projection of pdfCTAUMASS_Tot_PbPb");
   graph->SetFillColor(1);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_PDF9 = new TH1F("Graph_PDF9","Projection of pdfCTAUMASS_Tot_PbPb",100,2.48,3.62);
   Graph_PDF9->SetMinimum(1.137294);
   Graph_PDF9->SetMaximum(1137.294);
   Graph_PDF9->SetDirectory(0);
   Graph_PDF9->SetStats(0);
   Graph_PDF9->SetLineStyle(0);
   Graph_PDF9->SetMarkerStyle(20);
   Graph_PDF9->GetXaxis()->SetLabelFont(42);
   Graph_PDF9->GetXaxis()->SetLabelOffset(0.007);
   Graph_PDF9->GetXaxis()->SetLabelSize(0.05);
   Graph_PDF9->GetXaxis()->SetTitleSize(0.06);
   Graph_PDF9->GetXaxis()->SetTitleOffset(0.9);
   Graph_PDF9->GetXaxis()->SetTitleFont(42);
   Graph_PDF9->GetYaxis()->SetLabelFont(42);
   Graph_PDF9->GetYaxis()->SetLabelOffset(0.007);
   Graph_PDF9->GetYaxis()->SetLabelSize(0.05);
   Graph_PDF9->GetYaxis()->SetTitleSize(0.06);
   Graph_PDF9->GetYaxis()->SetTitleOffset(1.25);
   Graph_PDF9->GetYaxis()->SetTitleFont(42);
   Graph_PDF9->GetZaxis()->SetLabelFont(42);
   Graph_PDF9->GetZaxis()->SetLabelOffset(0.007);
   Graph_PDF9->GetZaxis()->SetLabelSize(0.05);
   Graph_PDF9->GetZaxis()->SetTitleSize(0.06);
   Graph_PDF9->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_PDF9);
   
   graph->Draw("l");
   
   TH1D *frame_25fab720__6 = new TH1D("frame_25fab720__6","",36,2.6,3.5);
   frame_25fab720__6->SetBinContent(1,1091.736);
   frame_25fab720__6->SetMinimum(224.1707);
   frame_25fab720__6->SetMaximum(2746.091);
   frame_25fab720__6->SetEntries(1);
   frame_25fab720__6->SetDirectory(0);
   frame_25fab720__6->SetStats(0);
   frame_25fab720__6->SetLineStyle(0);
   frame_25fab720__6->SetMarkerStyle(20);
   frame_25fab720__6->GetXaxis()->CenterTitle(true);
   frame_25fab720__6->GetXaxis()->SetLabelFont(42);
   frame_25fab720__6->GetXaxis()->SetLabelOffset(3);
   frame_25fab720__6->GetXaxis()->SetLabelSize(0.05);
   frame_25fab720__6->GetXaxis()->SetTitleSize(0.045);
   frame_25fab720__6->GetXaxis()->SetTitleOffset(3);
   frame_25fab720__6->GetXaxis()->SetTitleFont(42);
   frame_25fab720__6->GetYaxis()->SetTitle("Events / ( 0.025 GeV/c^{2} )");
   frame_25fab720__6->GetYaxis()->SetLabelFont(42);
   frame_25fab720__6->GetYaxis()->SetLabelOffset(0.007);
   frame_25fab720__6->GetYaxis()->SetTitleOffset(1.7);
   frame_25fab720__6->GetYaxis()->SetTitleFont(42);
   frame_25fab720__6->GetZaxis()->SetLabelFont(42);
   frame_25fab720__6->GetZaxis()->SetLabelOffset(0.007);
   frame_25fab720__6->GetZaxis()->SetLabelSize(0.05);
   frame_25fab720__6->GetZaxis()->SetTitleSize(0.06);
   frame_25fab720__6->GetZaxis()->SetTitleFont(42);
   frame_25fab720__6->Draw("AXISSAME");
//   TLatex *   tex = new TLatex(0.2,0.735,"N_{bkg}^{PbPb} = 12688#pm89 ");
//tex->SetNDC();
//   tex->SetTextSize(0.026);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.2,0.69,"N_{J/#psi}^{PbPb} = 3622#pm59 ");
//tex->SetNDC();
//   tex->SetTextSize(0.026);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.2,0.645,"b_{J/#psi}^{PbPb} = 0.2105#pm0.0118");
//tex->SetNDC();
//   tex->SetTextSize(0.026);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.2,0.86,"2015 HI Soft Muon ID");
//tex->SetNDC();
//   tex->SetTextSize(0.03);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.2,0.815,"HLT_HIL1DoubleMu0_v1");
//tex->SetNDC();
//   tex->SetTextSize(0.03);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.5175,0.725,"1.8 < |y^{#mu#mu}| < 2.4");
//tex->SetNDC();
//   tex->SetTextSize(0.03);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.5175,0.68,"4.5 < p_{T}^{#mu#mu} < 5.5 GeV/c");
//tex->SetNDC();
//   tex->SetTextSize(0.03);
//   tex->SetLineWidth(2);
//   tex->Draw();
//      tex = new TLatex(0.5175,0.635,"Cent. 0-100%");
//tex->SetNDC();
//   tex->SetTextSize(0.03);
//   tex->SetLineWidth(2);
//   tex->Draw();
  
  TLatex * tex = new TLatex(0.21,0.78,"4.5 #leq p_{T}^{#scale[1.3]{#mu#mu}} < 5.5 GeV/c");
  tex->SetNDC();
  tex->SetTextSize(0.036);
  tex->SetLineWidth(2);
  tex->Draw();
  tex = new TLatex(0.21,0.84,"1.8 #leq |y^{#scale[1.3]{#mu#mu}}| < 2.4");
  tex->SetNDC();
  tex->SetTextSize(0.036);
  tex->SetLineWidth(2);
  tex->Draw();
  tex = new TLatex(0.21,0.72,"Cent. 0-100%");
  tex->SetNDC();
  tex->SetTextSize(0.036);
  tex->SetLineWidth(2);
  tex->Draw();
  
  //   TLegend *leg = new TLegend(0.49,0.70,0.718,0.8809,NULL,"brNDC");
//  TLegend *leg = new TLegend(0.6240602,0.498708,0.8508772,0.6795866,NULL,"brNDC");
//  TLegend *leg = new TLegend(0.2055138,0.4728682,0.4323308,0.6537468,NULL,"brNDC");
  TLegend *leg = new TLegend(0.1766917,0.4702842,0.4035088,0.6511628,NULL,"brNDC");
  leg->SetTextFont(62);
  leg->SetTextSize(0.036);
  leg->SetLineColor(0);
  leg->SetLineStyle(0);
  leg->SetLineWidth(0);
  leg->SetFillColor(0);
  leg->SetFillStyle(1001);
  TLegendEntry *entry=leg->AddEntry("dOS","Data","pe");
  entry->SetLineColor(1);
  entry->SetLineStyle(1);
  entry->SetLineWidth(1);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(8);
  entry->SetMarkerSize(1.2);
  entry->SetTextFont(62);
  entry=leg->AddEntry("PDF","Total fit","l");
  
  ci = TColor::GetColor("#0000ff");
  entry->SetLineColor(ci);
  entry->SetLineStyle(1);
  entry->SetLineWidth(3);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(21);
  entry->SetMarkerSize(1);
  entry->SetTextFont(62);
  entry=leg->AddEntry("JPSIPR","Prompt J/#psi","l");
  
  ci = TColor::GetColor("#660000");
  entry->SetLineColor(ci);
  entry->SetLineStyle(9);
  entry->SetLineWidth(3);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(21);
  entry->SetMarkerSize(1);
  entry->SetTextFont(62);
  entry=leg->AddEntry("JPSINOPR","J/#psi from b hadrons","l");
  
  ci = TColor::GetColor("#006600");
  entry->SetLineColor(ci);
  entry->SetLineStyle(4);
  entry->SetLineWidth(5);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(21);
  entry->SetMarkerSize(1);
  entry->SetTextFont(62);
  
  ci = TColor::GetColor("#9966ff");
  entry->SetFillColor(ci);
  entry->SetFillStyle(1001);
  entry->SetLineColor(1);
  entry->SetLineStyle(1);
  entry->SetLineWidth(3);
  entry->SetMarkerColor(1);
  entry->SetMarkerStyle(21);
  entry->SetMarkerSize(1);
  entry->SetTextFont(62);
  entry=leg->AddEntry("BKG","Background","fl");
  
  ci = TColor::GetColor("#99ccff");
  entry->SetFillColor(ci);
  entry->SetFillStyle(1001);
  
  leg->Draw();
  //      tex = new TLatex(0.96,0.9424,"PbPb 351 #mub^{-1} (5.02 TeV)");
  tex = new TLatex(0.96,0.9424,"PbPb 368 #mub^{-1} (5.02 TeV)");
  tex->SetNDC();
  tex->SetTextAlign(31);
  tex->SetTextFont(42);
  tex->SetTextSize(0.04);
  tex->SetLineWidth(2);
  tex->Draw();
  tex = new TLatex(0.16,0.9424,"");
  tex->SetNDC();
  tex->SetTextFont(42);
  tex->SetTextSize(0.04);
  tex->SetLineWidth(2);
  tex->Draw();
  tex = new TLatex(0.914,0.869275,"CMS");
  tex->SetNDC();
  tex->SetTextAlign(33);
  tex->SetTextFont(61);
  tex->SetTextSize(0.06);
  tex->SetLineWidth(2);
  tex->Draw();
//  tex = new TLatex(0.914,0.797275,"Preliminary");
//  tex->SetNDC();
//  tex->SetTextAlign(33);
//  tex->SetTextFont(52);
//  tex->SetTextSize(0.0456);
//  tex->SetLineWidth(2);
//  tex->Draw();
  //   pad1_PbPb->Modified();
  cMassFig_PbPb->cd();
  
//  \\\\\//////
//  
//  TLatex * tex = new TLatex(0.21,0.77,"4.5 #leq p_{T}^{#mu#mu} < 5.5 GeV/c");
//  tex->SetNDC();
//  tex->SetTextSize(0.03);
//  tex->SetLineWidth(2);
//  tex->Draw();
//  tex = new TLatex(0.21,0.86,"1.8 #leq |y^{#mu#mu}| < 2.4");
//  tex->SetNDC();
//  tex->SetTextSize(0.03);
//  tex->SetLineWidth(2);
//  tex->Draw();
//  tex = new TLatex(0.21,0.725,"Cent. 0-100%");
//  tex->SetNDC();
//  tex->SetTextSize(0.03);
//  tex->SetLineWidth(2);
//  tex->Draw();
//  
//   TLegend *leg = new TLegend(0.5175,0.7602,0.718,0.8809,NULL,"brNDC");
//   leg->SetTextFont(62);
//   leg->SetTextSize(0.03);
//   leg->SetLineColor(1);
//   leg->SetLineStyle(1);
//   leg->SetLineWidth(1);
//   leg->SetFillColor(0);
//   leg->SetFillStyle(1001);
//   TLegendEntry *entry=leg->AddEntry("dOS","Data","pe");
//   entry->SetLineColor(1);
//   entry->SetLineStyle(1);
//   entry->SetLineWidth(1);
//   entry->SetMarkerColor(1);
//   entry->SetMarkerStyle(8);
//   entry->SetMarkerSize(1.2);
//   entry->SetTextFont(62);
//   entry=leg->AddEntry("PDF","Total fit","l");
//   entry->SetLineColor(1);
//   entry->SetLineStyle(1);
//   entry->SetLineWidth(3);
//   entry->SetMarkerColor(1);
//   entry->SetMarkerStyle(21);
//   entry->SetMarkerSize(1);
//   entry->SetTextFont(62);
//   entry=leg->AddEntry("JPSIPR","Prompt J/#psi","l");
//
//   ci = TColor::GetColor("#660000");
//   entry->SetLineColor(ci);
//   entry->SetLineStyle(1);
//   entry->SetLineWidth(3);
//   entry->SetMarkerColor(1);
//   entry->SetMarkerStyle(21);
//   entry->SetMarkerSize(1);
//   entry->SetTextFont(62);
//   entry=leg->AddEntry("JPSINOPR","Non-Prompt J/#psi","l");
//
//   ci = TColor::GetColor("#006600");
//   entry->SetLineColor(ci);
//   entry->SetLineStyle(1);
//   entry->SetLineWidth(3);
//   entry->SetMarkerColor(1);
//   entry->SetMarkerStyle(21);
//   entry->SetMarkerSize(1);
//   entry->SetTextFont(62);
//   entry=leg->AddEntry("BKG","Background","fl");
//
//   ci = TColor::GetColor("#99ccff");
//   entry->SetFillColor(ci);
//   entry->SetFillStyle(1001);
//
//   ci = TColor::GetColor("#0000ff");
//   entry->SetLineColor(ci);
//   entry->SetLineStyle(2);
//   entry->SetLineWidth(3);
//   entry->SetMarkerColor(1);
//   entry->SetMarkerStyle(21);
//   entry->SetMarkerSize(1);
//   entry->SetTextFont(62);
//   leg->Draw();

   cMassFig_PbPb->cd();
   cMassFig_PbPb->Modified();
   cMassFig_PbPb->cd();
   cMassFig_PbPb->SetSelected(cMassFig_PbPb);
}
void fitLMC_c070116_LL1_floatsigmalfixmu_nobkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Wed Jul  6 19:50:47 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(3754.321,-26.4,6223.457,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_47a6360__1 = new TH1D("frame_47a6360__1","",100,4100,6100);
   frame_47a6360__1->SetBinContent(1,11.22376);
   frame_47a6360__1->SetMinimum(-8.8);
   frame_47a6360__1->SetMaximum(8.8);
   frame_47a6360__1->SetEntries(1);
   frame_47a6360__1->SetDirectory(0);
   frame_47a6360__1->SetStats(0);
   frame_47a6360__1->SetLineWidth(2);
   frame_47a6360__1->SetMarkerStyle(20);
   frame_47a6360__1->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_47a6360__1->GetXaxis()->SetNdivisions(505);
   frame_47a6360__1->GetXaxis()->SetLabelFont(132);
   frame_47a6360__1->GetXaxis()->SetLabelOffset(0.01);
   frame_47a6360__1->GetXaxis()->SetLabelSize(0.15);
   frame_47a6360__1->GetXaxis()->SetTitleSize(0.2);
   frame_47a6360__1->GetXaxis()->SetTitleOffset(1.1);
   frame_47a6360__1->GetXaxis()->SetTitleFont(132);
   frame_47a6360__1->GetYaxis()->SetTitle("Pull");
   frame_47a6360__1->GetYaxis()->CenterTitle(true);
   frame_47a6360__1->GetYaxis()->SetNdivisions(505);
   frame_47a6360__1->GetYaxis()->SetLabelFont(132);
   frame_47a6360__1->GetYaxis()->SetLabelOffset(0.01);
   frame_47a6360__1->GetYaxis()->SetLabelSize(0.15);
   frame_47a6360__1->GetYaxis()->SetTitleSize(0.15);
   frame_47a6360__1->GetYaxis()->SetTitleOffset(0.45);
   frame_47a6360__1->GetYaxis()->SetTitleFont(132);
   frame_47a6360__1->GetZaxis()->SetLabelFont(132);
   frame_47a6360__1->GetZaxis()->SetLabelSize(0.06);
   frame_47a6360__1->GetZaxis()->SetTitleSize(0.072);
   frame_47a6360__1->GetZaxis()->SetTitleOffset(1.2);
   frame_47a6360__1->GetZaxis()->SetTitleFont(132);
   frame_47a6360__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[87] = {
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030};
   Double_t pull_Hist_curvetot_fy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0.7803311,
   1.427949,
   0.06505515,
   9.054404,
   9.644772,
   0.7725062,
   0.8209224,
   0.8516202,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_felx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehx3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[87] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(87,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr and Projection of totalPdf",100,4138,6202);
   Graph_pull_Hist_curvetot3001->SetMinimum(-2.092917);
   Graph_pull_Hist_curvetot3001->SetMaximum(11.80274);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_47a6360__2 = new TH1D("frame_47a6360__2","",100,4100,6100);
   frame_47a6360__2->SetBinContent(1,11.22376);
   frame_47a6360__2->SetMinimum(-8.8);
   frame_47a6360__2->SetMaximum(8.8);
   frame_47a6360__2->SetEntries(1);
   frame_47a6360__2->SetDirectory(0);
   frame_47a6360__2->SetStats(0);
   frame_47a6360__2->SetLineWidth(2);
   frame_47a6360__2->SetMarkerStyle(20);
   frame_47a6360__2->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_47a6360__2->GetXaxis()->SetNdivisions(505);
   frame_47a6360__2->GetXaxis()->SetLabelFont(132);
   frame_47a6360__2->GetXaxis()->SetLabelOffset(0.01);
   frame_47a6360__2->GetXaxis()->SetLabelSize(0.15);
   frame_47a6360__2->GetXaxis()->SetTitleSize(0.2);
   frame_47a6360__2->GetXaxis()->SetTitleOffset(1.1);
   frame_47a6360__2->GetXaxis()->SetTitleFont(132);
   frame_47a6360__2->GetYaxis()->SetTitle("Pull");
   frame_47a6360__2->GetYaxis()->CenterTitle(true);
   frame_47a6360__2->GetYaxis()->SetNdivisions(505);
   frame_47a6360__2->GetYaxis()->SetLabelFont(132);
   frame_47a6360__2->GetYaxis()->SetLabelOffset(0.01);
   frame_47a6360__2->GetYaxis()->SetLabelSize(0.15);
   frame_47a6360__2->GetYaxis()->SetTitleSize(0.15);
   frame_47a6360__2->GetYaxis()->SetTitleOffset(0.45);
   frame_47a6360__2->GetYaxis()->SetTitleFont(132);
   frame_47a6360__2->GetZaxis()->SetLabelFont(132);
   frame_47a6360__2->GetZaxis()->SetLabelSize(0.06);
   frame_47a6360__2->GetZaxis()->SetTitleSize(0.072);
   frame_47a6360__2->GetZaxis()->SetTitleOffset(1.2);
   frame_47a6360__2->GetZaxis()->SetTitleFont(132);
   frame_47a6360__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(0,0,1,1);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetLogy();
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4645af0__3 = new TH1D("frame_4645af0__3","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4645af0__3->SetBinContent(1,3310.288);
   frame_4645af0__3->SetMinimum(0);
   frame_4645af0__3->SetMaximum(7500);
   frame_4645af0__3->SetEntries(2);
   frame_4645af0__3->SetDirectory(0);
   frame_4645af0__3->SetStats(0);
   frame_4645af0__3->SetLineWidth(2);
   frame_4645af0__3->SetMarkerStyle(20);
   frame_4645af0__3->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4645af0__3->GetXaxis()->SetNdivisions(505);
   frame_4645af0__3->GetXaxis()->SetLabelFont(132);
   frame_4645af0__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4645af0__3->GetXaxis()->SetLabelSize(0.06);
   frame_4645af0__3->GetXaxis()->SetTitleSize(0.072);
   frame_4645af0__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4645af0__3->GetXaxis()->SetTitleFont(132);
   frame_4645af0__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4645af0__3->GetYaxis()->SetLabelFont(132);
   frame_4645af0__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4645af0__3->GetYaxis()->SetLabelSize(0.06);
   frame_4645af0__3->GetYaxis()->SetTitleSize(0.072);
   frame_4645af0__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4645af0__3->GetYaxis()->SetTitleFont(132);
   frame_4645af0__3->GetZaxis()->SetLabelFont(132);
   frame_4645af0__3->GetZaxis()->SetLabelSize(0.06);
   frame_4645af0__3->GetZaxis()->SetTitleSize(0.072);
   frame_4645af0__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4645af0__3->GetZaxis()->SetTitleFont(132);
   frame_4645af0__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   4110,
   4130,
   4150,
   4170,
   4190,
   4210,
   4230,
   4250,
   4270,
   4290,
   4310,
   4330,
   4350,
   4370,
   4390,
   4410,
   4430,
   4450,
   4470,
   4490,
   4510,
   4530,
   4550,
   4570,
   4590,
   4610,
   4630,
   4650,
   4670,
   4690,
   4710,
   4730,
   4750,
   4770,
   4790,
   4810,
   4830,
   4850,
   4870,
   4890,
   4910,
   4930,
   4950,
   4970,
   4990,
   5010,
   5030,
   5050,
   5070,
   5090,
   5110,
   5130,
   5150,
   5170,
   5190,
   5210,
   5230,
   5250,
   5270,
   5290,
   5310,
   5330,
   5350,
   5370,
   5390,
   5410,
   5430,
   5450,
   5470,
   5490,
   5510,
   5530,
   5550,
   5570,
   5590,
   5610,
   5630,
   5650,
   5670,
   5690,
   5710,
   5730,
   5750,
   5770,
   5790,
   5810,
   5830,
   5850,
   5870,
   5890,
   5910,
   5930,
   5950,
   5970,
   5990,
   6010,
   6030,
   6050,
   6070,
   6090};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   5,
   30,
   1308,
   1283,
   36,
   7,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10,
   10};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   1,
   2.236068,
   5.477226,
   36.16628,
   35.81899,
   6,
   2.645751,
   1.414214,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of LMC_plot__Bs_LOKI_MASS_JpsiConstr",100,3900,6300);
   Graph_Hist3002->SetMinimum(1.478583);
   Graph_Hist3002->SetMaximum(1478.583);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5646.325,
   5648.5,
   5652.85,
   5657.2,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t curvetot_fy1[128] = {
   2.641671e-14,
   3.083583e-14,
   3.606647e-14,
   4.22713e-14,
   4.964839e-14,
   5.843959e-14,
   6.894096e-14,
   8.151596e-14,
   9.661198e-14,
   1.147814e-13,
   1.367083e-13,
   1.632422e-13,
   1.954419e-13,
   2.34631e-13,
   2.824697e-13,
   3.410475e-13,
   4.130042e-13,
   5.016864e-13,
   6.113531e-13,
   7.474463e-13,
   9.169469e-13,
   1.128848e-12,
   1.394785e-12,
   1.72988e-12,
   2.153878e-12,
   2.692683e-12,
   3.380449e-12,
   4.262445e-12,
   5.398991e-12,
   6.870912e-12,
   8.787139e-12,
   1.129537e-11,
   1.459713e-11,
   1.896921e-11,
   2.479432e-11,
   3.260552e-11,
   4.315072e-11,
   5.748756e-11,
   7.712394e-11,
   1.042282e-10,
   1.419463e-10,
   1.948863e-10,
   2.698652e-10,
   3.770732e-10,
   5.319131e-10,
   7.57939e-10,
   1.091619e-09,
   1.590156e-09,
   2.34454e-09,
   3.501654e-09,
   5.30238e-09,
   8.14847e-09,
   1.272218e-08,
   2.020476e-08,
   3.268456e-08,
   5.393757e-08,
   9.095971e-08,
   1.570604e-07,
   2.783015e-07,
   5.073559e-07,
   9.544428e-07,
   1.85923e-06,
   3.765582e-06,
   7.96795e-06,
   1.771712e-05,
   4.168914e-05,
   0.0001047096,
   0.000283768,
   0.0008411969,
   0.002776511,
   0.0104477,
   0.04629297,
   0.252919,
   1.825081,
   5.617464,
   19.40548,
   37.96221,
   53.87247,
   77.25328,
   112.0161,
   164.3475,
   244.1745,
   367.6418,
   559.4869,
   852.6256,
   1280.633,
   1850.024,
   2487.092,
   2999.567,
   3152.655,
   2862.992,
   2283.252,
   1652.74,
   1126.108,
   744.5742,
   488.1311,
   321.6216,
   214.6282,
   145.6341,
   100.639,
   70.84377,
   50.7748,
   37.01846,
   20.62332,
   12.14304,
   2.199217,
   0.6133427,
   0.2223733,
   0.09598214,
   0.04688729,
   0.02511773,
   0.01445048,
   0.008799079,
   0.005611409,
   0.003718549,
   0.002545241,
   0.001790992,
   0.001290737,
   0.0009498223,
   0.0007119077,
   0.0005423525,
   0.0004192375,
   0.0003283356,
   0.0002601995,
   0.0002084266,
   0.0001685961,
   0.0001376041,
   0.0001376041};
   TGraph *graph = new TGraph(128,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",128,4126,6214);
   Graph_curvetot1->SetMinimum(2.377504e-14);
   Graph_curvetot1->SetMaximum(3467.921);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t sigL_fx2[128] = {
   4300,
   4317.4,
   4334.8,
   4352.2,
   4369.6,
   4387,
   4404.4,
   4421.8,
   4439.2,
   4456.6,
   4474,
   4491.4,
   4508.8,
   4526.2,
   4543.6,
   4561,
   4578.4,
   4595.8,
   4613.2,
   4630.6,
   4648,
   4665.4,
   4682.8,
   4700.2,
   4717.6,
   4735,
   4752.4,
   4769.8,
   4787.2,
   4804.6,
   4822,
   4839.4,
   4856.8,
   4874.2,
   4891.6,
   4909,
   4926.4,
   4943.8,
   4961.2,
   4978.6,
   4996,
   5013.4,
   5030.8,
   5048.2,
   5065.6,
   5083,
   5100.4,
   5117.8,
   5135.2,
   5152.6,
   5170,
   5187.4,
   5204.8,
   5222.2,
   5239.6,
   5257,
   5274.4,
   5291.8,
   5309.2,
   5326.6,
   5344,
   5361.4,
   5378.8,
   5396.2,
   5413.6,
   5431,
   5448.4,
   5465.8,
   5483.2,
   5500.6,
   5518,
   5535.4,
   5552.8,
   5570.2,
   5578.9,
   5587.6,
   5591.95,
   5594.125,
   5596.3,
   5598.475,
   5600.65,
   5602.825,
   5605,
   5607.175,
   5609.35,
   5611.525,
   5613.7,
   5615.875,
   5618.05,
   5620.225,
   5622.4,
   5624.575,
   5626.75,
   5628.925,
   5631.1,
   5633.275,
   5635.45,
   5637.625,
   5639.8,
   5641.975,
   5644.15,
   5646.325,
   5648.5,
   5652.85,
   5657.2,
   5674.6,
   5692,
   5709.4,
   5726.8,
   5744.2,
   5761.6,
   5779,
   5796.4,
   5813.8,
   5831.2,
   5848.6,
   5866,
   5883.4,
   5900.8,
   5918.2,
   5935.6,
   5953,
   5970.4,
   5987.8,
   6005.2,
   6022.6,
   6040,
   6040};
   Double_t sigL_fy2[128] = {
   2.641671e-14,
   3.083583e-14,
   3.606647e-14,
   4.22713e-14,
   4.964839e-14,
   5.843959e-14,
   6.894096e-14,
   8.151596e-14,
   9.661198e-14,
   1.147814e-13,
   1.367083e-13,
   1.632422e-13,
   1.954419e-13,
   2.34631e-13,
   2.824697e-13,
   3.410475e-13,
   4.130042e-13,
   5.016864e-13,
   6.113531e-13,
   7.474463e-13,
   9.169469e-13,
   1.128848e-12,
   1.394785e-12,
   1.72988e-12,
   2.153878e-12,
   2.692683e-12,
   3.380449e-12,
   4.262445e-12,
   5.398991e-12,
   6.870912e-12,
   8.787139e-12,
   1.129537e-11,
   1.459713e-11,
   1.896921e-11,
   2.479432e-11,
   3.260552e-11,
   4.315072e-11,
   5.748756e-11,
   7.712394e-11,
   1.042282e-10,
   1.419463e-10,
   1.948863e-10,
   2.698652e-10,
   3.770732e-10,
   5.319131e-10,
   7.57939e-10,
   1.091619e-09,
   1.590156e-09,
   2.34454e-09,
   3.501654e-09,
   5.30238e-09,
   8.14847e-09,
   1.272218e-08,
   2.020476e-08,
   3.268456e-08,
   5.393757e-08,
   9.095971e-08,
   1.570604e-07,
   2.783015e-07,
   5.073559e-07,
   9.544428e-07,
   1.85923e-06,
   3.765582e-06,
   7.96795e-06,
   1.771712e-05,
   4.168914e-05,
   0.0001047096,
   0.000283768,
   0.0008411969,
   0.002776511,
   0.0104477,
   0.04629297,
   0.252919,
   1.825081,
   5.617464,
   19.40548,
   37.96221,
   53.87247,
   77.25328,
   112.0161,
   164.3475,
   244.1745,
   367.6418,
   559.4869,
   852.6256,
   1280.633,
   1850.024,
   2487.092,
   2999.567,
   3152.655,
   2862.992,
   2283.252,
   1652.74,
   1126.108,
   744.5742,
   488.1311,
   321.6216,
   214.6282,
   145.6341,
   100.639,
   70.84377,
   50.7748,
   37.01846,
   20.62332,
   12.14304,
   2.199217,
   0.6133427,
   0.2223733,
   0.09598214,
   0.04688729,
   0.02511773,
   0.01445048,
   0.008799079,
   0.005611409,
   0.003718549,
   0.002545241,
   0.001790992,
   0.001290737,
   0.0009498223,
   0.0007119077,
   0.0005423525,
   0.0004192375,
   0.0003283356,
   0.0002601995,
   0.0002084266,
   0.0001685961,
   0.0001376041,
   0.0001376041};
   graph = new TGraph(128,sigL_fx2,sigL_fy2);
   graph->SetName("sigL");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_sigL2 = new TH1F("Graph_sigL2","Projection of totalPdf",128,4126,6214);
   Graph_sigL2->SetMinimum(2.377504e-14);
   Graph_sigL2->SetMaximum(3467.921);
   Graph_sigL2->SetDirectory(0);
   Graph_sigL2->SetStats(0);
   Graph_sigL2->SetLineWidth(2);
   Graph_sigL2->SetMarkerStyle(20);
   Graph_sigL2->GetXaxis()->SetNdivisions(505);
   Graph_sigL2->GetXaxis()->SetLabelFont(132);
   Graph_sigL2->GetXaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetXaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetXaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetXaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetXaxis()->SetTitleFont(132);
   Graph_sigL2->GetYaxis()->SetLabelFont(132);
   Graph_sigL2->GetYaxis()->SetLabelOffset(0.01);
   Graph_sigL2->GetYaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetYaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetYaxis()->SetTitleOffset(0.95);
   Graph_sigL2->GetYaxis()->SetTitleFont(132);
   Graph_sigL2->GetZaxis()->SetLabelFont(132);
   Graph_sigL2->GetZaxis()->SetLabelSize(0.06);
   Graph_sigL2->GetZaxis()->SetTitleSize(0.072);
   Graph_sigL2->GetZaxis()->SetTitleOffset(1.2);
   Graph_sigL2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_sigL2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.2,0.02,0.4,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("sigL","#Lambda signal (hypatia)","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4645af0__4 = new TH1D("frame_4645af0__4","A RooPlot of \"m(J/#psi #Lambda)\"",100,4100,6100);
   frame_4645af0__4->SetBinContent(1,3310.288);
   frame_4645af0__4->SetMinimum(0);
   frame_4645af0__4->SetMaximum(7500);
   frame_4645af0__4->SetEntries(2);
   frame_4645af0__4->SetDirectory(0);
   frame_4645af0__4->SetStats(0);
   frame_4645af0__4->SetLineWidth(2);
   frame_4645af0__4->SetMarkerStyle(20);
   frame_4645af0__4->GetXaxis()->SetTitle("m(J/#psi #Lambda) (MeV)");
   frame_4645af0__4->GetXaxis()->SetNdivisions(505);
   frame_4645af0__4->GetXaxis()->SetLabelFont(132);
   frame_4645af0__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4645af0__4->GetXaxis()->SetLabelSize(0.06);
   frame_4645af0__4->GetXaxis()->SetTitleSize(0.072);
   frame_4645af0__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4645af0__4->GetXaxis()->SetTitleFont(132);
   frame_4645af0__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4645af0__4->GetYaxis()->SetLabelFont(132);
   frame_4645af0__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4645af0__4->GetYaxis()->SetLabelSize(0.06);
   frame_4645af0__4->GetYaxis()->SetTitleSize(0.072);
   frame_4645af0__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4645af0__4->GetYaxis()->SetTitleFont(132);
   frame_4645af0__4->GetZaxis()->SetLabelFont(132);
   frame_4645af0__4->GetZaxis()->SetLabelSize(0.06);
   frame_4645af0__4->GetZaxis()->SetTitleSize(0.072);
   frame_4645af0__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4645af0__4->GetZaxis()->SetTitleFont(132);
   frame_4645af0__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 18
0
void fitLMLL1testbkg3_2b()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Tue May 10 15:09:08 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(1075.63,-26.4,1149.704,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_4b4ab60__1 = new TH1D("frame_4b4ab60__1","",100,1086,1146);
   frame_4b4ab60__1->SetBinContent(1,3.727281);
   frame_4b4ab60__1->SetMinimum(-8.8);
   frame_4b4ab60__1->SetMaximum(8.8);
   frame_4b4ab60__1->SetEntries(1);
   frame_4b4ab60__1->SetDirectory(0);
   frame_4b4ab60__1->SetStats(0);
   frame_4b4ab60__1->SetLineWidth(2);
   frame_4b4ab60__1->SetMarkerStyle(20);
   frame_4b4ab60__1->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4b4ab60__1->GetXaxis()->SetNdivisions(505);
   frame_4b4ab60__1->GetXaxis()->SetLabelFont(132);
   frame_4b4ab60__1->GetXaxis()->SetLabelOffset(0.01);
   frame_4b4ab60__1->GetXaxis()->SetLabelSize(0.15);
   frame_4b4ab60__1->GetXaxis()->SetTitleSize(0.2);
   frame_4b4ab60__1->GetXaxis()->SetTitleOffset(1.1);
   frame_4b4ab60__1->GetXaxis()->SetTitleFont(132);
   frame_4b4ab60__1->GetYaxis()->SetTitle("Pull");
   frame_4b4ab60__1->GetYaxis()->CenterTitle(true);
   frame_4b4ab60__1->GetYaxis()->SetNdivisions(505);
   frame_4b4ab60__1->GetYaxis()->SetLabelFont(132);
   frame_4b4ab60__1->GetYaxis()->SetLabelOffset(0.01);
   frame_4b4ab60__1->GetYaxis()->SetLabelSize(0.15);
   frame_4b4ab60__1->GetYaxis()->SetTitleSize(0.15);
   frame_4b4ab60__1->GetYaxis()->SetTitleOffset(0.45);
   frame_4b4ab60__1->GetYaxis()->SetTitleFont(132);
   frame_4b4ab60__1->GetZaxis()->SetLabelFont(132);
   frame_4b4ab60__1->GetZaxis()->SetLabelSize(0.06);
   frame_4b4ab60__1->GetZaxis()->SetTitleSize(0.072);
   frame_4b4ab60__1->GetZaxis()->SetTitleOffset(1.2);
   frame_4b4ab60__1->GetZaxis()->SetTitleFont(132);
   frame_4b4ab60__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[20] = {
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5};
   Double_t pull_Hist_curvetot_fy3001[20] = {
   0.7703994,
   -0.4473345,
   0.4429106,
   0.2770909,
   0.1097946,
   0.4550631,
   1.019485,
   0.1328836,
   0.6008695,
   -1.353143,
   -0.361212,
   0.9866482,
   -0.557512,
   2.40721,
   -1.994214,
   -0.6344933,
   0.0160792,
   -1.419189,
   -0.6991082,
   0.9308424};
   Double_t pull_Hist_curvetot_felx3001[20] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[20] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[20] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[20] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(20,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_M and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_M and Projection of totalPdf",100,1122.96,1136.64);
   Graph_pull_Hist_curvetot3001->SetMinimum(-3.634356);
   Graph_pull_Hist_curvetot3001->SetMaximum(4.047352);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_4b4ab60__2 = new TH1D("frame_4b4ab60__2","",100,1086,1146);
   frame_4b4ab60__2->SetBinContent(1,3.727281);
   frame_4b4ab60__2->SetMinimum(-8.8);
   frame_4b4ab60__2->SetMaximum(8.8);
   frame_4b4ab60__2->SetEntries(1);
   frame_4b4ab60__2->SetDirectory(0);
   frame_4b4ab60__2->SetStats(0);
   frame_4b4ab60__2->SetLineWidth(2);
   frame_4b4ab60__2->SetMarkerStyle(20);
   frame_4b4ab60__2->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4b4ab60__2->GetXaxis()->SetNdivisions(505);
   frame_4b4ab60__2->GetXaxis()->SetLabelFont(132);
   frame_4b4ab60__2->GetXaxis()->SetLabelOffset(0.01);
   frame_4b4ab60__2->GetXaxis()->SetLabelSize(0.15);
   frame_4b4ab60__2->GetXaxis()->SetTitleSize(0.2);
   frame_4b4ab60__2->GetXaxis()->SetTitleOffset(1.1);
   frame_4b4ab60__2->GetXaxis()->SetTitleFont(132);
   frame_4b4ab60__2->GetYaxis()->SetTitle("Pull");
   frame_4b4ab60__2->GetYaxis()->CenterTitle(true);
   frame_4b4ab60__2->GetYaxis()->SetNdivisions(505);
   frame_4b4ab60__2->GetYaxis()->SetLabelFont(132);
   frame_4b4ab60__2->GetYaxis()->SetLabelOffset(0.01);
   frame_4b4ab60__2->GetYaxis()->SetLabelSize(0.15);
   frame_4b4ab60__2->GetYaxis()->SetTitleSize(0.15);
   frame_4b4ab60__2->GetYaxis()->SetTitleOffset(0.45);
   frame_4b4ab60__2->GetYaxis()->SetTitleFont(132);
   frame_4b4ab60__2->GetZaxis()->SetLabelFont(132);
   frame_4b4ab60__2->GetZaxis()->SetLabelSize(0.06);
   frame_4b4ab60__2->GetZaxis()->SetTitleSize(0.072);
   frame_4b4ab60__2->GetZaxis()->SetTitleOffset(1.2);
   frame_4b4ab60__2->GetZaxis()->SetTitleFont(132);
   frame_4b4ab60__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(1075.63,0,1149.704,1563.739);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4997460__3 = new TH1D("frame_4997460__3","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_4997460__3->SetBinContent(1,1469.915);
   frame_4997460__3->SetMaximum(1469.915);
   frame_4997460__3->SetEntries(1);
   frame_4997460__3->SetDirectory(0);
   frame_4997460__3->SetStats(0);
   frame_4997460__3->SetLineWidth(2);
   frame_4997460__3->SetMarkerStyle(20);
   frame_4997460__3->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4997460__3->GetXaxis()->SetNdivisions(505);
   frame_4997460__3->GetXaxis()->SetLabelFont(132);
   frame_4997460__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4997460__3->GetXaxis()->SetLabelSize(0.06);
   frame_4997460__3->GetXaxis()->SetTitleSize(0.072);
   frame_4997460__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4997460__3->GetXaxis()->SetTitleFont(132);
   frame_4997460__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4997460__3->GetYaxis()->SetLabelFont(132);
   frame_4997460__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4997460__3->GetYaxis()->SetLabelSize(0.06);
   frame_4997460__3->GetYaxis()->SetTitleSize(0.072);
   frame_4997460__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4997460__3->GetYaxis()->SetTitleFont(132);
   frame_4997460__3->GetZaxis()->SetLabelFont(132);
   frame_4997460__3->GetZaxis()->SetLabelSize(0.06);
   frame_4997460__3->GetZaxis()->SetTitleSize(0.072);
   frame_4997460__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4997460__3->GetZaxis()->SetTitleFont(132);
   frame_4997460__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   1086.3,
   1086.9,
   1087.5,
   1088.1,
   1088.7,
   1089.3,
   1089.9,
   1090.5,
   1091.1,
   1091.7,
   1092.3,
   1092.9,
   1093.5,
   1094.1,
   1094.7,
   1095.3,
   1095.9,
   1096.5,
   1097.1,
   1097.7,
   1098.3,
   1098.9,
   1099.5,
   1100.1,
   1100.7,
   1101.3,
   1101.9,
   1102.5,
   1103.1,
   1103.7,
   1104.3,
   1104.9,
   1105.5,
   1106.1,
   1106.7,
   1107.3,
   1107.9,
   1108.5,
   1109.1,
   1109.7,
   1110.3,
   1110.9,
   1111.5,
   1112.1,
   1112.7,
   1113.3,
   1113.9,
   1114.5,
   1115.1,
   1115.7,
   1116.3,
   1116.9,
   1117.5,
   1118.1,
   1118.7,
   1119.3,
   1119.9,
   1120.5,
   1121.1,
   1121.7,
   1122.3,
   1122.9,
   1123.5,
   1124.1,
   1124.7,
   1125.3,
   1125.9,
   1126.5,
   1127.1,
   1127.7,
   1128.3,
   1128.9,
   1129.5,
   1130.1,
   1130.7,
   1131.3,
   1131.9,
   1132.5,
   1133.1,
   1133.7,
   1134.3,
   1134.9,
   1135.5,
   1136.1,
   1136.7,
   1137.3,
   1137.9,
   1138.5,
   1139.1,
   1139.7,
   1140.3,
   1140.9,
   1141.5,
   1142.1,
   1142.7,
   1143.3,
   1143.9,
   1144.5,
   1145.1,
   1145.7};
   Double_t Hist_fy3002[100] = {
   17,
   20,
   22,
   33,
   22,
   28,
   18,
   24,
   17,
   17,
   32,
   31,
   30,
   27,
   28,
   31,
   27,
   40,
   30,
   31,
   33,
   36,
   29,
   22,
   31,
   37,
   42,
   37,
   34,
   38,
   50,
   35,
   44,
   38,
   37,
   43,
   46,
   40,
   47,
   59,
   64,
   60,
   85,
   82,
   133,
   193,
   358,
   659,
   1156,
   1363,
   1224,
   776,
   473,
   270,
   185,
   152,
   99,
   64,
   68,
   63,
   52,
   50,
   67,
   62,
   53,
   60,
   59,
   58,
   61,
   66,
   59,
   63,
   49,
   56,
   67,
   55,
   81,
   46,
   55,
   60,
   50,
   55,
   68,
   57,
   57,
   53,
   52,
   57,
   67,
   56,
   51,
   70,
   71,
   70,
   53,
   67,
   66,
   65,
   77,
   24};
   Double_t Hist_felx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fely3002[100] = {
   4.123106,
   4.472136,
   4.690416,
   5.744563,
   4.690416,
   5.291503,
   4.242641,
   4.898979,
   4.123106,
   4.123106,
   5.656854,
   5.567764,
   5.477226,
   5.196152,
   5.291503,
   5.567764,
   5.196152,
   6.324555,
   5.477226,
   5.567764,
   5.744563,
   6,
   5.385165,
   4.690416,
   5.567764,
   6.082763,
   6.480741,
   6.082763,
   5.830952,
   6.164414,
   7.071068,
   5.91608,
   6.63325,
   6.164414,
   6.082763,
   6.557439,
   6.78233,
   6.324555,
   6.855655,
   7.681146,
   8,
   7.745967,
   9.219544,
   9.055385,
   11.53256,
   13.89244,
   18.92089,
   25.671,
   34,
   36.91883,
   34.98571,
   27.85678,
   21.74856,
   16.43168,
   13.60147,
   12.32883,
   9.949874,
   8,
   8.246211,
   7.937254,
   7.211103,
   7.071068,
   8.185353,
   7.874008,
   7.28011,
   7.745967,
   7.681146,
   7.615773,
   7.81025,
   8.124038,
   7.681146,
   7.937254,
   7,
   7.483315,
   8.185353,
   7.416198,
   9,
   6.78233,
   7.416198,
   7.745967,
   7.071068,
   7.416198,
   8.246211,
   7.549834,
   7.549834,
   7.28011,
   7.211103,
   7.549834,
   8.185353,
   7.483315,
   7.141428,
   8.3666,
   8.42615,
   8.3666,
   7.28011,
   8.185353,
   8.124038,
   8.062258,
   8.774964,
   4.898979};
   Double_t Hist_fehx3002[100] = {
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3,
   0.3};
   Double_t Hist_fehy3002[100] = {
   4.123106,
   4.472136,
   4.690416,
   5.744563,
   4.690416,
   5.291503,
   4.242641,
   4.898979,
   4.123106,
   4.123106,
   5.656854,
   5.567764,
   5.477226,
   5.196152,
   5.291503,
   5.567764,
   5.196152,
   6.324555,
   5.477226,
   5.567764,
   5.744563,
   6,
   5.385165,
   4.690416,
   5.567764,
   6.082763,
   6.480741,
   6.082763,
   5.830952,
   6.164414,
   7.071068,
   5.91608,
   6.63325,
   6.164414,
   6.082763,
   6.557439,
   6.78233,
   6.324555,
   6.855655,
   7.681146,
   8,
   7.745967,
   9.219544,
   9.055385,
   11.53256,
   13.89244,
   18.92089,
   25.671,
   34,
   36.91883,
   34.98571,
   27.85678,
   21.74856,
   16.43168,
   13.60147,
   12.32883,
   9.949874,
   8,
   8.246211,
   7.937254,
   7.211103,
   7.071068,
   8.185353,
   7.874008,
   7.28011,
   7.745967,
   7.681146,
   7.615773,
   7.81025,
   8.124038,
   7.681146,
   7.937254,
   7,
   7.483315,
   8.185353,
   7.416198,
   9,
   6.78233,
   7.416198,
   7.745967,
   7.071068,
   7.416198,
   8.246211,
   7.549834,
   7.549834,
   7.28011,
   7.211103,
   7.549834,
   8.185353,
   7.483315,
   7.141428,
   8.3666,
   8.42615,
   8.3666,
   7.28011,
   8.185353,
   8.124038,
   8.062258,
   8.774964,
   4.898979};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_M");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_M",100,1080,1152);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(1538.623);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   1090,
   1090.16,
   1090.32,
   1090.48,
   1090.64,
   1090.8,
   1090.96,
   1091.12,
   1091.28,
   1091.44,
   1091.6,
   1091.76,
   1091.92,
   1092.08,
   1092.24,
   1092.4,
   1092.56,
   1092.72,
   1092.88,
   1093.04,
   1093.2,
   1093.36,
   1093.52,
   1093.68,
   1093.84,
   1094,
   1094.16,
   1094.32,
   1094.48,
   1094.64,
   1094.8,
   1094.96,
   1095.12,
   1095.28,
   1095.44,
   1095.6,
   1095.76,
   1095.92,
   1096.08,
   1096.24,
   1096.4,
   1096.56,
   1096.72,
   1096.88,
   1097.04,
   1097.2,
   1097.36,
   1097.52,
   1097.68,
   1097.84,
   1098,
   1098.16,
   1098.32,
   1098.48,
   1098.64,
   1098.8,
   1098.96,
   1099.12,
   1099.28,
   1099.44,
   1099.6,
   1099.76,
   1099.92,
   1100.08,
   1100.24,
   1100.4,
   1100.56,
   1100.72,
   1100.88,
   1101.04,
   1101.2,
   1101.36,
   1101.52,
   1101.68,
   1101.84,
   1102,
   1102.16,
   1102.32,
   1102.48,
   1102.64,
   1102.8,
   1102.96,
   1103.12,
   1103.28,
   1103.44,
   1103.6,
   1103.76,
   1103.92,
   1104.08,
   1104.24,
   1104.4,
   1104.56,
   1104.72,
   1104.88,
   1105.04,
   1105.2,
   1105.36,
   1105.52,
   1105.68,
   1105.84,
   1106,
   1106};
   Double_t curvetot_fy1[102] = {
   20.84263,
   21.08414,
   21.32492,
   21.56498,
   21.80432,
   22.04293,
   22.28081,
   22.51797,
   22.75441,
   22.99012,
   23.2251,
   23.45936,
   23.6929,
   23.92571,
   24.1578,
   24.38916,
   24.6198,
   24.84971,
   25.0789,
   25.30737,
   25.53511,
   25.76212,
   25.98841,
   26.21398,
   26.43882,
   26.66294,
   26.88633,
   27.109,
   27.33094,
   27.55216,
   27.77265,
   27.99242,
   28.21146,
   28.42978,
   28.64738,
   28.86425,
   29.08039,
   29.29581,
   29.51051,
   29.72448,
   29.93773,
   30.15025,
   30.36205,
   30.57312,
   30.78347,
   30.99309,
   31.20199,
   31.41017,
   31.61762,
   31.82434,
   32.03034,
   32.23562,
   32.44017,
   32.644,
   32.8471,
   33.04948,
   33.25113,
   33.45206,
   33.65226,
   33.85174,
   34.05049,
   34.24852,
   34.44583,
   34.64241,
   34.83826,
   35.0334,
   35.2278,
   35.42148,
   35.61444,
   35.80667,
   35.99818,
   36.18896,
   36.37902,
   36.56836,
   36.75697,
   36.94485,
   37.13201,
   37.31845,
   37.50416,
   37.68914,
   37.87341,
   38.05694,
   38.23975,
   38.42184,
   38.60321,
   38.78384,
   38.96376,
   39.14295,
   39.32141,
   39.49915,
   39.67617,
   39.85246,
   40.02802,
   40.20286,
   40.37698,
   40.55037,
   40.72304,
   40.89498,
   41.0662,
   41.23669,
   41.40646,
   41.40646};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,1088.4,1107.6);
   Graph_curvetot1->SetMinimum(18.78625);
   Graph_curvetot1->SetMaximum(43.46285);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t curvetot_fx2[102] = {
   1124,
   1124.12,
   1124.24,
   1124.36,
   1124.48,
   1124.6,
   1124.72,
   1124.84,
   1124.96,
   1125.08,
   1125.2,
   1125.32,
   1125.44,
   1125.56,
   1125.68,
   1125.8,
   1125.92,
   1126.04,
   1126.16,
   1126.28,
   1126.4,
   1126.52,
   1126.64,
   1126.76,
   1126.88,
   1127,
   1127.12,
   1127.24,
   1127.36,
   1127.48,
   1127.6,
   1127.72,
   1127.84,
   1127.96,
   1128.08,
   1128.2,
   1128.32,
   1128.44,
   1128.56,
   1128.68,
   1128.8,
   1128.92,
   1129.04,
   1129.16,
   1129.28,
   1129.4,
   1129.52,
   1129.64,
   1129.76,
   1129.88,
   1130,
   1130.12,
   1130.24,
   1130.36,
   1130.48,
   1130.6,
   1130.72,
   1130.84,
   1130.96,
   1131.08,
   1131.2,
   1131.32,
   1131.44,
   1131.56,
   1131.68,
   1131.8,
   1131.92,
   1132.04,
   1132.16,
   1132.28,
   1132.4,
   1132.52,
   1132.64,
   1132.76,
   1132.88,
   1133,
   1133.12,
   1133.24,
   1133.36,
   1133.48,
   1133.6,
   1133.72,
   1133.84,
   1133.96,
   1134.08,
   1134.2,
   1134.32,
   1134.44,
   1134.56,
   1134.68,
   1134.8,
   1134.92,
   1135.04,
   1135.16,
   1135.28,
   1135.4,
   1135.52,
   1135.64,
   1135.76,
   1135.88,
   1136,
   1136};
   Double_t curvetot_fy2[102] = {
   55.87911,
   55.94482,
   56.01012,
   56.07502,
   56.1395,
   56.20358,
   56.26726,
   56.33052,
   56.39338,
   56.45583,
   56.51787,
   56.5795,
   56.64073,
   56.70155,
   56.76196,
   56.82196,
   56.88156,
   56.94075,
   56.99953,
   57.0579,
   57.11586,
   57.17342,
   57.23057,
   57.28731,
   57.34365,
   57.39958,
   57.4551,
   57.51021,
   57.56491,
   57.61921,
   57.6731,
   57.72658,
   57.77966,
   57.83232,
   57.88458,
   57.93643,
   57.98788,
   58.03891,
   58.08954,
   58.13976,
   58.18957,
   58.23898,
   58.28798,
   58.33657,
   58.38475,
   58.43253,
   58.47989,
   58.52685,
   58.57341,
   58.61955,
   58.66529,
   58.71062,
   58.75554,
   58.80005,
   58.84416,
   58.88786,
   58.93115,
   58.97404,
   59.01651,
   59.05858,
   59.10024,
   59.1415,
   59.18234,
   59.22278,
   59.26281,
   59.30243,
   59.34165,
   59.38046,
   59.41886,
   59.45685,
   59.49443,
   59.53161,
   59.56838,
   59.60474,
   59.6407,
   59.67625,
   59.71139,
   59.74612,
   59.78044,
   59.81436,
   59.84787,
   59.88097,
   59.91366,
   59.94595,
   59.97783,
   60.0093,
   60.04036,
   60.07102,
   60.10126,
   60.1311,
   60.16054,
   60.18956,
   60.21818,
   60.24639,
   60.27419,
   60.30159,
   60.32858,
   60.35515,
   60.38133,
   60.40709,
   60.43245,
   60.43245};
   graph = new TGraph(102,curvetot_fx2,curvetot_fy2);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot2 = new TH1F("Graph_curvetot2","Projection of totalPdf",102,1122.8,1137.2);
   Graph_curvetot2->SetMinimum(55.42378);
   Graph_curvetot2->SetMaximum(60.88778);
   Graph_curvetot2->SetDirectory(0);
   Graph_curvetot2->SetStats(0);
   Graph_curvetot2->SetLineWidth(2);
   Graph_curvetot2->SetMarkerStyle(20);
   Graph_curvetot2->GetXaxis()->SetNdivisions(505);
   Graph_curvetot2->GetXaxis()->SetLabelFont(132);
   Graph_curvetot2->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot2->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot2->GetXaxis()->SetTitleFont(132);
   Graph_curvetot2->GetYaxis()->SetLabelFont(132);
   Graph_curvetot2->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot2->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot2->GetYaxis()->SetTitleFont(132);
   Graph_curvetot2->GetZaxis()->SetLabelFont(132);
   Graph_curvetot2->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot2->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot2->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot2);
   
   graph->Draw("l");
   
   Double_t bkg_fx3[102] = {
   1090,
   1090.16,
   1090.32,
   1090.48,
   1090.64,
   1090.8,
   1090.96,
   1091.12,
   1091.28,
   1091.44,
   1091.6,
   1091.76,
   1091.92,
   1092.08,
   1092.24,
   1092.4,
   1092.56,
   1092.72,
   1092.88,
   1093.04,
   1093.2,
   1093.36,
   1093.52,
   1093.68,
   1093.84,
   1094,
   1094.16,
   1094.32,
   1094.48,
   1094.64,
   1094.8,
   1094.96,
   1095.12,
   1095.28,
   1095.44,
   1095.6,
   1095.76,
   1095.92,
   1096.08,
   1096.24,
   1096.4,
   1096.56,
   1096.72,
   1096.88,
   1097.04,
   1097.2,
   1097.36,
   1097.52,
   1097.68,
   1097.84,
   1098,
   1098.16,
   1098.32,
   1098.48,
   1098.64,
   1098.8,
   1098.96,
   1099.12,
   1099.28,
   1099.44,
   1099.6,
   1099.76,
   1099.92,
   1100.08,
   1100.24,
   1100.4,
   1100.56,
   1100.72,
   1100.88,
   1101.04,
   1101.2,
   1101.36,
   1101.52,
   1101.68,
   1101.84,
   1102,
   1102.16,
   1102.32,
   1102.48,
   1102.64,
   1102.8,
   1102.96,
   1103.12,
   1103.28,
   1103.44,
   1103.6,
   1103.76,
   1103.92,
   1104.08,
   1104.24,
   1104.4,
   1104.56,
   1104.72,
   1104.88,
   1105.04,
   1105.2,
   1105.36,
   1105.52,
   1105.68,
   1105.84,
   1106,
   1106};
   Double_t bkg_fy3[102] = {
   20.84263,
   21.08414,
   21.32492,
   21.56498,
   21.80432,
   22.04293,
   22.28081,
   22.51797,
   22.75441,
   22.99012,
   23.2251,
   23.45936,
   23.6929,
   23.92571,
   24.1578,
   24.38916,
   24.6198,
   24.84971,
   25.0789,
   25.30737,
   25.53511,
   25.76212,
   25.98841,
   26.21398,
   26.43882,
   26.66294,
   26.88633,
   27.109,
   27.33094,
   27.55216,
   27.77265,
   27.99242,
   28.21146,
   28.42978,
   28.64738,
   28.86425,
   29.08039,
   29.29581,
   29.51051,
   29.72448,
   29.93773,
   30.15025,
   30.36205,
   30.57312,
   30.78347,
   30.99309,
   31.20199,
   31.41017,
   31.61762,
   31.82434,
   32.03034,
   32.23562,
   32.44017,
   32.644,
   32.8471,
   33.04948,
   33.25113,
   33.45206,
   33.65226,
   33.85174,
   34.05049,
   34.24852,
   34.44583,
   34.64241,
   34.83826,
   35.0334,
   35.2278,
   35.42148,
   35.61444,
   35.80667,
   35.99818,
   36.18896,
   36.37902,
   36.56836,
   36.75697,
   36.94485,
   37.13201,
   37.31845,
   37.50416,
   37.68914,
   37.87341,
   38.05694,
   38.23975,
   38.42184,
   38.60321,
   38.78384,
   38.96376,
   39.14295,
   39.32141,
   39.49915,
   39.67617,
   39.85246,
   40.02802,
   40.20286,
   40.37698,
   40.55037,
   40.72304,
   40.89498,
   41.0662,
   41.23669,
   41.40646,
   41.40646};
   graph = new TGraph(102,bkg_fx3,bkg_fy3);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg3 = new TH1F("Graph_bkg3","Projection of totalPdf",102,1088.4,1107.6);
   Graph_bkg3->SetMinimum(18.78625);
   Graph_bkg3->SetMaximum(43.46285);
   Graph_bkg3->SetDirectory(0);
   Graph_bkg3->SetStats(0);
   Graph_bkg3->SetLineWidth(2);
   Graph_bkg3->SetMarkerStyle(20);
   Graph_bkg3->GetXaxis()->SetNdivisions(505);
   Graph_bkg3->GetXaxis()->SetLabelFont(132);
   Graph_bkg3->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg3->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg3->GetXaxis()->SetTitleFont(132);
   Graph_bkg3->GetYaxis()->SetLabelFont(132);
   Graph_bkg3->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg3->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg3->GetYaxis()->SetTitleFont(132);
   Graph_bkg3->GetZaxis()->SetLabelFont(132);
   Graph_bkg3->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg3->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg3->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg3->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg3);
   
   graph->Draw("l");
   
   Double_t bkg_fx4[102] = {
   1124,
   1124.12,
   1124.24,
   1124.36,
   1124.48,
   1124.6,
   1124.72,
   1124.84,
   1124.96,
   1125.08,
   1125.2,
   1125.32,
   1125.44,
   1125.56,
   1125.68,
   1125.8,
   1125.92,
   1126.04,
   1126.16,
   1126.28,
   1126.4,
   1126.52,
   1126.64,
   1126.76,
   1126.88,
   1127,
   1127.12,
   1127.24,
   1127.36,
   1127.48,
   1127.6,
   1127.72,
   1127.84,
   1127.96,
   1128.08,
   1128.2,
   1128.32,
   1128.44,
   1128.56,
   1128.68,
   1128.8,
   1128.92,
   1129.04,
   1129.16,
   1129.28,
   1129.4,
   1129.52,
   1129.64,
   1129.76,
   1129.88,
   1130,
   1130.12,
   1130.24,
   1130.36,
   1130.48,
   1130.6,
   1130.72,
   1130.84,
   1130.96,
   1131.08,
   1131.2,
   1131.32,
   1131.44,
   1131.56,
   1131.68,
   1131.8,
   1131.92,
   1132.04,
   1132.16,
   1132.28,
   1132.4,
   1132.52,
   1132.64,
   1132.76,
   1132.88,
   1133,
   1133.12,
   1133.24,
   1133.36,
   1133.48,
   1133.6,
   1133.72,
   1133.84,
   1133.96,
   1134.08,
   1134.2,
   1134.32,
   1134.44,
   1134.56,
   1134.68,
   1134.8,
   1134.92,
   1135.04,
   1135.16,
   1135.28,
   1135.4,
   1135.52,
   1135.64,
   1135.76,
   1135.88,
   1136,
   1136};
   Double_t bkg_fy4[102] = {
   55.87911,
   55.94482,
   56.01012,
   56.07502,
   56.1395,
   56.20358,
   56.26726,
   56.33052,
   56.39338,
   56.45583,
   56.51787,
   56.5795,
   56.64073,
   56.70155,
   56.76196,
   56.82196,
   56.88156,
   56.94075,
   56.99953,
   57.0579,
   57.11586,
   57.17342,
   57.23057,
   57.28731,
   57.34365,
   57.39958,
   57.4551,
   57.51021,
   57.56491,
   57.61921,
   57.6731,
   57.72658,
   57.77966,
   57.83232,
   57.88458,
   57.93643,
   57.98788,
   58.03891,
   58.08954,
   58.13976,
   58.18957,
   58.23898,
   58.28798,
   58.33657,
   58.38475,
   58.43253,
   58.47989,
   58.52685,
   58.57341,
   58.61955,
   58.66529,
   58.71062,
   58.75554,
   58.80005,
   58.84416,
   58.88786,
   58.93115,
   58.97404,
   59.01651,
   59.05858,
   59.10024,
   59.1415,
   59.18234,
   59.22278,
   59.26281,
   59.30243,
   59.34165,
   59.38046,
   59.41886,
   59.45685,
   59.49443,
   59.53161,
   59.56838,
   59.60474,
   59.6407,
   59.67625,
   59.71139,
   59.74612,
   59.78044,
   59.81436,
   59.84787,
   59.88097,
   59.91366,
   59.94595,
   59.97783,
   60.0093,
   60.04036,
   60.07102,
   60.10126,
   60.1311,
   60.16054,
   60.18956,
   60.21818,
   60.24639,
   60.27419,
   60.30159,
   60.32858,
   60.35515,
   60.38133,
   60.40709,
   60.43245,
   60.43245};
   graph = new TGraph(102,bkg_fx4,bkg_fy4);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg4 = new TH1F("Graph_bkg4","Projection of totalPdf",102,1122.8,1137.2);
   Graph_bkg4->SetMinimum(55.42378);
   Graph_bkg4->SetMaximum(60.88778);
   Graph_bkg4->SetDirectory(0);
   Graph_bkg4->SetStats(0);
   Graph_bkg4->SetLineWidth(2);
   Graph_bkg4->SetMarkerStyle(20);
   Graph_bkg4->GetXaxis()->SetNdivisions(505);
   Graph_bkg4->GetXaxis()->SetLabelFont(132);
   Graph_bkg4->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg4->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg4->GetXaxis()->SetTitleFont(132);
   Graph_bkg4->GetYaxis()->SetLabelFont(132);
   Graph_bkg4->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg4->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg4->GetYaxis()->SetTitleFont(132);
   Graph_bkg4->GetZaxis()->SetLabelFont(132);
   Graph_bkg4->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg4->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg4->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg4->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg4);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.75,0.5,1,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4997460__4 = new TH1D("frame_4997460__4","A RooPlot of \"#Lambda mass\"",100,1086,1146);
   frame_4997460__4->SetBinContent(1,1469.915);
   frame_4997460__4->SetMaximum(1469.915);
   frame_4997460__4->SetEntries(1);
   frame_4997460__4->SetDirectory(0);
   frame_4997460__4->SetStats(0);
   frame_4997460__4->SetLineWidth(2);
   frame_4997460__4->SetMarkerStyle(20);
   frame_4997460__4->GetXaxis()->SetTitle("#Lambda mass (MeV)");
   frame_4997460__4->GetXaxis()->SetNdivisions(505);
   frame_4997460__4->GetXaxis()->SetLabelFont(132);
   frame_4997460__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4997460__4->GetXaxis()->SetLabelSize(0.06);
   frame_4997460__4->GetXaxis()->SetTitleSize(0.072);
   frame_4997460__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4997460__4->GetXaxis()->SetTitleFont(132);
   frame_4997460__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4997460__4->GetYaxis()->SetLabelFont(132);
   frame_4997460__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4997460__4->GetYaxis()->SetLabelSize(0.06);
   frame_4997460__4->GetYaxis()->SetTitleSize(0.072);
   frame_4997460__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4997460__4->GetYaxis()->SetTitleFont(132);
   frame_4997460__4->GetZaxis()->SetLabelFont(132);
   frame_4997460__4->GetZaxis()->SetLabelSize(0.06);
   frame_4997460__4->GetZaxis()->SetTitleSize(0.072);
   frame_4997460__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4997460__4->GetZaxis()->SetTitleFont(132);
   frame_4997460__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 19
0
void fitWMLL3testbkg()
{
//=========Macro generated from canvas: c1/data fits
//=========  (Sat May  7 17:06:48 2016) by ROOT version6.06/02
   TCanvas *c1 = new TCanvas("c1", "data fits",0,0,1200,800);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   c1->Range(0,0,1,1);
   c1->SetFillColor(0);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.14);
   c1->SetRightMargin(0.05);
   c1->SetTopMargin(0.05);
   c1->SetBottomMargin(0.16);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad2
   TPad *pad2 = new TPad("pad2", "pad2",0,0,1,0.3);
   pad2->Draw();
   pad2->cd();
   pad2->Range(230.8642,-26.4,724.6914,8.8);
   pad2->SetFillColor(0);
   pad2->SetBorderMode(0);
   pad2->SetBorderSize(2);
   pad2->SetTickx(1);
   pad2->SetTicky(1);
   pad2->SetLeftMargin(0.14);
   pad2->SetRightMargin(0.05);
   pad2->SetTopMargin(0);
   pad2->SetBottomMargin(0.5);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   pad2->SetFrameLineWidth(2);
   pad2->SetFrameBorderMode(0);
   
   TH1D *frame_41aab90__1 = new TH1D("frame_41aab90__1","",100,300,700);
   frame_41aab90__1->SetBinContent(1,3.66042);
   frame_41aab90__1->SetMinimum(-8.8);
   frame_41aab90__1->SetMaximum(8.8);
   frame_41aab90__1->SetEntries(1);
   frame_41aab90__1->SetDirectory(0);
   frame_41aab90__1->SetStats(0);
   frame_41aab90__1->SetLineWidth(2);
   frame_41aab90__1->SetMarkerStyle(20);
   frame_41aab90__1->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_41aab90__1->GetXaxis()->SetNdivisions(505);
   frame_41aab90__1->GetXaxis()->SetLabelFont(132);
   frame_41aab90__1->GetXaxis()->SetLabelOffset(0.01);
   frame_41aab90__1->GetXaxis()->SetLabelSize(0.15);
   frame_41aab90__1->GetXaxis()->SetTitleSize(0.2);
   frame_41aab90__1->GetXaxis()->SetTitleOffset(1.1);
   frame_41aab90__1->GetXaxis()->SetTitleFont(132);
   frame_41aab90__1->GetYaxis()->SetTitle("Pull");
   frame_41aab90__1->GetYaxis()->CenterTitle(true);
   frame_41aab90__1->GetYaxis()->SetNdivisions(505);
   frame_41aab90__1->GetYaxis()->SetLabelFont(132);
   frame_41aab90__1->GetYaxis()->SetLabelOffset(0.01);
   frame_41aab90__1->GetYaxis()->SetLabelSize(0.15);
   frame_41aab90__1->GetYaxis()->SetTitleSize(0.15);
   frame_41aab90__1->GetYaxis()->SetTitleOffset(0.45);
   frame_41aab90__1->GetYaxis()->SetTitleFont(132);
   frame_41aab90__1->GetZaxis()->SetLabelFont(132);
   frame_41aab90__1->GetZaxis()->SetLabelSize(0.06);
   frame_41aab90__1->GetZaxis()->SetTitleSize(0.072);
   frame_41aab90__1->GetZaxis()->SetTitleOffset(1.2);
   frame_41aab90__1->GetZaxis()->SetTitleFont(132);
   frame_41aab90__1->Draw("FUNC");
   
   Double_t pull_Hist_curvetot_fx3001[35] = {
   322,
   326,
   330,
   334,
   338,
   342,
   346,
   350,
   354,
   358,
   362,
   366,
   370,
   374,
   378,
   382,
   386,
   390,
   394,
   398,
   402,
   406,
   410,
   414,
   418,
   422,
   426,
   430,
   434,
   438,
   442,
   446,
   450,
   454,
   458};
   Double_t pull_Hist_curvetot_fy3001[35] = {
   -4.216045,
   1.419055,
   1.630176,
   1.736171,
   1.401115,
   1.177832,
   0.6067655,
   0.3684632,
   -0.07689024,
   0.7649885,
   -0.8684489,
   -2.178691,
   -1.339307,
   -2.479915,
   -0.6142935,
   0.5270919,
   -0.1014516,
   -2.629158,
   0.2575233,
   -2.419091,
   0.2616838,
   1.094697,
   0.4024459,
   0.1552136,
   1.74456,
   0.3476207,
   -0.4683433,
   2.237731,
   0.864617,
   1.152684,
   -0.4685249,
   -1.907669,
   -2.145193,
   1.344497,
   -0.6773687};
   Double_t pull_Hist_curvetot_felx3001[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fely3001[35] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   Double_t pull_Hist_curvetot_fehx3001[35] = {
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t pull_Hist_curvetot_fehy3001[35] = {
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1,
   1};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(35,pull_Hist_curvetot_fx3001,pull_Hist_curvetot_fy3001,pull_Hist_curvetot_felx3001,pull_Hist_curvetot_fehx3001,pull_Hist_curvetot_fely3001,pull_Hist_curvetot_fehy3001);
   grae->SetName("pull_Hist_curvetot");
   grae->SetTitle("Pull of Histogram of data_plot__R_WM and Projection of totalPdf");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_pull_Hist_curvetot3001 = new TH1F("Graph_pull_Hist_curvetot3001","Pull of Histogram of data_plot__R_WM and Projection of totalPdf",100,308.4,471.6);
   Graph_pull_Hist_curvetot3001->SetMinimum(-6.061422);
   Graph_pull_Hist_curvetot3001->SetMaximum(4.083108);
   Graph_pull_Hist_curvetot3001->SetDirectory(0);
   Graph_pull_Hist_curvetot3001->SetStats(0);
   Graph_pull_Hist_curvetot3001->SetLineWidth(2);
   Graph_pull_Hist_curvetot3001->SetMarkerStyle(20);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetNdivisions(505);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetXaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelOffset(0.01);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleOffset(0.95);
   Graph_pull_Hist_curvetot3001->GetYaxis()->SetTitleFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelFont(132);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetLabelSize(0.06);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleSize(0.072);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleOffset(1.2);
   Graph_pull_Hist_curvetot3001->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_pull_Hist_curvetot3001);
   
   grae->Draw("p");
   
   TH1D *frame_41aab90__2 = new TH1D("frame_41aab90__2","",100,300,700);
   frame_41aab90__2->SetBinContent(1,3.66042);
   frame_41aab90__2->SetMinimum(-8.8);
   frame_41aab90__2->SetMaximum(8.8);
   frame_41aab90__2->SetEntries(1);
   frame_41aab90__2->SetDirectory(0);
   frame_41aab90__2->SetStats(0);
   frame_41aab90__2->SetLineWidth(2);
   frame_41aab90__2->SetMarkerStyle(20);
   frame_41aab90__2->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_41aab90__2->GetXaxis()->SetNdivisions(505);
   frame_41aab90__2->GetXaxis()->SetLabelFont(132);
   frame_41aab90__2->GetXaxis()->SetLabelOffset(0.01);
   frame_41aab90__2->GetXaxis()->SetLabelSize(0.15);
   frame_41aab90__2->GetXaxis()->SetTitleSize(0.2);
   frame_41aab90__2->GetXaxis()->SetTitleOffset(1.1);
   frame_41aab90__2->GetXaxis()->SetTitleFont(132);
   frame_41aab90__2->GetYaxis()->SetTitle("Pull");
   frame_41aab90__2->GetYaxis()->CenterTitle(true);
   frame_41aab90__2->GetYaxis()->SetNdivisions(505);
   frame_41aab90__2->GetYaxis()->SetLabelFont(132);
   frame_41aab90__2->GetYaxis()->SetLabelOffset(0.01);
   frame_41aab90__2->GetYaxis()->SetLabelSize(0.15);
   frame_41aab90__2->GetYaxis()->SetTitleSize(0.15);
   frame_41aab90__2->GetYaxis()->SetTitleOffset(0.45);
   frame_41aab90__2->GetYaxis()->SetTitleFont(132);
   frame_41aab90__2->GetZaxis()->SetLabelFont(132);
   frame_41aab90__2->GetZaxis()->SetLabelSize(0.06);
   frame_41aab90__2->GetZaxis()->SetTitleSize(0.072);
   frame_41aab90__2->GetZaxis()->SetTitleOffset(1.2);
   frame_41aab90__2->GetZaxis()->SetTitleFont(132);
   frame_41aab90__2->Draw("AXISSAME");
   pad2->Modified();
   c1->cd();
  
// ------------>Primitives in pad: pad1
   TPad *pad1 = new TPad("pad1", "pad1",0,0.3,1,1);
   pad1->Draw();
   pad1->cd();
   pad1->Range(230.8642,0,724.6914,299.2215);
   pad1->SetFillColor(0);
   pad1->SetBorderMode(0);
   pad1->SetBorderSize(2);
   pad1->SetTickx(1);
   pad1->SetTicky(1);
   pad1->SetLeftMargin(0.14);
   pad1->SetRightMargin(0.05);
   pad1->SetTopMargin(0.06);
   pad1->SetBottomMargin(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   pad1->SetFrameLineWidth(2);
   pad1->SetFrameBorderMode(0);
   
   TH1D *frame_4083450__3 = new TH1D("frame_4083450__3","A RooPlot of \"m(#pi p#rightarrow#pi)\"",100,300,700);
   frame_4083450__3->SetBinContent(1,281.2682);
   frame_4083450__3->SetMaximum(281.2682);
   frame_4083450__3->SetEntries(1);
   frame_4083450__3->SetDirectory(0);
   frame_4083450__3->SetStats(0);
   frame_4083450__3->SetLineWidth(2);
   frame_4083450__3->SetMarkerStyle(20);
   frame_4083450__3->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_4083450__3->GetXaxis()->SetNdivisions(505);
   frame_4083450__3->GetXaxis()->SetLabelFont(132);
   frame_4083450__3->GetXaxis()->SetLabelOffset(0.01);
   frame_4083450__3->GetXaxis()->SetLabelSize(0.06);
   frame_4083450__3->GetXaxis()->SetTitleSize(0.072);
   frame_4083450__3->GetXaxis()->SetTitleOffset(0.95);
   frame_4083450__3->GetXaxis()->SetTitleFont(132);
   frame_4083450__3->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4083450__3->GetYaxis()->SetLabelFont(132);
   frame_4083450__3->GetYaxis()->SetLabelOffset(0.01);
   frame_4083450__3->GetYaxis()->SetLabelSize(0.06);
   frame_4083450__3->GetYaxis()->SetTitleSize(0.072);
   frame_4083450__3->GetYaxis()->SetTitleOffset(0.95);
   frame_4083450__3->GetYaxis()->SetTitleFont(132);
   frame_4083450__3->GetZaxis()->SetLabelFont(132);
   frame_4083450__3->GetZaxis()->SetLabelSize(0.06);
   frame_4083450__3->GetZaxis()->SetTitleSize(0.072);
   frame_4083450__3->GetZaxis()->SetTitleOffset(1.2);
   frame_4083450__3->GetZaxis()->SetTitleFont(132);
   frame_4083450__3->Draw("FUNC");
   
   Double_t Hist_fx3002[100] = {
   302,
   306,
   310,
   314,
   318,
   322,
   326,
   330,
   334,
   338,
   342,
   346,
   350,
   354,
   358,
   362,
   366,
   370,
   374,
   378,
   382,
   386,
   390,
   394,
   398,
   402,
   406,
   410,
   414,
   418,
   422,
   426,
   430,
   434,
   438,
   442,
   446,
   450,
   454,
   458,
   462,
   466,
   470,
   474,
   478,
   482,
   486,
   490,
   494,
   498,
   502,
   506,
   510,
   514,
   518,
   522,
   526,
   530,
   534,
   538,
   542,
   546,
   550,
   554,
   558,
   562,
   566,
   570,
   574,
   578,
   582,
   586,
   590,
   594,
   598,
   602,
   606,
   610,
   614,
   618,
   622,
   626,
   630,
   634,
   638,
   642,
   646,
   650,
   654,
   658,
   662,
   666,
   670,
   674,
   678,
   682,
   686,
   690,
   694,
   698};
   Double_t Hist_fy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   10,
   54,
   76,
   95,
   107,
   118,
   123,
   130,
   133,
   150,
   136,
   126,
   138,
   128,
   150,
   165,
   157,
   128,
   160,
   128,
   157,
   166,
   155,
   150,
   169,
   149,
   138,
   172,
   153,
   157,
   138,
   124,
   124,
   169,
   148,
   137,
   138,
   130,
   129,
   126,
   141,
   150,
   153,
   164,
   252,
   181,
   107,
   119,
   108,
   95,
   83,
   80,
   76,
   74,
   44,
   66,
   39,
   31,
   24,
   20,
   13,
   11,
   5,
   4,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_felx3002[100] = {
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2};
   Double_t Hist_fely3002[100] = {
   0,
   0,
   0,
   0,
   0,
   3.162278,
   7.348469,
   8.717798,
   9.746794,
   10.34408,
   10.86278,
   11.09054,
   11.40175,
   11.53256,
   12.24745,
   11.6619,
   11.22497,
   11.74734,
   11.31371,
   12.24745,
   12.84523,
   12.52996,
   11.31371,
   12.64911,
   11.31371,
   12.52996,
   12.8841,
   12.4499,
   12.24745,
   13,
   12.20656,
   11.74734,
   13.11488,
   12.36932,
   12.52996,
   11.74734,
   11.13553,
   11.13553,
   13,
   12.16553,
   11.7047,
   11.74734,
   11.40175,
   11.35782,
   11.22497,
   11.87434,
   12.24745,
   12.36932,
   12.80625,
   15.87451,
   13.45362,
   10.34408,
   10.90871,
   10.3923,
   9.746794,
   9.110434,
   8.944272,
   8.717798,
   8.602325,
   6.63325,
   8.124038,
   6.244998,
   5.567764,
   4.898979,
   4.472136,
   3.605551,
   3.316625,
   2.236068,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t Hist_fehx3002[100] = {
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2,
   2};
   Double_t Hist_fehy3002[100] = {
   0,
   0,
   0,
   0,
   0,
   3.162278,
   7.348469,
   8.717798,
   9.746794,
   10.34408,
   10.86278,
   11.09054,
   11.40175,
   11.53256,
   12.24745,
   11.6619,
   11.22497,
   11.74734,
   11.31371,
   12.24745,
   12.84523,
   12.52996,
   11.31371,
   12.64911,
   11.31371,
   12.52996,
   12.8841,
   12.4499,
   12.24745,
   13,
   12.20656,
   11.74734,
   13.11488,
   12.36932,
   12.52996,
   11.74734,
   11.13553,
   11.13553,
   13,
   12.16553,
   11.7047,
   11.74734,
   11.40175,
   11.35782,
   11.22497,
   11.87434,
   12.24745,
   12.36932,
   12.80625,
   15.87451,
   13.45362,
   10.34408,
   10.90871,
   10.3923,
   9.746794,
   9.110434,
   8.944272,
   8.717798,
   8.602325,
   6.63325,
   8.124038,
   6.244998,
   5.567764,
   4.898979,
   4.472136,
   3.605551,
   3.316625,
   2.236068,
   2,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   grae = new TGraphAsymmErrors(100,Hist_fx3002,Hist_fy3002,Hist_felx3002,Hist_fehx3002,Hist_fely3002,Hist_fehy3002);
   grae->SetName("Hist");
   grae->SetTitle("Histogram of data_plot__R_WM");
   grae->SetFillColor(1);
   grae->SetLineWidth(2);
   grae->SetMarkerStyle(8);
   
   TH1F *Graph_Hist3002 = new TH1F("Graph_Hist3002","Histogram of data_plot__R_WM",100,260,740);
   Graph_Hist3002->SetMinimum(0);
   Graph_Hist3002->SetMaximum(294.662);
   Graph_Hist3002->SetDirectory(0);
   Graph_Hist3002->SetStats(0);
   Graph_Hist3002->SetLineWidth(2);
   Graph_Hist3002->SetMarkerStyle(20);
   Graph_Hist3002->GetXaxis()->SetNdivisions(505);
   Graph_Hist3002->GetXaxis()->SetLabelFont(132);
   Graph_Hist3002->GetXaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetXaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetXaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetXaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetXaxis()->SetTitleFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelFont(132);
   Graph_Hist3002->GetYaxis()->SetLabelOffset(0.01);
   Graph_Hist3002->GetYaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetYaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetYaxis()->SetTitleOffset(0.95);
   Graph_Hist3002->GetYaxis()->SetTitleFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelFont(132);
   Graph_Hist3002->GetZaxis()->SetLabelSize(0.06);
   Graph_Hist3002->GetZaxis()->SetTitleSize(0.072);
   Graph_Hist3002->GetZaxis()->SetTitleOffset(1.2);
   Graph_Hist3002->GetZaxis()->SetTitleFont(132);
   grae->SetHistogram(Graph_Hist3002);
   
   grae->Draw("p");
   
   Double_t curvetot_fx1[102] = {
   320,
   321.4,
   322.8,
   324.2,
   325.6,
   327,
   328.4,
   329.8,
   331.2,
   332.6,
   334,
   335.4,
   336.8,
   338.2,
   339.6,
   341,
   342.4,
   343.8,
   345.2,
   346.6,
   348,
   349.4,
   350.8,
   352.2,
   353.6,
   355,
   356.4,
   357.8,
   359.2,
   360.6,
   362,
   363.4,
   364.8,
   366.2,
   367.6,
   369,
   370.4,
   371.8,
   373.2,
   374.6,
   376,
   377.4,
   378.8,
   380.2,
   381.6,
   383,
   384.4,
   385.8,
   387.2,
   388.6,
   390,
   391.4,
   392.8,
   394.2,
   395.6,
   397,
   398.4,
   399.8,
   401.2,
   402.6,
   404,
   405.4,
   406.8,
   408.2,
   409.6,
   411,
   412.4,
   413.8,
   415.2,
   416.6,
   418,
   419.4,
   420.8,
   422.2,
   423.6,
   425,
   426.4,
   427.8,
   429.2,
   430.6,
   432,
   433.4,
   434.8,
   436.2,
   437.6,
   439,
   440.4,
   441.8,
   443.2,
   444.6,
   446,
   447.4,
   448.8,
   450.2,
   451.6,
   453,
   454.4,
   455.8,
   457.2,
   458.6,
   460,
   460};
   Double_t curvetot_fy1[102] = {
   12.45669,
   20.14825,
   27.5777,
   34.74921,
   41.66694,
   48.33508,
   54.75779,
   60.93926,
   66.88365,
   72.59514,
   78.0779,
   83.33611,
   88.37393,
   93.19555,
   97.80514,
   102.2069,
   106.4049,
   110.4034,
   114.2066,
   117.8187,
   121.2437,
   124.4859,
   127.5495,
   130.4386,
   133.1574,
   135.7101,
   138.1008,
   140.3338,
   142.4132,
   144.3431,
   146.1278,
   147.7714,
   149.2781,
   150.652,
   151.8974,
   153.0184,
   154.0192,
   154.904,
   155.6769,
   156.3421,
   156.9038,
   157.3662,
   157.7333,
   158.0095,
   158.1989,
   158.3056,
   158.3338,
   158.2878,
   158.1716,
   157.9895,
   157.7455,
   157.444,
   157.089,
   156.6848,
   156.2355,
   155.7453,
   155.2183,
   154.6588,
   154.0709,
   153.4588,
   152.8266,
   152.1786,
   151.5188,
   150.8516,
   150.181,
   149.5112,
   148.8464,
   148.1908,
   147.5485,
   146.9238,
   146.3207,
   145.7435,
   145.1964,
   144.6835,
   144.2089,
   143.777,
   143.3917,
   143.0574,
   142.7781,
   142.5582,
   142.4016,
   142.3126,
   142.2955,
   142.3542,
   142.4931,
   142.7163,
   143.028,
   143.4323,
   143.9335,
   144.5356,
   145.2429,
   146.0595,
   146.9897,
   148.0375,
   149.2073,
   150.503,
   151.929,
   153.4893,
   155.1882,
   157.0298,
   159.0183,
   159.0183};
   TGraph *graph = new TGraph(102,curvetot_fx1,curvetot_fy1);
   graph->SetName("curvetot");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_curvetot1 = new TH1F("Graph_curvetot1","Projection of totalPdf",102,306,474);
   Graph_curvetot1->SetMinimum(0);
   Graph_curvetot1->SetMaximum(173.6745);
   Graph_curvetot1->SetDirectory(0);
   Graph_curvetot1->SetStats(0);
   Graph_curvetot1->SetLineWidth(2);
   Graph_curvetot1->SetMarkerStyle(20);
   Graph_curvetot1->GetXaxis()->SetNdivisions(505);
   Graph_curvetot1->GetXaxis()->SetLabelFont(132);
   Graph_curvetot1->GetXaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetXaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetXaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetXaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetXaxis()->SetTitleFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelFont(132);
   Graph_curvetot1->GetYaxis()->SetLabelOffset(0.01);
   Graph_curvetot1->GetYaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetYaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetYaxis()->SetTitleOffset(0.95);
   Graph_curvetot1->GetYaxis()->SetTitleFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelFont(132);
   Graph_curvetot1->GetZaxis()->SetLabelSize(0.06);
   Graph_curvetot1->GetZaxis()->SetTitleSize(0.072);
   Graph_curvetot1->GetZaxis()->SetTitleOffset(1.2);
   Graph_curvetot1->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_curvetot1);
   
   graph->Draw("l");
   
   Double_t bkg_fx2[102] = {
   320,
   321.4,
   322.8,
   324.2,
   325.6,
   327,
   328.4,
   329.8,
   331.2,
   332.6,
   334,
   335.4,
   336.8,
   338.2,
   339.6,
   341,
   342.4,
   343.8,
   345.2,
   346.6,
   348,
   349.4,
   350.8,
   352.2,
   353.6,
   355,
   356.4,
   357.8,
   359.2,
   360.6,
   362,
   363.4,
   364.8,
   366.2,
   367.6,
   369,
   370.4,
   371.8,
   373.2,
   374.6,
   376,
   377.4,
   378.8,
   380.2,
   381.6,
   383,
   384.4,
   385.8,
   387.2,
   388.6,
   390,
   391.4,
   392.8,
   394.2,
   395.6,
   397,
   398.4,
   399.8,
   401.2,
   402.6,
   404,
   405.4,
   406.8,
   408.2,
   409.6,
   411,
   412.4,
   413.8,
   415.2,
   416.6,
   418,
   419.4,
   420.8,
   422.2,
   423.6,
   425,
   426.4,
   427.8,
   429.2,
   430.6,
   432,
   433.4,
   434.8,
   436.2,
   437.6,
   439,
   440.4,
   441.8,
   443.2,
   444.6,
   446,
   447.4,
   448.8,
   450.2,
   451.6,
   453,
   454.4,
   455.8,
   457.2,
   458.6,
   460,
   460};
   Double_t bkg_fy2[102] = {
   12.45669,
   20.14825,
   27.5777,
   34.74921,
   41.66694,
   48.33508,
   54.75779,
   60.93926,
   66.88365,
   72.59514,
   78.0779,
   83.33611,
   88.37393,
   93.19555,
   97.80514,
   102.2069,
   106.4049,
   110.4034,
   114.2066,
   117.8187,
   121.2437,
   124.4859,
   127.5495,
   130.4386,
   133.1574,
   135.7101,
   138.1008,
   140.3338,
   142.4132,
   144.3431,
   146.1278,
   147.7714,
   149.2781,
   150.652,
   151.8974,
   153.0184,
   154.0192,
   154.904,
   155.6769,
   156.3421,
   156.9038,
   157.3662,
   157.7333,
   158.0095,
   158.1989,
   158.3056,
   158.3338,
   158.2878,
   158.1716,
   157.9895,
   157.7455,
   157.444,
   157.089,
   156.6848,
   156.2355,
   155.7453,
   155.2183,
   154.6588,
   154.0709,
   153.4588,
   152.8266,
   152.1786,
   151.5188,
   150.8516,
   150.181,
   149.5112,
   148.8464,
   148.1908,
   147.5485,
   146.9238,
   146.3207,
   145.7435,
   145.1964,
   144.6835,
   144.2089,
   143.777,
   143.3917,
   143.0574,
   142.7781,
   142.5582,
   142.4016,
   142.3126,
   142.2955,
   142.3542,
   142.4931,
   142.7163,
   143.028,
   143.4323,
   143.9335,
   144.5356,
   145.2429,
   146.0595,
   146.9897,
   148.0375,
   149.2073,
   150.503,
   151.929,
   153.4893,
   155.1882,
   157.0298,
   159.0183,
   159.0183};
   graph = new TGraph(102,bkg_fx2,bkg_fy2);
   graph->SetName("bkg");
   graph->SetTitle("Projection of totalPdf");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_bkg2 = new TH1F("Graph_bkg2","Projection of totalPdf",102,306,474);
   Graph_bkg2->SetMinimum(0);
   Graph_bkg2->SetMaximum(173.6745);
   Graph_bkg2->SetDirectory(0);
   Graph_bkg2->SetStats(0);
   Graph_bkg2->SetLineWidth(2);
   Graph_bkg2->SetMarkerStyle(20);
   Graph_bkg2->GetXaxis()->SetNdivisions(505);
   Graph_bkg2->GetXaxis()->SetLabelFont(132);
   Graph_bkg2->GetXaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetXaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetXaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetXaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetXaxis()->SetTitleFont(132);
   Graph_bkg2->GetYaxis()->SetLabelFont(132);
   Graph_bkg2->GetYaxis()->SetLabelOffset(0.01);
   Graph_bkg2->GetYaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetYaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetYaxis()->SetTitleOffset(0.95);
   Graph_bkg2->GetYaxis()->SetTitleFont(132);
   Graph_bkg2->GetZaxis()->SetLabelFont(132);
   Graph_bkg2->GetZaxis()->SetLabelSize(0.06);
   Graph_bkg2->GetZaxis()->SetTitleSize(0.072);
   Graph_bkg2->GetZaxis()->SetTitleOffset(1.2);
   Graph_bkg2->GetZaxis()->SetTitleFont(132);
   graph->SetHistogram(Graph_bkg2);
   
   graph->Draw("l");
   
   TLegend *leg = new TLegend(0.75,0.02,1,0.42,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(132);
   leg->SetTextSize(0.06);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(2);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("curvetot","Total PDF","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   entry=leg->AddEntry("bkg","Background","l");
   entry->SetLineColor(2);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(132);
   leg->Draw();
   
   TH1D *frame_4083450__4 = new TH1D("frame_4083450__4","A RooPlot of \"m(#pi p#rightarrow#pi)\"",100,300,700);
   frame_4083450__4->SetBinContent(1,281.2682);
   frame_4083450__4->SetMaximum(281.2682);
   frame_4083450__4->SetEntries(1);
   frame_4083450__4->SetDirectory(0);
   frame_4083450__4->SetStats(0);
   frame_4083450__4->SetLineWidth(2);
   frame_4083450__4->SetMarkerStyle(20);
   frame_4083450__4->GetXaxis()->SetTitle("m(#pi p#rightarrow#pi) (MeV)");
   frame_4083450__4->GetXaxis()->SetNdivisions(505);
   frame_4083450__4->GetXaxis()->SetLabelFont(132);
   frame_4083450__4->GetXaxis()->SetLabelOffset(0.01);
   frame_4083450__4->GetXaxis()->SetLabelSize(0.06);
   frame_4083450__4->GetXaxis()->SetTitleSize(0.072);
   frame_4083450__4->GetXaxis()->SetTitleOffset(0.95);
   frame_4083450__4->GetXaxis()->SetTitleFont(132);
   frame_4083450__4->GetYaxis()->SetTitle("Events/(5 MeV)");
   frame_4083450__4->GetYaxis()->SetLabelFont(132);
   frame_4083450__4->GetYaxis()->SetLabelOffset(0.01);
   frame_4083450__4->GetYaxis()->SetLabelSize(0.06);
   frame_4083450__4->GetYaxis()->SetTitleSize(0.072);
   frame_4083450__4->GetYaxis()->SetTitleOffset(0.95);
   frame_4083450__4->GetYaxis()->SetTitleFont(132);
   frame_4083450__4->GetZaxis()->SetLabelFont(132);
   frame_4083450__4->GetZaxis()->SetLabelSize(0.06);
   frame_4083450__4->GetZaxis()->SetTitleSize(0.072);
   frame_4083450__4->GetZaxis()->SetTitleOffset(1.2);
   frame_4083450__4->GetZaxis()->SetTitleFont(132);
   frame_4083450__4->Draw("AXISSAME");
   pad1->Modified();
   c1->cd();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
Ejemplo n.º 20
0
void cms_jps_ppb_pt_y120_fb()
{
//=========Macro generated from canvas: w6/Two Graphs
//=========  (Tue Jul 21 12:15:03 2015) by ROOT version6.02/08
   TCanvas *w6 = new TCanvas("w6", "Two Graphs",0,0,600,500);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   w6->Range(-2.944785,-0.197647,21.59509,1.449412);
   w6->SetFillColor(0);
   w6->SetBorderMode(0);
   w6->SetBorderSize(0);
   w6->SetTickx(1);
   w6->SetTicky(1);
   w6->SetLeftMargin(0.12);
   w6->SetRightMargin(0.065);
   w6->SetTopMargin(0.03);
   w6->SetBottomMargin(0.12);
   w6->SetFrameBorderMode(0);
   w6->SetFrameBorderMode(0);
   
   TH2F *hr15 = new TH2F("hr15","",10,0,20,20,0,1.4);
   hr15->SetStats(0);
   hr15->SetMarkerStyle(20);
   hr15->SetMarkerSize(0.8);
   hr15->GetXaxis()->SetTitle("p_{T} (GeV)");
   hr15->GetXaxis()->SetLabelFont(42);
   hr15->GetXaxis()->SetTitleSize(0.048);
   hr15->GetXaxis()->SetTitleOffset(1.15);
   hr15->GetXaxis()->SetTitleFont(42);
   hr15->GetYaxis()->SetTitle("R_{F/B}(p_{T})");
   hr15->GetYaxis()->SetLabelFont(42);
   hr15->GetYaxis()->SetTitleSize(0.048);
   hr15->GetYaxis()->SetTitleOffset(1.2);
   hr15->GetYaxis()->SetTitleFont(42);
   hr15->GetZaxis()->SetLabelFont(42);
   hr15->GetZaxis()->SetTitleSize(0.048);
   hr15->GetZaxis()->SetTitleFont(42);
   hr15->Draw("");
   TLine *line = new TLine(0,1,20,1);
   line->SetLineStyle(2);
   line->SetLineWidth(2);
   line->Draw();
   
   Double_t Graph0_fx19[202] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20,
   20,
   19.8,
   19.6,
   19.4,
   19.2,
   19,
   18.8,
   18.6,
   18.4,
   18.2,
   18,
   17.8,
   17.6,
   17.4,
   17.2,
   17,
   16.8,
   16.6,
   16.4,
   16.2,
   16,
   15.8,
   15.6,
   15.4,
   15.2,
   15,
   14.8,
   14.6,
   14.4,
   14.2,
   14,
   13.8,
   13.6,
   13.4,
   13.2,
   13,
   12.8,
   12.6,
   12.4,
   12.2,
   12,
   11.8,
   11.6,
   11.4,
   11.2,
   11,
   10.8,
   10.6,
   10.4,
   10.2,
   10,
   9.8,
   9.6,
   9.4,
   9.2,
   9,
   8.8,
   8.6,
   8.4,
   8.2,
   8,
   7.8,
   7.6,
   7.4,
   7.2,
   7,
   6.8,
   6.6,
   6.4,
   6.2,
   6,
   5.8,
   5.6,
   5.4,
   5.2,
   5,
   4.8,
   4.6,
   4.4,
   4.2,
   4,
   3.8,
   3.6,
   3.4,
   3.2,
   3,
   2.8,
   2.6,
   2.4,
   2.2,
   2,
   1.8,
   1.6,
   1.4,
   1.2,
   1,
   0.8,
   0.6,
   0.4,
   0.2,
   0};
   Double_t Graph0_fy19[202] = {
   0.7836116,
   0.7849605,
   0.7890441,
   0.7960007,
   0.8050498,
   0.8167735,
   0.8300575,
   0.8452002,
   0.8619987,
   0.8807459,
   0.9021495,
   0.9246587,
   0.9466882,
   0.9677902,
   0.9873606,
   1.005105,
   1.020489,
   1.034496,
   1.046629,
   1.056756,
   1.065291,
   1.07222,
   1.077599,
   1.081701,
   1.084619,
   1.086399,
   1.087587,
   1.087911,
   1.087583,
   1.086931,
   1.085589,
   1.083939,
   1.082079,
   1.079999,
   1.077674,
   1.075349,
   1.072884,
   1.070253,
   1.067714,
   1.065077,
   1.062516,
   1.059969,
   1.057297,
   1.054821,
   1.052444,
   1.050207,
   1.048025,
   1.045796,
   1.043635,
   1.041604,
   1.039704,
   1.037764,
   1.036079,
   1.035669,
   1.034046,
   1.032574,
   1.031119,
   1.028118,
   1.029684,
   1.028311,
   1.027041,
   1.025734,
   1.021696,
   1.020552,
   1.019435,
   1.018406,
   1.017385,
   1.016385,
   1.015442,
   1.014516,
   1.01361,
   1.01286,
   1.012027,
   1.010085,
   1.009291,
   1.008518,
   1.007851,
   1.007156,
   1.006384,
   1.006829,
   1.005424,
   1.005196,
   1.00472,
   1.004196,
   1.003665,
   1.003069,
   1.00299,
   1.002556,
   1.002045,
   1.001584,
   1.001056,
   1.000688,
   1.000323,
   1.001406,
   1.001104,
   1.000703,
   1.00038,
   1.000079,
   0.9995836,
   0.9994524,
   0.998044,
   0.98814,
   0.9884034,
   0.9886794,
   0.9891242,
   0.9894025,
   0.9898343,
   0.9902166,
   0.9905252,
   0.989151,
   0.9895018,
   0.9897906,
   0.9902928,
   0.9905996,
   0.9910855,
   0.9914598,
   0.9918003,
   0.9923394,
   0.9927511,
   0.9933418,
   0.9938143,
   0.9940813,
   0.9946064,
   0.9916484,
   0.9922249,
   0.9926801,
   0.9932256,
   0.9939071,
   0.9944708,
   0.9971189,
   0.9978028,
   1.000243,
   1.000843,
   1.001674,
   1.002392,
   1.003123,
   1.003888,
   1.004742,
   1.00556,
   1.006438,
   1.007393,
   1.00833,
   1.009289,
   1.010278,
   1.011384,
   1.014266,
   1.015427,
   1.018355,
   1.019471,
   1.017416,
   1.018688,
   1.019543,
   1.020883,
   1.022327,
   1.023688,
   1.025378,
   1.026693,
   1.02837,
   1.029833,
   1.031425,
   1.033004,
   1.034583,
   1.036058,
   1.037694,
   1.039377,
   1.040921,
   1.042288,
   1.0433,
   1.044562,
   1.045229,
   1.045828,
   1.046172,
   1.046288,
   1.045823,
   1.044877,
   1.043403,
   1.041006,
   1.038207,
   1.034468,
   1.030057,
   1.024525,
   1.01786,
   1.010107,
   1.001152,
   0.9908252,
   0.9792781,
   0.9666836,
   0.9521021,
   0.9356231,
   0.917281,
   0.8971312,
   0.8755481,
   0.8532729,
   0.8310423,
   0.809078,
   0.7885787,
   0.7699812,
   0.7537228,
   0.7407956,
   0.7310664,
   0.7253095,
   0.7232547};
   TGraph *graph = new TGraph(202,Graph0_fx19,Graph0_fy19);
   graph->SetName("Graph0");
   graph->SetTitle("Graph");
   graph->SetFillColor(2);
   graph->SetFillStyle(3004);
   graph->SetLineColor(2);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph19 = new TH1F("Graph_Graph19","Graph",202,0,22);
   Graph_Graph19->SetMinimum(0.686789);
   Graph_Graph19->SetMaximum(1.124377);
   Graph_Graph19->SetDirectory(0);
   Graph_Graph19->SetStats(0);
   Graph_Graph19->SetMarkerStyle(20);
   Graph_Graph19->SetMarkerSize(0.8);
   Graph_Graph19->GetXaxis()->SetLabelFont(42);
   Graph_Graph19->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph19->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph19->GetXaxis()->SetTitleFont(42);
   Graph_Graph19->GetYaxis()->SetLabelFont(42);
   Graph_Graph19->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph19->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph19->GetYaxis()->SetTitleFont(42);
   Graph_Graph19->GetZaxis()->SetLabelFont(42);
   Graph_Graph19->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph19->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph19);
   
   graph->Draw("f");
   
   Double_t Graph1_fx20[101] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20};
   Double_t Graph1_fy20[101] = {
   0.7836116,
   0.7849605,
   0.7890441,
   0.7960007,
   0.8050498,
   0.8167735,
   0.8300575,
   0.8452002,
   0.8619987,
   0.8807459,
   0.9021495,
   0.9246587,
   0.9466882,
   0.9677902,
   0.9873606,
   1.005105,
   1.020489,
   1.034496,
   1.046629,
   1.056756,
   1.065291,
   1.07222,
   1.077599,
   1.081701,
   1.084619,
   1.086399,
   1.087587,
   1.087911,
   1.087583,
   1.086931,
   1.085589,
   1.083939,
   1.082079,
   1.079999,
   1.077674,
   1.075349,
   1.072884,
   1.070253,
   1.067714,
   1.065077,
   1.062516,
   1.059969,
   1.057297,
   1.054821,
   1.052444,
   1.050207,
   1.048025,
   1.045796,
   1.043635,
   1.041604,
   1.039704,
   1.037764,
   1.036079,
   1.035669,
   1.034046,
   1.032574,
   1.031119,
   1.028118,
   1.029684,
   1.028311,
   1.027041,
   1.025734,
   1.021696,
   1.020552,
   1.019435,
   1.018406,
   1.017385,
   1.016385,
   1.015442,
   1.014516,
   1.01361,
   1.01286,
   1.012027,
   1.010085,
   1.009291,
   1.008518,
   1.007851,
   1.007156,
   1.006384,
   1.006829,
   1.005424,
   1.005196,
   1.00472,
   1.004196,
   1.003665,
   1.003069,
   1.00299,
   1.002556,
   1.002045,
   1.001584,
   1.001056,
   1.000688,
   1.000323,
   1.001406,
   1.001104,
   1.000703,
   1.00038,
   1.000079,
   0.9995836,
   0.9994524,
   0.998044};
   graph = new TGraph(101,Graph1_fx20,Graph1_fy20);
   graph->SetName("Graph1");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph20 = new TH1F("Graph_Graph20","Graph",101,0,22);
   Graph_Graph20->SetMinimum(0.7531816);
   Graph_Graph20->SetMaximum(1.118341);
   Graph_Graph20->SetDirectory(0);
   Graph_Graph20->SetStats(0);
   Graph_Graph20->SetMarkerStyle(20);
   Graph_Graph20->SetMarkerSize(0.8);
   Graph_Graph20->GetXaxis()->SetLabelFont(42);
   Graph_Graph20->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph20->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph20->GetXaxis()->SetTitleFont(42);
   Graph_Graph20->GetYaxis()->SetLabelFont(42);
   Graph_Graph20->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph20->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph20->GetYaxis()->SetTitleFont(42);
   Graph_Graph20->GetZaxis()->SetLabelFont(42);
   Graph_Graph20->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph20->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph20);
   
   graph->Draw("c");
   
   Double_t Graph2_fx21[101] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20};
   Double_t Graph2_fy21[101] = {
   0.7232547,
   0.7253095,
   0.7310664,
   0.7407956,
   0.7537228,
   0.7699812,
   0.7885787,
   0.809078,
   0.8310423,
   0.8532729,
   0.8755481,
   0.8971312,
   0.917281,
   0.9356231,
   0.9521021,
   0.9666836,
   0.9792781,
   0.9908252,
   1.001152,
   1.010107,
   1.01786,
   1.024525,
   1.030057,
   1.034468,
   1.038207,
   1.041006,
   1.043403,
   1.044877,
   1.045823,
   1.046288,
   1.046172,
   1.045828,
   1.045229,
   1.044562,
   1.0433,
   1.042288,
   1.040921,
   1.039377,
   1.037694,
   1.036058,
   1.034583,
   1.033004,
   1.031425,
   1.029833,
   1.02837,
   1.026693,
   1.025378,
   1.023688,
   1.022327,
   1.020883,
   1.019543,
   1.018688,
   1.017416,
   1.019471,
   1.018355,
   1.015427,
   1.014266,
   1.011384,
   1.010278,
   1.009289,
   1.00833,
   1.007393,
   1.006438,
   1.00556,
   1.004742,
   1.003888,
   1.003123,
   1.002392,
   1.001674,
   1.000843,
   1.000243,
   0.9978028,
   0.9971189,
   0.9944708,
   0.9939071,
   0.9932256,
   0.9926801,
   0.9922249,
   0.9916484,
   0.9946064,
   0.9940813,
   0.9938143,
   0.9933418,
   0.9927511,
   0.9923394,
   0.9918003,
   0.9914598,
   0.9910855,
   0.9905996,
   0.9902928,
   0.9897906,
   0.9895018,
   0.989151,
   0.9905252,
   0.9902166,
   0.9898343,
   0.9894025,
   0.9891242,
   0.9886794,
   0.9884034,
   0.98814};
   graph = new TGraph(101,Graph2_fx21,Graph2_fy21);
   graph->SetName("Graph2");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineColor(2);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph21 = new TH1F("Graph_Graph21","Graph",101,0,22);
   Graph_Graph21->SetMinimum(0.6909513);
   Graph_Graph21->SetMaximum(1.078592);
   Graph_Graph21->SetDirectory(0);
   Graph_Graph21->SetStats(0);
   Graph_Graph21->SetMarkerStyle(20);
   Graph_Graph21->SetMarkerSize(0.8);
   Graph_Graph21->GetXaxis()->SetLabelFont(42);
   Graph_Graph21->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph21->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph21->GetXaxis()->SetTitleFont(42);
   Graph_Graph21->GetYaxis()->SetLabelFont(42);
   Graph_Graph21->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph21->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph21->GetYaxis()->SetTitleFont(42);
   Graph_Graph21->GetZaxis()->SetLabelFont(42);
   Graph_Graph21->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph21->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph21);
   
   graph->Draw("c");
   
   TLegend *leg = new TLegend(0.15,0.2,0.5,0.35,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(10);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph0","E. loss  ","f");
   entry->SetFillColor(2);
   entry->SetFillStyle(3004);
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","E. loss + EPS09","f");
   entry->SetFillColor(4);
   entry->SetFillStyle(3004);
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   Double_t Graph3_fx22[202] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20,
   20,
   19.8,
   19.6,
   19.4,
   19.2,
   19,
   18.8,
   18.6,
   18.4,
   18.2,
   18,
   17.8,
   17.6,
   17.4,
   17.2,
   17,
   16.8,
   16.6,
   16.4,
   16.2,
   16,
   15.8,
   15.6,
   15.4,
   15.2,
   15,
   14.8,
   14.6,
   14.4,
   14.2,
   14,
   13.8,
   13.6,
   13.4,
   13.2,
   13,
   12.8,
   12.6,
   12.4,
   12.2,
   12,
   11.8,
   11.6,
   11.4,
   11.2,
   11,
   10.8,
   10.6,
   10.4,
   10.2,
   10,
   9.8,
   9.6,
   9.4,
   9.2,
   9,
   8.8,
   8.6,
   8.4,
   8.2,
   8,
   7.8,
   7.6,
   7.4,
   7.2,
   7,
   6.8,
   6.6,
   6.4,
   6.2,
   6,
   5.8,
   5.6,
   5.4,
   5.2,
   5,
   4.8,
   4.6,
   4.4,
   4.2,
   4,
   3.8,
   3.6,
   3.4,
   3.2,
   3,
   2.8,
   2.6,
   2.4,
   2.2,
   2,
   1.8,
   1.6,
   1.4,
   1.2,
   1,
   0.8,
   0.6,
   0.4,
   0.2,
   0};
   Double_t Graph3_fy22[202] = {
   0.8421638,
   0.8431233,
   0.8460817,
   0.8508918,
   0.8567363,
   0.8642813,
   0.8727044,
   0.88212,
   0.8917083,
   0.90233,
   0.9121478,
   0.9211408,
   0.9305888,
   0.9399922,
   0.9509647,
   0.9631977,
   0.9745371,
   0.9845598,
   0.9934767,
   1.00195,
   1.009754,
   1.016507,
   1.021171,
   1.025258,
   1.027879,
   1.028894,
   1.028982,
   1.028892,
   1.028775,
   1.028533,
   1.027579,
   1.026055,
   1.024055,
   1.022329,
   1.020145,
   1.017949,
   1.01571,
   1.013986,
   1.01212,
   1.010422,
   1.008313,
   1.006298,
   1.00444,
   1.00234,
   1.002169,
   1.000202,
   0.9923634,
   0.9930264,
   0.9917278,
   0.9910876,
   0.9989107,
   0.9948872,
   0.9912498,
   0.9886628,
   0.9852329,
   0.9838679,
   0.9824845,
   0.9815419,
   0.980339,
   0.9792295,
   0.9783283,
   0.9752649,
   0.9744775,
   0.9737028,
   0.9797888,
   0.976565,
   0.9777379,
   0.9744934,
   0.9737419,
   0.9649296,
   0.9663267,
   0.9657292,
   0.9669283,
   0.9663636,
   0.9675556,
   0.96777,
   0.9671347,
   0.9670887,
   0.9667007,
   0.9663822,
   0.9656093,
   0.9652302,
   0.9666274,
   0.9660479,
   0.9612273,
   0.9623443,
   0.9631036,
   0.9617128,
   0.9607207,
   0.961213,
   0.9646119,
   0.9631523,
   0.9618471,
   0.9601414,
   0.9596994,
   0.9588979,
   0.9577885,
   0.957409,
   0.9570048,
   0.9565268,
   0.9561286,
   0.8530899,
   0.8536798,
   0.8543082,
   0.8548519,
   0.8553599,
   0.8558056,
   0.8580468,
   0.8590287,
   0.8598163,
   0.8610229,
   0.8624452,
   0.86076,
   0.8622399,
   0.8626477,
   0.8651288,
   0.866286,
   0.8667428,
   0.871632,
   0.8735303,
   0.8742273,
   0.8746181,
   0.8754262,
   0.8761281,
   0.8768638,
   0.8779737,
   0.8793966,
   0.8806079,
   0.881914,
   0.8807982,
   0.88207,
   0.8833459,
   0.8840238,
   0.8894522,
   0.8932277,
   0.8945342,
   0.8939412,
   0.8959787,
   0.8898514,
   0.8912293,
   0.8937911,
   0.8971338,
   0.8987771,
   0.9025391,
   0.9056385,
   0.9070807,
   0.9091738,
   0.9107313,
   0.9121422,
   0.9156347,
   0.9172455,
   0.9188703,
   0.9150057,
   0.9162245,
   0.9197111,
   0.9227688,
   0.9320829,
   0.9353889,
   0.9355368,
   0.9377265,
   0.9375745,
   0.9384882,
   0.9406582,
   0.9424508,
   0.9444664,
   0.9464242,
   0.9486788,
   0.9508605,
   0.9531745,
   0.9550048,
   0.9576565,
   0.9601155,
   0.9620813,
   0.963554,
   0.9648322,
   0.9660598,
   0.9674128,
   0.9682482,
   0.9685571,
   0.9682887,
   0.9673863,
   0.9649037,
   0.9618543,
   0.9582831,
   0.9553384,
   0.9510883,
   0.9442505,
   0.9342997,
   0.9212491,
   0.9055475,
   0.8876717,
   0.8689059,
   0.8495485,
   0.8304236,
   0.8124401,
   0.7953092,
   0.7796732,
   0.766247,
   0.75568,
   0.7475433,
   0.7428535,
   0.7412694};
   graph = new TGraph(202,Graph3_fx22,Graph3_fy22);
   graph->SetName("Graph3");
   graph->SetTitle("Graph");
   graph->SetFillColor(4);
   graph->SetFillStyle(3004);
   graph->SetLineColor(4);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph22 = new TH1F("Graph_Graph22","Graph",202,0,22);
   Graph_Graph22->SetMinimum(0.7124982);
   Graph_Graph22->SetMaximum(1.057753);
   Graph_Graph22->SetDirectory(0);
   Graph_Graph22->SetStats(0);
   Graph_Graph22->SetMarkerStyle(20);
   Graph_Graph22->SetMarkerSize(0.8);
   Graph_Graph22->GetXaxis()->SetLabelFont(42);
   Graph_Graph22->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph22->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph22->GetXaxis()->SetTitleFont(42);
   Graph_Graph22->GetYaxis()->SetLabelFont(42);
   Graph_Graph22->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph22->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph22->GetYaxis()->SetTitleFont(42);
   Graph_Graph22->GetZaxis()->SetLabelFont(42);
   Graph_Graph22->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph22->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph22);
   
   graph->Draw("f");
   
   Double_t Graph4_fx23[101] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20};
   Double_t Graph4_fy23[101] = {
   0.8421638,
   0.8431233,
   0.8460817,
   0.8508918,
   0.8567363,
   0.8642813,
   0.8727044,
   0.88212,
   0.8917083,
   0.90233,
   0.9121478,
   0.9211408,
   0.9305888,
   0.9399922,
   0.9509647,
   0.9631977,
   0.9745371,
   0.9845598,
   0.9934767,
   1.00195,
   1.009754,
   1.016507,
   1.021171,
   1.025258,
   1.027879,
   1.028894,
   1.028982,
   1.028892,
   1.028775,
   1.028533,
   1.027579,
   1.026055,
   1.024055,
   1.022329,
   1.020145,
   1.017949,
   1.01571,
   1.013986,
   1.01212,
   1.010422,
   1.008313,
   1.006298,
   1.00444,
   1.00234,
   1.002169,
   1.000202,
   0.9923634,
   0.9930264,
   0.9917278,
   0.9910876,
   0.9989107,
   0.9948872,
   0.9912498,
   0.9886628,
   0.9852329,
   0.9838679,
   0.9824845,
   0.9815419,
   0.980339,
   0.9792295,
   0.9783283,
   0.9752649,
   0.9744775,
   0.9737028,
   0.9797888,
   0.976565,
   0.9777379,
   0.9744934,
   0.9737419,
   0.9649296,
   0.9663267,
   0.9657292,
   0.9669283,
   0.9663636,
   0.9675556,
   0.96777,
   0.9671347,
   0.9670887,
   0.9667007,
   0.9663822,
   0.9656093,
   0.9652302,
   0.9666274,
   0.9660479,
   0.9612273,
   0.9623443,
   0.9631036,
   0.9617128,
   0.9607207,
   0.961213,
   0.9646119,
   0.9631523,
   0.9618471,
   0.9601414,
   0.9596994,
   0.9588979,
   0.9577885,
   0.957409,
   0.9570048,
   0.9565268,
   0.9561286};
   graph = new TGraph(101,Graph4_fx23,Graph4_fy23);
   graph->SetName("Graph4");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineColor(4);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph23 = new TH1F("Graph_Graph23","Graph",101,0,22);
   Graph_Graph23->SetMinimum(0.823482);
   Graph_Graph23->SetMaximum(1.047664);
   Graph_Graph23->SetDirectory(0);
   Graph_Graph23->SetStats(0);
   Graph_Graph23->SetMarkerStyle(20);
   Graph_Graph23->SetMarkerSize(0.8);
   Graph_Graph23->GetXaxis()->SetLabelFont(42);
   Graph_Graph23->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph23->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph23->GetXaxis()->SetTitleFont(42);
   Graph_Graph23->GetYaxis()->SetLabelFont(42);
   Graph_Graph23->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph23->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph23->GetYaxis()->SetTitleFont(42);
   Graph_Graph23->GetZaxis()->SetLabelFont(42);
   Graph_Graph23->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph23->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph23);
   
   graph->Draw("c");
   
   Double_t Graph5_fx24[101] = {
   0,
   0.2,
   0.4,
   0.6,
   0.8,
   1,
   1.2,
   1.4,
   1.6,
   1.8,
   2,
   2.2,
   2.4,
   2.6,
   2.8,
   3,
   3.2,
   3.4,
   3.6,
   3.8,
   4,
   4.2,
   4.4,
   4.6,
   4.8,
   5,
   5.2,
   5.4,
   5.6,
   5.8,
   6,
   6.2,
   6.4,
   6.6,
   6.8,
   7,
   7.2,
   7.4,
   7.6,
   7.8,
   8,
   8.2,
   8.4,
   8.6,
   8.8,
   9,
   9.2,
   9.4,
   9.6,
   9.8,
   10,
   10.2,
   10.4,
   10.6,
   10.8,
   11,
   11.2,
   11.4,
   11.6,
   11.8,
   12,
   12.2,
   12.4,
   12.6,
   12.8,
   13,
   13.2,
   13.4,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.6,
   14.8,
   15,
   15.2,
   15.4,
   15.6,
   15.8,
   16,
   16.2,
   16.4,
   16.6,
   16.8,
   17,
   17.2,
   17.4,
   17.6,
   17.8,
   18,
   18.2,
   18.4,
   18.6,
   18.8,
   19,
   19.2,
   19.4,
   19.6,
   19.8,
   20};
   Double_t Graph5_fy24[101] = {
   0.7412694,
   0.7428535,
   0.7475433,
   0.75568,
   0.766247,
   0.7796732,
   0.7953092,
   0.8124401,
   0.8304236,
   0.8495485,
   0.8689059,
   0.8876717,
   0.9055475,
   0.9212491,
   0.9342997,
   0.9442505,
   0.9510883,
   0.9553384,
   0.9582831,
   0.9618543,
   0.9649037,
   0.9673863,
   0.9682887,
   0.9685571,
   0.9682482,
   0.9674128,
   0.9660598,
   0.9648322,
   0.963554,
   0.9620813,
   0.9601155,
   0.9576565,
   0.9550048,
   0.9531745,
   0.9508605,
   0.9486788,
   0.9464242,
   0.9444664,
   0.9424508,
   0.9406582,
   0.9384882,
   0.9375745,
   0.9377265,
   0.9355368,
   0.9353889,
   0.9320829,
   0.9227688,
   0.9197111,
   0.9162245,
   0.9150057,
   0.9188703,
   0.9172455,
   0.9156347,
   0.9121422,
   0.9107313,
   0.9091738,
   0.9070807,
   0.9056385,
   0.9025391,
   0.8987771,
   0.8971338,
   0.8937911,
   0.8912293,
   0.8898514,
   0.8959787,
   0.8939412,
   0.8945342,
   0.8932277,
   0.8894522,
   0.8840238,
   0.8833459,
   0.88207,
   0.8807982,
   0.881914,
   0.8806079,
   0.8793966,
   0.8779737,
   0.8768638,
   0.8761281,
   0.8754262,
   0.8746181,
   0.8742273,
   0.8735303,
   0.871632,
   0.8667428,
   0.866286,
   0.8651288,
   0.8626477,
   0.8622399,
   0.86076,
   0.8624452,
   0.8610229,
   0.8598163,
   0.8590287,
   0.8580468,
   0.8558056,
   0.8553599,
   0.8548519,
   0.8543082,
   0.8536798,
   0.8530899};
   graph = new TGraph(101,Graph5_fx24,Graph5_fy24);
   graph->SetName("Graph5");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineColor(4);
   graph->SetMarkerStyle(20);
   graph->SetMarkerSize(0.8);
   
   TH1F *Graph_Graph24 = new TH1F("Graph_Graph24","Graph",101,0,22);
   Graph_Graph24->SetMinimum(0.7185407);
   Graph_Graph24->SetMaximum(0.9912858);
   Graph_Graph24->SetDirectory(0);
   Graph_Graph24->SetStats(0);
   Graph_Graph24->SetMarkerStyle(20);
   Graph_Graph24->SetMarkerSize(0.8);
   Graph_Graph24->GetXaxis()->SetLabelFont(42);
   Graph_Graph24->GetXaxis()->SetTitleSize(0.048);
   Graph_Graph24->GetXaxis()->SetTitleOffset(1.15);
   Graph_Graph24->GetXaxis()->SetTitleFont(42);
   Graph_Graph24->GetYaxis()->SetLabelFont(42);
   Graph_Graph24->GetYaxis()->SetTitleSize(0.048);
   Graph_Graph24->GetYaxis()->SetTitleOffset(1.2);
   Graph_Graph24->GetYaxis()->SetTitleFont(42);
   Graph_Graph24->GetZaxis()->SetLabelFont(42);
   Graph_Graph24->GetZaxis()->SetTitleSize(0.048);
   Graph_Graph24->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph24);
   
   graph->Draw("c");
   
   leg = new TLegend(0.15,0.2,0.5,0.35,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.045);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(10);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph0","E. loss  ","f");
   entry->SetFillColor(2);
   entry->SetFillStyle(3004);
   entry->SetLineColor(2);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph3","E. loss + EPS09","f");
   entry->SetFillColor(4);
   entry->SetFillStyle(3004);
   entry->SetLineColor(4);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.5,0.15,0.92,0.4,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.057);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(10);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph4","J/#psi  p-Pb ","");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","#sqrt{s} = 5 TeV ","");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph4","|y|=1.2","");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   w6->Modified();
   w6->cd();
   w6->SetSelected(w6);
}
void Final_av_Lambda_VarCoupling_40Percent()
{
//=========Macro generated from canvas: c/c
//=========  (Sat Feb 27 17:06:04 2016) by ROOT version6.04/06
   TCanvas *c = new TCanvas("c", "c",0,0,800,700);
   c->SetHighLightColor(2);
   c->Range(-0.4813593,1.36281,3.148656,6.672724);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetLogx();
   c->SetLogy();
   c->SetTickx(1);
   c->SetTicky(1);
   c->SetLeftMargin(0.12);
   c->SetRightMargin(0.04);
   c->SetTopMargin(0.07);
   c->SetBottomMargin(0.12);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("");
   
   Double_t Graph_fx1[12] = {
   1,
   10,
   100,
   400,
   700,
   1000,
   1000,
   700,
   400,
   100,
   10,
   1};
   Double_t Graph_fy1[12] = {
   881.525,
   896.549,
   871.907,
   667.806,
   471.744,
   308.777,
   382.832,
   584.437,
   826.374,
   1079.16,
   1110.85,
   1092.23};
   TGraph *graph = new TGraph(12,Graph_fx1,Graph_fy1);
   graph->SetName("Graph");
   graph->SetTitle("");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffcc00");
   graph->SetFillColor(ci);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",100,0.9,1099.9);
   Graph_Graph1->SetMinimum(228.5697);
   Graph_Graph1->SetMaximum(1191.057);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1->SetLineColor(ci);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph1);
   
   multigraph->Add(graph,"");
   multigraph->Draw("af");
   multigraph->GetXaxis()->SetTitle("M_{#chi} (GeV)");
   multigraph->GetXaxis()->SetRange(0,96);
   multigraph->GetXaxis()->SetLabelFont(42);
   multigraph->GetXaxis()->SetTitleSize(0.05);
   multigraph->GetXaxis()->SetTitleOffset(1.1);
   multigraph->GetXaxis()->SetTitleFont(42);
   multigraph->GetYaxis()->SetTitle("#Lambda (GeV)");
   multigraph->GetYaxis()->SetLabelFont(42);
   multigraph->GetYaxis()->SetTitleSize(0.05);
   multigraph->GetYaxis()->SetTitleOffset(1.05);
   multigraph->GetYaxis()->SetTitleFont(42);
   
   multigraph = new TMultiGraph();
   multigraph->SetName("");
   multigraph->SetTitle("");
   
   Double_t Graph_fx2[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy2[6] = {
   1092.23,
   1110.85,
   1079.16,
   826.374,
   584.437,
   382.832};
   graph = new TGraph(6,Graph_fx2,Graph_fy2);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   
   TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,0.9,1099.9);
   Graph_Graph2->SetMinimum(310.0302);
   Graph_Graph2->SetMaximum(1183.652);
   Graph_Graph2->SetDirectory(0);
   Graph_Graph2->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph2->SetLineColor(ci);
   Graph_Graph2->GetXaxis()->SetLabelFont(42);
   Graph_Graph2->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetXaxis()->SetTitleFont(42);
   Graph_Graph2->GetYaxis()->SetLabelFont(42);
   Graph_Graph2->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetYaxis()->SetTitleFont(42);
   Graph_Graph2->GetZaxis()->SetLabelFont(42);
   Graph_Graph2->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph2);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx3[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy3[6] = {
   980.038,
   996.742,
   968.943,
   742.067,
   524.44,
   343.371};
   graph = new TGraph(6,Graph_fx3,Graph_fy3);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,0.9,1099.9);
   Graph_Graph3->SetMinimum(278.0339);
   Graph_Graph3->SetMaximum(1062.079);
   Graph_Graph3->SetDirectory(0);
   Graph_Graph3->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph3->SetLineColor(ci);
   Graph_Graph3->GetXaxis()->SetLabelFont(42);
   Graph_Graph3->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetXaxis()->SetTitleFont(42);
   Graph_Graph3->GetYaxis()->SetLabelFont(42);
   Graph_Graph3->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetYaxis()->SetTitleFont(42);
   Graph_Graph3->GetZaxis()->SetLabelFont(42);
   Graph_Graph3->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph3->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph3->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph3);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx4[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy4[6] = {
   881.525,
   896.549,
   871.907,
   667.806,
   471.744,
   308.777};
   graph = new TGraph(6,Graph_fx4,Graph_fy4);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff6666");
   graph->SetLineColor(ci);
   
   TH1F *Graph_Graph4 = new TH1F("Graph_Graph4","Graph",100,0.9,1099.9);
   Graph_Graph4->SetMinimum(249.9998);
   Graph_Graph4->SetMaximum(955.3262);
   Graph_Graph4->SetDirectory(0);
   Graph_Graph4->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph4->SetLineColor(ci);
   Graph_Graph4->GetXaxis()->SetLabelFont(42);
   Graph_Graph4->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetXaxis()->SetTitleFont(42);
   Graph_Graph4->GetYaxis()->SetLabelFont(42);
   Graph_Graph4->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetYaxis()->SetTitleFont(42);
   Graph_Graph4->GetZaxis()->SetLabelFont(42);
   Graph_Graph4->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph4->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph4->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph4);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx5[6] = {
   1,
   10,
   100,
   400,
   700,
   1000};
   Double_t Graph_fy5[6] = {
   1028.6,
   1012.32,
   1016.7,
   751.989,
   524.44,
   360.443};
   graph = new TGraph(6,Graph_fx5,Graph_fy5);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#0000ff");
   graph->SetLineColor(ci);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph5 = new TH1F("Graph_Graph5","Graph",100,0.9,1099.9);
   Graph_Graph5->SetMinimum(293.6273);
   Graph_Graph5->SetMaximum(1095.416);
   Graph_Graph5->SetDirectory(0);
   Graph_Graph5->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph5->SetLineColor(ci);
   Graph_Graph5->GetXaxis()->SetLabelFont(42);
   Graph_Graph5->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetXaxis()->SetTitleFont(42);
   Graph_Graph5->GetYaxis()->SetLabelFont(42);
   Graph_Graph5->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetYaxis()->SetTitleFont(42);
   Graph_Graph5->GetZaxis()->SetLabelFont(42);
   Graph_Graph5->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph5->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph5->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph5);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx6[35] = {
   3.981,
   4.365,
   4.786,
   5.248,
   5.754,
   6.31,
   6.918,
   7.586,
   8.318,
   9.12,
   10,
   10.965,
   12.023,
   13.183,
   14.454,
   15.849,
   17.378,
   19.055,
   20.893,
   22.909,
   25.119,
   31.623,
   39.811,
   50.119,
   63.096,
   79.433,
   100,
   125.893,
   158.489,
   199.526,
   251.189,
   316.228,
   1000,
   3162.278,
   10000};
   Double_t Graph_fy6[35] = {
   19.76533,
   32.58338,
   47.96959,
   63.10164,
   79.00995,
   95.55754,
   111.9766,
   129.0118,
   146.2376,
   163.5577,
   179.3658,
   194.9584,
   209.5672,
   223.2999,
   236.0683,
   247.7404,
   258.366,
   268.0662,
   277.1383,
   285.1146,
   292.3901,
   306.3527,
   314.441,
   317.1059,
   314.8684,
   308.9039,
   300.2537,
   289.8022,
   278.2241,
   266.1082,
   253.7422,
   241.4337,
   184.6404,
   139.2985,
   104.656};
   graph = new TGraph(35,Graph_fx6,Graph_fy6);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#6666ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(6);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph6 = new TH1F("Graph_Graph6","Graph",100,3.5829,10999.6);
   Graph_Graph6->SetMinimum(17.78879);
   Graph_Graph6->SetMaximum(346.84);
   Graph_Graph6->SetDirectory(0);
   Graph_Graph6->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph6->SetLineColor(ci);
   Graph_Graph6->GetXaxis()->SetLabelFont(42);
   Graph_Graph6->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetXaxis()->SetTitleFont(42);
   Graph_Graph6->GetYaxis()->SetLabelFont(42);
   Graph_Graph6->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetYaxis()->SetTitleFont(42);
   Graph_Graph6->GetZaxis()->SetLabelFont(42);
   Graph_Graph6->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph6->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph6->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph6);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx7[33] = {
   5.050109,
   5.570498,
   6.092375,
   6.79836,
   7.629504,
   8.933253,
   10.64203,
   12.05014,
   13.68495,
   14.93901,
   17.1131,
   19.54765,
   22.0792,
   25.65551,
   29.39341,
   34.84152,
   41.41884,
   48.68491,
   59.2071,
   75.34994,
   97.26741,
   131.0246,
   163.9459,
   202.8261,
   243.2248,
   309.5828,
   383.0166,
   473.8718,
   622.2993,
   833.6,
   1028.448,
   1283.339,
   2026.806};
   Double_t Graph_fy7[33] = {
   71.77067,
   88.82209,
   110.1401,
   130.7052,
   154.2557,
   185.7482,
   213.1504,
   232.735,
   248.5277,
   258.1632,
   268.4587,
   280.1818,
   286.5229,
   293.3758,
   296.7995,
   299.6924,
   299.6947,
   297.0875,
   293.2892,
   285.6511,
   275.8293,
   262.4571,
   252.7364,
   243.3346,
   234.001,
   222.0121,
   212.1495,
   202.5032,
   189.9106,
   177.908,
   168.9168,
   159.7122,
   142.9221};
   graph = new TGraph(33,Graph_fx7,Graph_fy7);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff9900");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph7 = new TH1F("Graph_Graph7","Graph",100,4.545098,2228.982);
   Graph_Graph7->SetMinimum(48.97827);
   Graph_Graph7->SetMaximum(322.4871);
   Graph_Graph7->SetDirectory(0);
   Graph_Graph7->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph7->SetLineColor(ci);
   Graph_Graph7->GetXaxis()->SetLabelFont(42);
   Graph_Graph7->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetXaxis()->SetTitleFont(42);
   Graph_Graph7->GetYaxis()->SetLabelFont(42);
   Graph_Graph7->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetYaxis()->SetTitleFont(42);
   Graph_Graph7->GetZaxis()->SetLabelFont(42);
   Graph_Graph7->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph7->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph7->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph7);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx8[90] = {
   18.74425,
   19.90368,
   20.73627,
   21.82644,
   23.00752,
   24.07546,
   25.0827,
   25.71454,
   26.71212,
   27.99356,
   28.53122,
   29.59491,
   30.69819,
   31.93543,
   33.71249,
   35.53626,
   36.69926,
   39.48566,
   41.74415,
   44.52103,
   47.27444,
   49.54151,
   51.99283,
   54.56543,
   56.59926,
   59.57426,
   61.97591,
   64.94736,
   67.7638,
   72.165,
   77.52983,
   78.67276,
   79.25885,
   79.50015,
   79.8577,
   79.98559,
   80.10781,
   80.93361,
   82.97299,
   85.0636,
   87.3346,
   89.6657,
   93.68976,
   97.60831,
   101.0972,
   103.4923,
   107.3498,
   111.0254,
   114.4909,
   118.2376,
   120.3333,
   131.3772,
   140.9375,
   145.9754,
   148.1289,
   150.9739,
   154.3249,
   158.6761,
   165.3121,
   170.7206,
   172.2259,
   173.4824,
   174.2374,
   175.2489,
   175.7591,
   179.6599,
   186.3538,
   196.4347,
   207.6675,
   217.3037,
   228.0541,
   241.4457,
   256.7473,
   271.0309,
   292.4573,
   319.2919,
   352.6953,
   387.3116,
   421.6106,
   459.6163,
   505.4719,
   563.2603,
   635.9718,
   692.2802,
   745.897,
   789.6904,
   831.1771,
   886.4295,
   950.901,
   983.4362};
   Double_t Graph_fy8[90] = {
   190.042,
   192.3104,
   192.9376,
   195.179,
   197.2136,
   198.0799,
   199.3876,
   199.4802,
   201.01,
   204.4632,
   204.529,
   206.7971,
   208.8441,
   208.9712,
   209.8662,
   210.2649,
   211.3333,
   212.7612,
   214.3898,
   216.0449,
   217.1898,
   218.8107,
   219.1693,
   219.524,
   220.873,
   221.9988,
   223.3628,
   223.7069,
   225.3419,
   225.4478,
   225.5616,
   225.584,
   239.8787,
   256.2561,
   271.2293,
   293.7999,
   304.8973,
   307.0445,
   308.5203,
   309.6434,
   310.7722,
   310.8221,
   310.5429,
   310.2559,
   309.9569,
   309.996,
   311.8566,
   313.3588,
   314.1336,
   315.2763,
   316.7668,
   317.2607,
   317.3559,
   317.4016,
   319.264,
   319.2881,
   319.6855,
   319.7195,
   318.6591,
   318.3273,
   317.9688,
   309.2591,
   300.7849,
   289.5104,
   286.1793,
   286.2011,
   285.5743,
   285.6238,
   285.3433,
   284.0635,
   283.1184,
   281.2031,
   278.656,
   277.7288,
   275.8579,
   273.0541,
   270.9095,
   265.6796,
   261.7535,
   256.9895,
   253.7797,
   247.4406,
   240.1473,
   234.4071,
   229.3303,
   226.7081,
   224.3734,
   220.2731,
   215.7486,
   213.7682};
   graph = new TGraph(90,Graph_fx8,Graph_fy8);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#cc33ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(6);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph8 = new TH1F("Graph_Graph8","Graph",100,16.86982,1079.905);
   Graph_Graph8->SetMinimum(177.0742);
   Graph_Graph8->SetMaximum(332.6873);
   Graph_Graph8->SetDirectory(0);
   Graph_Graph8->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph8->SetLineColor(ci);
   Graph_Graph8->GetXaxis()->SetLabelFont(42);
   Graph_Graph8->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleFont(42);
   Graph_Graph8->GetYaxis()->SetLabelFont(42);
   Graph_Graph8->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleFont(42);
   Graph_Graph8->GetZaxis()->SetLabelFont(42);
   Graph_Graph8->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph8);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx9[5] = {
   250,
   500,
   1000,
   3000,
   5000};
   Double_t Graph_fy9[5] = {
   597.2217,
   587.5585,
   450.4588,
   245.3363,
   177.6733};
   graph = new TGraph(5,Graph_fx9,Graph_fy9);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#3399ff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(4);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph9 = new TH1F("Graph_Graph9","Graph",100,225,5475);
   Graph_Graph9->SetMinimum(135.7185);
   Graph_Graph9->SetMaximum(639.1765);
   Graph_Graph9->SetDirectory(0);
   Graph_Graph9->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph9->SetLineColor(ci);
   Graph_Graph9->GetXaxis()->SetLabelFont(42);
   Graph_Graph9->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetXaxis()->SetTitleFont(42);
   Graph_Graph9->GetYaxis()->SetLabelFont(42);
   Graph_Graph9->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetYaxis()->SetTitleFont(42);
   Graph_Graph9->GetZaxis()->SetLabelFont(42);
   Graph_Graph9->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph9->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph9->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph9);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx10[518] = {
   6.04,
   6.04,
   6.04,
   6.04,
   6.05,
   6.08,
   6.11,
   6.12,
   6.12,
   6.13,
   6.16,
   6.16,
   6.16,
   6.19,
   6.2,
   6.2,
   6.2,
   6.21,
   6.24,
   6.27,
   6.28,
   6.28,
   6.28,
   6.28,
   6.28,
   6.29,
   6.34,
   6.37,
   6.37,
   6.37,
   6.37,
   6.37,
   6.38,
   6.43,
   6.45,
   6.45,
   6.45,
   6.45,
   6.45,
   6.45,
   6.46,
   6.53,
   6.54,
   6.54,
   6.54,
   6.54,
   6.54,
   6.54,
   6.62,
   6.62,
   6.62,
   6.62,
   6.62,
   6.62,
   6.64,
   6.69,
   6.71,
   6.71,
   6.71,
   6.71,
   6.71,
   6.72,
   6.78,
   6.8,
   6.8,
   6.8,
   6.8,
   6.8,
   6.81,
   6.87,
   6.89,
   6.89,
   6.89,
   6.89,
   6.89,
   6.91,
   6.94,
   6.97,
   6.98,
   6.98,
   7,
   7.05,
   7.08,
   7.09,
   7.15,
   7.17,
   7.19,
   7.24,
   7.27,
   7.28,
   7.34,
   7.37,
   7.37,
   7.45,
   7.46,
   7.47,
   7.55,
   7.56,
   7.57,
   7.65,
   7.66,
   7.67,
   7.76,
   7.77,
   7.77,
   7.86,
   7.88,
   7.95,
   7.99,
   8.05,
   8.1,
   8.15,
   8.19,
   8.24,
   8.27,
   8.31,
   8.38,
   8.43,
   8.48,
   8.52,
   8.58,
   8.61,
   8.65,
   8.71,
   8.75,
   8.81,
   8.84,
   8.88,
   8.93,
   8.97,
   9,
   9.05,
   9.12,
   9.17,
   9.24,
   9.29,
   9.36,
   9.42,
   9.49,
   9.54,
   9.62,
   9.67,
   9.74,
   9.8,
   9.87,
   9.93,
   10,
   10.2,
   10.3,
   10.5,
   10.6,
   10.8,
   10.9,
   10.9,
   11,
   11.2,
   11.2,
   11.3,
   11.5,
   11.6,
   11.8,
   11.9,
   12.1,
   12.2,
   12.4,
   12.6,
   12.7,
   12.9,
   13.1,
   13.3,
   13.5,
   13.5,
   13.6,
   13.8,
   14,
   14.2,
   14.4,
   14.5,
   14.5,
   14.8,
   15,
   15.2,
   15.3,
   15.3,
   15.6,
   15.8,
   15.9,
   16,
   16.2,
   16.5,
   16.6,
   16.9,
   17.2,
   17.3,
   17.6,
   17.9,
   18,
   18.3,
   18.6,
   18.7,
   19,
   19.3,
   19.4,
   19.5,
   19.8,
   20.6,
   21.4,
   21.8,
   22,
   22.2,
   22.6,
   22.9,
   23.2,
   23.5,
   23.8,
   24.1,
   24.5,
   24.8,
   25.1,
   25.5,
   25.8,
   26.1,
   26.5,
   26.8,
   27.2,
   27.6,
   28.1,
   28.7,
   29.1,
   29.4,
   29.8,
   30.8,
   31.7,
   32.4,
   32.9,
   34.2,
   35.3,
   35.8,
   36.4,
   36.9,
   37.4,
   38.3,
   38.9,
   39.4,
   40.4,
   41,
   41.6,
   42.6,
   43.2,
   43.8,
   44.4,
   45,
   45.6,
   46.2,
   46.8,
   47.5,
   48.1,
   48.7,
   49.4,
   50.1,
   50.7,
   51.4,
   52.1,
   53.3,
   54.8,
   55.7,
   56.4,
   57.2,
   57.9,
   58.7,
   59.5,
   60.3,
   61.1,
   61.9,
   62.7,
   63.5,
   64.4,
   65.3,
   66.3,
   67.6,
   68.8,
   69.7,
   70.7,
   71.6,
   72.8,
   74.2,
   75.5,
   76.5,
   77.5,
   78.8,
   80.3,
   81.8,
   82.8,
   84,
   85.1,
   86.4,
   88.2,
   89.7,
   90.9,
   92.1,
   93.6,
   95.5,
   97.1,
   98.4,
   100,
   102,
   104,
   105,
   108,
   110,
   112,
   114,
   115,
   118,
   120,
   122,
   124,
   127,
   130,
   132,
   134,
   137,
   139,
   142,
   145,
   147,
   150,
   152,
   155,
   157,
   161,
   164,
   167,
   170,
   173,
   176,
   179,
   182,
   187,
   190,
   194,
   197,
   200,
   205,
   208,
   213,
   216,
   222,
   225,
   231,
   234,
   240,
   244,
   253,
   262,
   267,
   272,
   278,
   283,
   289,
   295,
   301,
   307,
   312,
   317,
   323,
   329,
   334,
   341,
   347,
   353,
   358,
   367,
   374,
   381,
   387,
   395,
   403,
   411,
   419,
   427,
   436,
   445,
   454,
   463,
   475,
   485,
   494,
   504,
   514,
   528,
   545,
   564,
   583,
   603,
   615,
   628,
   639,
   649,
   662,
   675,
   689,
   701,
   712,
   726,
   741,
   756,
   771,
   786,
   802,
   818,
   833,
   846,
   863,
   878,
   892,
   910,
   935,
   964,
   992,
   1030,
   1050,
   1070,
   1090,
   1110,
   1150,
   1190,
   1210,
   1230,
   1260,
   1280,
   1310,
   1340,
   1370,
   1400,
   1430,
   1460,
   1490,
   1520,
   1550,
   1600,
   1650,
   1690,
   1720,
   1750,
   1790,
   1850,
   1910,
   1950,
   1990,
   2030,
   2070,
   2130,
   2170,
   2210,
   2260,
   2300,
   2370,
   2410,
   2460,
   2540,
   2630,
   2680,
   2730,
   2820,
   2920,
   3020,
   3120,
   3190,
   3240,
   3320,
   3370,
   3490,
   3610,
   3690,
   3750,
   3880,
   4020,
   4100,
   4180,
   4270,
   4350,
   4440,
   4530,
   4620,
   4690,
   4810,
   4880,
   5000,
   5080,
   5200,
   5310,
   5420,
   5520,
   5640,
   5750,
   5860,
   5980,
   6100,
   6220,
   6330,
   6440,
   6560,
   6700,
   6830,
   7050,
   7300,
   7450,
   7590,
   7840,
   8110,
   8380,
   8670,
   8850,
   8990,
   9210,
   9390,
   9610};
   Double_t Graph_fy10[518] = {
   10.38676,
   10.50231,
   10.59957,
   10.7015,
   10.89364,
   11.07546,
   11.20647,
   11.30821,
   11.41342,
   11.62109,
   11.82995,
   11.96215,
   12.07818,
   12.17911,
   12.30743,
   12.414,
   12.52534,
   12.76538,
   12.97118,
   13.12865,
   13.25128,
   13.37442,
   13.49524,
   13.62174,
   13.74534,
   13.99711,
   14.24146,
   14.40622,
   14.54013,
   14.67427,
   14.8083,
   14.94868,
   15.22224,
   15.47959,
   15.6669,
   15.80805,
   15.95581,
   16.10083,
   16.2527,
   16.40114,
   16.65049,
   17.00656,
   17.18103,
   17.34867,
   17.50979,
   17.663,
   17.82315,
   18.09534,
   18.48112,
   18.68225,
   18.85134,
   19.02836,
   19.21403,
   19.38419,
   19.72512,
   20.07365,
   20.32073,
   20.51337,
   20.68111,
   20.89181,
   21.0759,
   21.47197,
   21.82747,
   22.10836,
   22.30316,
   22.50687,
   22.72023,
   22.88709,
   23.32871,
   23.73763,
   24.00677,
   24.23435,
   24.45738,
   24.68282,
   24.91041,
   25.36578,
   25.78503,
   26.09729,
   26.34398,
   26.58842,
   27.06598,
   27.53896,
   27.86668,
   28.37133,
   28.86478,
   29.20029,
   29.71859,
   30.24769,
   30.60227,
   31.15273,
   31.68307,
   32.06927,
   32.5362,
   33.23597,
   33.60661,
   34.0793,
   34.82676,
   35.19988,
   35.69491,
   36.46783,
   36.87798,
   37.44003,
   38.20997,
   38.65276,
   39.20006,
   40.07932,
   40.8414,
   41.55343,
   42.4036,
   43.14178,
   44.02907,
   44.76045,
   45.25133,
   46.05417,
   46.59723,
   47.07559,
   47.84267,
   48.80958,
   49.64402,
   50.16063,
   51.06094,
   51.65136,
   52.17979,
   52.98822,
   53.58735,
   54.51024,
   55.15295,
   55.7454,
   56.61769,
   57.29215,
   57.83828,
   58.59123,
   59.58957,
   60.25911,
   61.2608,
   61.9507,
   63.01658,
   63.72388,
   64.8542,
   65.56339,
   66.64773,
   67.45883,
   68.57788,
   69.38042,
   70.52167,
   71.44279,
   73.10832,
   74.86664,
   76.70132,
   78.48531,
   80.39639,
   82.27539,
   83.96915,
   84.81317,
   86.19446,
   88.02168,
   88.90821,
   90.11315,
   92.12023,
   94.32802,
   96.50886,
   98.84577,
   100.8332,
   102.8086,
   104.7116,
   106.793,
   108.8109,
   110.7898,
   112.9515,
   115.1677,
   117.0762,
   118.1521,
   119.1161,
   120.7506,
   122.937,
   125.5722,
   127.4196,
   128.5312,
   129.6638,
   131.542,
   134.0308,
   136.1693,
   137.3979,
   138.4952,
   140.691,
   142.7079,
   144.0108,
   145.2215,
   146.8251,
   149.5702,
   150.7827,
   152.4733,
   155.2857,
   156.5944,
   158.387,
   161.2726,
   162.6707,
   164.4505,
   167.5191,
   168.8856,
   170.7937,
   172.6887,
   174.1507,
   175.4199,
   177.3078,
   182.9573,
   187.7626,
   189.8365,
   190.4369,
   191.0454,
   193.294,
   195.0114,
   196.8028,
   198.6746,
   200.6337,
   202.4317,
   204.8624,
   205.4538,
   206.0518,
   208.4005,
   210.5569,
   212.4997,
   214.5452,
   216.3183,
   218.547,
   220.4993,
   222.5493,
   224.7033,
   226.9325,
   229.2592,
   231.2259,
   233.3437,
   236.0739,
   236.692,
   237.8515,
   240.2765,
   242.669,
   242.8986,
   243.7,
   244.4396,
   245.1237,
   245.324,
   246.1552,
   246.9239,
   247.738,
   248.6028,
   249.34,
   250.183,
   251.0113,
   251.7779,
   252.4054,
   252.4402,
   252.4741,
   252.5072,
   252.5394,
   252.576,
   252.6065,
   251.8236,
   251.565,
   251.5977,
   251.9175,
   252.7618,
   252.7922,
   253.0667,
   254.0334,
   254.1442,
   254.1704,
   254.1995,
   254.2243,
   254.2519,
   254.2788,
   254.305,
   254.3305,
   254.3554,
   254.3796,
   254.4032,
   254.4291,
   254.4543,
   254.2526,
   253.4561,
   253.3367,
   253.3588,
   252.5675,
   252.295,
   252.1031,
   251.2675,
   251.223,
   250.3929,
   250.0624,
   249.8782,
   249.0786,
   249.0366,
   248.174,
   247.9263,
   247.944,
   247.6981,
   246.9351,
   246.8915,
   246.9084,
   246.0196,
   245.5296,
   244.7362,
   244.6935,
   243.8445,
   243.6187,
   242.4377,
   241.8683,
   241.295,
   240.1783,
   239.0772,
   238.001,
   237.4805,
   236.957,
   236.4553,
   236.9969,
   237.012,
   234.4527,
   232.994,
   232.0529,
   231.124,
   230.6725,
   229.7764,
   228.8918,
   227.5962,
   226.7575,
   226.3463,
   225.53,
   224.7235,
   224.3345,
   223.5489,
   222.4,
   221.6514,
   220.9151,
   220.5568,
   219.4781,
   218.4252,
   218.4349,
   217.4066,
   216.4078,
   215.7535,
   214.7888,
   214.4764,
   213.537,
   212.6227,
   211.7229,
   210.5545,
   209.6973,
   208.5851,
   207.767,
   206.7044,
   205.9222,
   204.9054,
   204.1581,
   202.7048,
   200.6119,
   199.4946,
   198.6241,
   197.7734,
   196.9394,
   195.9209,
   195.126,
   194.1531,
   193.393,
   192.6467,
   192.2811,
   191.5566,
   190.8456,
   190.4965,
   189.8054,
   189.1259,
   188.7928,
   187.9657,
   186.9986,
   186.3681,
   185.748,
   185.29,
   184.688,
   183.8008,
   183.0782,
   182.0883,
   181.3984,
   180.4531,
   179.6626,
   178.8891,
   178.132,
   176.4223,
   175.5989,
   174.7941,
   174.0077,
   173.2387,
   171.644,
   170.3208,
   168.5686,
   167.267,
   165.4898,
   164.7208,
   163.9695,
   163.8889,
   163.1556,
   162.5181,
   161.6606,
   160.976,
   160.9779,
   160.2332,
   159.5059,
   158.7245,
   158.0995,
   157.2843,
   156.6211,
   155.8431,
   155.2095,
   155.1483,
   154.4668,
   153.8004,
   153.7418,
   153.0319,
   152.3957,
   150.9962,
   149.8166,
   148.4291,
   146.8649,
   146.1595,
   145.5618,
   144.8424,
   144.2273,
   143.077,
   141.5716,
   140.9059,
   140.2935,
   139.6204,
   138.999,
   138.3208,
   137.7278,
   136.5779,
   135.9239,
   135.2852,
   134.6612,
   134.0513,
   133.455,
   132.8717,
   131.7421,
   130.3946,
   129.6185,
   129.1138,
   128.6188,
   127.8935,
   126.9576,
   125.6149,
   124.9697,
   124.5488,
   123.9302,
   123.3267,
   122.1621,
   121.6,
   121.0507,
   120.5136,
   119.9882,
   118.9705,
   118.3154,
   117.8359,
   116.905,
   115.7187,
   115.1476,
   114.5904,
   113.7792,
   112.4881,
   111.6267,
   110.4508,
   109.8856,
   109.4437,
   108.7971,
   108.3764,
   107.6595,
   106.4832,
   106.0117,
   105.4593,
   104.657,
   103.6329,
   103.0581,
   102.6571,
   102.1086,
   101.7257,
   101.2013,
   100.7625,
   100.2622,
   99.77413,
   99.29779,
   98.89833,
   98.37802,
   97.9966,
   97.43805,
   97.13459,
   96.65859,
   96.25151,
   95.79658,
   95.35219,
   94.91791,
   94.49337,
   94.02686,
   93.6217,
   93.27425,
   93.07861,
   92.78892,
   92.31587,
   91.94598,
   91.2278,
   90.24254,
   89.78968,
   89.42747,
   88.72436,
   87.79184,
   87.11485,
   86.19591,
   85.77034,
   85.35504,
   84.91885,
   84.61402,
   84.25532};
   graph = new TGraph(518,Graph_fx10,Graph_fy10);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#66ccff");
   graph->SetLineColor(ci);
   graph->SetLineStyle(5);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph10 = new TH1F("Graph_Graph10","Graph",518,5.436,10570.4);
   Graph_Graph10->SetMinimum(9.348083);
   Graph_Graph10->SetMaximum(278.861);
   Graph_Graph10->SetDirectory(0);
   Graph_Graph10->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph10->SetLineColor(ci);
   Graph_Graph10->GetXaxis()->SetLabelFont(42);
   Graph_Graph10->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetXaxis()->SetTitleFont(42);
   Graph_Graph10->GetYaxis()->SetLabelFont(42);
   Graph_Graph10->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetYaxis()->SetTitleFont(42);
   Graph_Graph10->GetZaxis()->SetLabelFont(42);
   Graph_Graph10->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph10->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph10->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph10);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx11[35] = {
   3.98,
   4.37,
   4.79,
   5.25,
   5.75,
   6.31,
   6.92,
   7.59,
   8.32,
   9.12,
   10,
   10.96,
   12.02,
   13.18,
   14.45,
   15.85,
   17.38,
   19.05,
   20.89,
   22.91,
   25.12,
   31.62,
   39.81,
   50.12,
   63.1,
   79.43,
   100,
   125.89,
   158.49,
   199.53,
   251.19,
   316.23,
   1000,
   3162.3,
   10000};
   Double_t Graph_fy11[35] = {
   64.47703,
   92.96188,
   120.9916,
   144.7661,
   171.1873,
   194.8983,
   219.9867,
   244.5213,
   267.5613,
   289.6608,
   311.7509,
   330.2783,
   345.9273,
   362.605,
   376.5173,
   387.5872,
   398.0475,
   406.9399,
   414.3522,
   421.5604,
   426.3119,
   433.1181,
   435.0014,
   429.503,
   421.4079,
   411.5566,
   398.3919,
   383.7713,
   369.2768,
   352.1727,
   335.9504,
   319.8066,
   245.9105,
   185.1913,
   139.1868};
   graph = new TGraph(35,Graph_fx11,Graph_fy11);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#66cc66");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph11 = new TH1F("Graph_Graph11","Graph",100,3.582,10999.6);
   Graph_Graph11->SetMinimum(27.4246);
   Graph_Graph11->SetMaximum(472.0538);
   Graph_Graph11->SetDirectory(0);
   Graph_Graph11->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph11->SetLineColor(ci);
   Graph_Graph11->GetXaxis()->SetLabelFont(42);
   Graph_Graph11->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetXaxis()->SetTitleFont(42);
   Graph_Graph11->GetYaxis()->SetLabelFont(42);
   Graph_Graph11->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetYaxis()->SetTitleFont(42);
   Graph_Graph11->GetZaxis()->SetLabelFont(42);
   Graph_Graph11->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph11->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph11);
   
   multigraph->Add(graph,"");
   
   Double_t Graph_fx12[35] = {
   4,
   5,
   6,
   7,
   8,
   9,
   10,
   12,
   14,
   16,
   18,
   20,
   24,
   28,
   32,
   36,
   40,
   44,
   48,
   52,
   56,
   60,
   65,
   70,
   75,
   80,
   85,
   90,
   95,
   100,
   150,
   200,
   300,
   400,
   500};
   Double_t Graph_fy12[35] = {
   91.75045,
   115.9467,
   132.4599,
   144.0692,
   152.856,
   159.9043,
   165.4462,
   172.653,
   177.2831,
   179.5654,
   180.8904,
   181.5836,
   181.5776,
   181.2419,
   178.737,
   176.8406,
   175.2212,
   173.4303,
   171.2294,
   169.3498,
   167.5194,
   165.3283,
   163.1921,
   161.2337,
   159.198,
   157.2876,
   155.7156,
   153.813,
   152.3262,
   150.9621,
   138.5165,
   129.9907,
   118.4184,
   110.7202,
   104.9163};
   graph = new TGraph(35,Graph_fx12,Graph_fy12);
   graph->SetName("Graph");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#333399");
   graph->SetLineColor(ci);
   graph->SetLineStyle(2);
   graph->SetLineWidth(3);
   
   TH1F *Graph_Graph12 = new TH1F("Graph_Graph12","Graph",100,3.6,549.6);
   Graph_Graph12->SetMinimum(82.76714);
   Graph_Graph12->SetMaximum(190.5669);
   Graph_Graph12->SetDirectory(0);
   Graph_Graph12->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph12->SetLineColor(ci);
   Graph_Graph12->GetXaxis()->SetLabelFont(42);
   Graph_Graph12->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetXaxis()->SetTitleFont(42);
   Graph_Graph12->GetYaxis()->SetLabelFont(42);
   Graph_Graph12->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetYaxis()->SetTitleFont(42);
   Graph_Graph12->GetZaxis()->SetLabelFont(42);
   Graph_Graph12->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph12->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph12->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph12);
   
   multigraph->Add(graph,"");
   multigraph->Draw("L");
   
   TLegend *leg = new TLegend(0.16,0.61,0.5,0.85,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.03);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("NULL","Razor-0#mu 90% CL limit: AV EFT operator","h");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Expected limit, with uncertainty","lf");

   ci = TColor::GetColor("#ffcc00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);

   ci = TColor::GetColor("#ff6666");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Observed limit","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   
   leg = new TLegend(0.67,0.61,0.92,0.9,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextSize(0.03);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph","IceCube W^{+}W^{-}","l");

   ci = TColor::GetColor("#3399ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(4);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","COUPP 2012","l");

   ci = TColor::GetColor("#6666ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(6);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","SIMPLE 2012","l");

   ci = TColor::GetColor("#ff9900");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","Super-K W^{+}W^{-}","l");

   ci = TColor::GetColor("#cc33ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(6);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","XENON 100","l");

   ci = TColor::GetColor("#66ccff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(5);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","PICO","l");

   ci = TColor::GetColor("#66cc66");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph","PICASSO","l");

   ci = TColor::GetColor("#333399");
   entry->SetLineColor(ci);
   entry->SetLineStyle(2);
   entry->SetLineWidth(3);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.955,0.945,"18.8 fb^{-1} (8 TeV)");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.045);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.245,0.865,"CMS");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(61);
   tex->SetTextSize(0.045);
   tex->SetLineWidth(2);
   tex->Draw();
   
   TH1F *_copy__1 = new TH1F("_copy__1","",100,0.9,1049.95);
   _copy__1->SetMinimum(100);
   _copy__1->SetMaximum(2000000);
   _copy__1->SetDirectory(0);
   _copy__1->SetStats(0);

   ci = TColor::GetColor("#000099");
   _copy__1->SetLineColor(ci);
   _copy__1->GetXaxis()->SetTitle("M_{#chi} (GeV)");
   _copy__1->GetXaxis()->SetRange(0,96);
   _copy__1->GetXaxis()->SetLabelFont(42);
   _copy__1->GetXaxis()->SetTitleSize(0.05);
   _copy__1->GetXaxis()->SetTitleOffset(1.1);
   _copy__1->GetXaxis()->SetTitleFont(42);
   _copy__1->GetYaxis()->SetTitle("#Lambda (GeV)");
   _copy__1->GetYaxis()->SetLabelFont(42);
   _copy__1->GetYaxis()->SetTitleSize(0.05);
   _copy__1->GetYaxis()->SetTitleOffset(1.05);
   _copy__1->GetYaxis()->SetTitleFont(42);
   _copy__1->GetZaxis()->SetLabelFont(42);
   _copy__1->GetZaxis()->SetLabelSize(0.035);
   _copy__1->GetZaxis()->SetTitleSize(0.035);
   _copy__1->GetZaxis()->SetTitleFont(42);
   _copy__1->Draw("sameaxis");
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
Ejemplo n.º 22
0
void limit()
{
//=========Macro generated from canvas: limit/limit
//=========  (Thu Apr 27 14:38:33 2017) by ROOT version6.02/05
   TCanvas *limit = new TCanvas("limit", "limit",0,0,600,600);
   gStyle->SetOptFit(1);
   gStyle->SetOptStat(0);
   gStyle->SetOptTitle(0);
   limit->SetHighLightColor(2);
   limit->Range(0,0,1,1);
   limit->SetFillColor(0);
   limit->SetBorderMode(0);
   limit->SetBorderSize(2);
   limit->SetLeftMargin(0.16);
   limit->SetRightMargin(0.04);
   limit->SetTopMargin(0.06);
   limit->SetBottomMargin(0.12);
   limit->SetFrameFillStyle(0);
   limit->SetFrameBorderMode(0);
  
// ------------>Primitives in pad: pad
   TPad *pad = new TPad("pad", "pad",0,0,1,1);
   pad->Draw();
   pad->cd();
   pad->Range(-59.99999,-2.046818,1565,15.01);
   pad->SetFillColor(0);
   pad->SetBorderMode(0);
    pad->SetLogy();
   pad->SetBorderSize(2);
   pad->SetTickx(1);
   pad->SetTicky(1);
   pad->SetLeftMargin(0.16);
   pad->SetRightMargin(0.04);
   pad->SetTopMargin(0.06);
   pad->SetBottomMargin(0.12);
   pad->SetFrameFillStyle(0);
   pad->SetFrameBorderMode(0);
   pad->SetFrameFillStyle(0);
   pad->SetFrameBorderMode(0);
   
   TH1F *tmp01 = new TH1F("tmp01","Graph",100,200,1500);
   tmp01->SetMinimum(0.);
   tmp01->SetMaximum(13.98659);
   tmp01->SetStats(0);
   tmp01->SetLineStyle(0);
   tmp01->SetMarkerStyle(20);
   tmp01->GetXaxis()->SetTitle("m_{H} (GeV)");
   tmp01->GetXaxis()->SetLabelFont(42);
   tmp01->GetXaxis()->SetLabelOffset(0.01);
   tmp01->GetXaxis()->SetTitleSize(0.05);
   tmp01->GetXaxis()->SetTickLength(0.02);
   tmp01->GetXaxis()->SetTitleOffset(1.08);
   tmp01->GetXaxis()->SetTitleFont(42);
   tmp01->GetYaxis()->SetTitle("95% CL limit on #sigma/#sigma_{SM}");
   tmp01->GetYaxis()->SetLabelFont(42);
   tmp01->GetYaxis()->SetLabelOffset(0.007);
   tmp01->GetYaxis()->SetTitleSize(0.05);
   tmp01->GetYaxis()->SetTickLength(0.02);
   tmp01->GetYaxis()->SetTitleOffset(1.56);
   tmp01->GetYaxis()->SetTitleFont(42);
   tmp01->GetZaxis()->SetLabelFont(42);
   tmp01->GetZaxis()->SetLabelOffset(0.007);
   tmp01->GetZaxis()->SetTitleSize(0.05);
   tmp01->GetZaxis()->SetTickLength(0.02);
   tmp01->GetZaxis()->SetTitleFont(42);
   tmp01->Draw("AXIS");
   
   TH1F *tmp02 = new TH1F("tmp02","Graph",100,200,1500);
   tmp02->SetMinimum(0);
   tmp02->SetMaximum(13.98659);
   tmp02->SetStats(0);
   tmp02->SetLineStyle(0);
   tmp02->SetMarkerStyle(20);
   tmp02->GetXaxis()->SetTitle("m_{H} (GeV)");
   tmp02->GetXaxis()->SetLabelFont(42);
   tmp02->GetXaxis()->SetLabelOffset(0.01);
   tmp02->GetXaxis()->SetTitleSize(0.05);
   tmp02->GetXaxis()->SetTickLength(0.02);
   tmp02->GetXaxis()->SetTitleOffset(1.08);
   tmp02->GetXaxis()->SetTitleFont(42);
   tmp02->GetYaxis()->SetTitle("95% CL limit on #sigma/#sigma_{SM}");
   tmp02->GetYaxis()->SetLabelFont(42);
   tmp02->GetYaxis()->SetLabelOffset(0.007);
   tmp02->GetYaxis()->SetTitleSize(0.05);
   tmp02->GetYaxis()->SetTickLength(0.02);
   tmp02->GetYaxis()->SetTitleOffset(1.56);
   tmp02->GetYaxis()->SetTitleFont(42);
   tmp02->GetZaxis()->SetLabelFont(42);
   tmp02->GetZaxis()->SetLabelOffset(0.007);
   tmp02->GetZaxis()->SetTitleSize(0.05);
   tmp02->GetZaxis()->SetTickLength(0.02);
   tmp02->GetZaxis()->SetTitleFont(42);
   tmp02->Draw("AXIGSAME");
   
   Double_t Graph0_fx3001[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph0_fy3001[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   Double_t Graph0_felx3001[27] = {
   4.032346e-316,
   0,
   0,
   0,
   6.906313e-310,
   4.032343e-316,
   2.121996e-314,
   4.032582e-316,
   0,
   4.032588e-316,
   4.032343e-316,
   0,
   4.032584e-316,
   1.508018e-316,
   1.508219e-316,
   4.032589e-316,
   2.124327e-314,
   4.032593e-316,
   5.582942e-322,
   6.906313e-310,
   0,
   4.032344e-316,
   4.032583e-316,
   4.032588e-316,
   1.58101e-322,
   4.032293e-316,
   5.582942e-322};
   Double_t Graph0_fely3001[27] = {
   2.370331,
   1.057434,
   0.405159,
   0.1845837,
   0.09618759,
   0.05231667,
   0.03192902,
   0.02331161,
   0.01754379,
   0.01435089,
   0.01183319,
   0.009315491,
   0.008041382,
   0.006484985,
   0.005966187,
   0.004928589,
   0.00440979,
   0.004119873,
   0.004119873,
   0.003570557,
   0.003570557,
   0.00302124,
   0.00302124,
   0.002471924,
   0.002471924,
   0.002471924,
   0.002471924};
   Double_t Graph0_fehx3001[27] = {
   4.031643e-316,
   0,
   0,
   0,
   6.906313e-310,
   4.032106e-316,
   2.121996e-314,
   4.032349e-316,
   0,
   4.032354e-316,
   4.032106e-316,
   0,
   4.032351e-316,
   1.508018e-316,
   1.508219e-316,
   4.032356e-316,
   2.124327e-314,
   4.03236e-316,
   5.582942e-322,
   6.906313e-310,
   0,
   4.032107e-316,
   4.03235e-316,
   4.032354e-316,
   1.58101e-322,
   4.032222e-316,
   5.582942e-322};
   Double_t Graph0_fehy3001[27] = {
   5.693069,
   2.47175,
   0.8989364,
   0.4081147,
   0.2108151,
   0.1170805,
   0.07362081,
   0.05438244,
   0.04146756,
   0.03243252,
   0.02825768,
   0.02361592,
   0.01990321,
   0.01752287,
   0.01712826,
   0.0153559,
   0.01456667,
   0.01341494,
   0.01192601,
   0.0124739,
   0.01149977,
   0.01055484,
   0.01051202,
   0.008670811,
   0.008670811,
   0.008635777,
   0.008635777};
   TGraphAsymmErrors *grae = new TGraphAsymmErrors(27,Graph0_fx3001,Graph0_fy3001,Graph0_felx3001,Graph0_fehx3001,Graph0_fely3001,Graph0_fehy3001);
   grae->SetName("Graph0");
   grae->SetTitle("Graph");

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#ffff00");
   grae->SetFillColor(ci);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3001 = new TH1F("Graph_Graph3001","Graph",100,70,1630);
   Graph_Graph3001->SetMinimum(0);
   Graph_Graph3001->SetMaximum(11.53875);
   Graph_Graph3001->SetDirectory(0);
   Graph_Graph3001->SetStats(0);
   Graph_Graph3001->SetLineStyle(0);
   Graph_Graph3001->SetMarkerStyle(20);
   Graph_Graph3001->GetXaxis()->SetLabelFont(42);
   Graph_Graph3001->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetXaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph3001->GetXaxis()->SetTitleFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelFont(42);
   Graph_Graph3001->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetYaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph3001->GetYaxis()->SetTitleFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelFont(42);
   Graph_Graph3001->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3001->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph3001->GetZaxis()->SetTickLength(0.02);
   Graph_Graph3001->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3001);
   
   grae->Draw("3");
   
   Double_t Graph1_fx3002[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph1_fy3002[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   Double_t Graph1_felx3002[27] = {
   4.028644e-316,
   2.608667e-321,
   4.022558e-316,
   0,
   2.420922e-322,
   4.028601e-316,
   0,
   2.11372e-314,
   0,
   4.940656e-323,
   8.744962e-322,
   0,
   0,
   4.940656e-323,
   0,
   6.906314e-310,
   5.33769e+160,
   0,
   4.021573e-316,
   6.906314e-310,
   0,
   1.188318e-312,
   4.027998e-316,
   0,
   1.58101e-322,
   4.027629e-316,
   1.630417e-322};
   Double_t Graph1_fely3002[27] = {
   1.490716,
   0.6650269,
   0.2516418,
   0.1146438,
   0.05974151,
   0.03228919,
   0.01945674,
   0.01420552,
   0.01069075,
   0.009417772,
   0.007765532,
   0.006113291,
   0.005277157,
   0.003647804,
   0.00335598,
   0.002772331,
   0.002480507,
   0.002317429,
   0.002832413,
   0.002231598,
   0.002231598,
   0.001888275,
   0.001888275,
   0.001544952,
   0.001544952,
   0.001544952,
   0.002162933};
   Double_t Graph1_fehx3002[27] = {
   1.179415e-312,
   2.608667e-321,
   4.022558e-316,
   0,
   2.420922e-322,
   4.028634e-316,
   0,
   2.113722e-314,
   0,
   4.940656e-323,
   8.744962e-322,
   0,
   0,
   4.940656e-323,
   0,
   6.906314e-310,
   2.139459e+161,
   0,
   4.021573e-316,
   6.906314e-310,
   0,
   1.188318e-312,
   4.027998e-316,
   0,
   1.58101e-322,
   4.027675e-316,
   1.630417e-322};
   Double_t Graph1_fehy3002[27] = {
   2.351828,
   1.053343,
   0.3849801,
   0.1768222,
   0.09017253,
   0.05078118,
   0.03126747,
   0.02303264,
   0.01790216,
   0.012869,
   0.0113431,
   0.009505779,
   0.008205643,
   0.007395977,
   0.0068043,
   0.006212621,
   0.006088058,
   0.005138258,
   0.004204029,
   0.005262822,
   0.003643492,
   0.004453157,
   0.003768056,
   0.004204029,
   0.004204029,
   0.003643492,
   0.003643492};
   grae = new TGraphAsymmErrors(27,Graph1_fx3002,Graph1_fy3002,Graph1_felx3002,Graph1_fehx3002,Graph1_fely3002,Graph1_fehy3002);
   grae->SetName("Graph1");
   grae->SetTitle("Graph");

   ci = TColor::GetColor("#00ff00");
   grae->SetFillColor(ci);
   grae->SetMarkerStyle(20);
   
   TH1F *Graph_Graph3002 = new TH1F("Graph_Graph3002","Graph",100,-8.010917e+160,2.406781e+161);
   Graph_Graph3002->SetMinimum(0);
   Graph_Graph3002->SetMaximum(7.86335);
   Graph_Graph3002->SetDirectory(0);
   Graph_Graph3002->SetStats(0);
   Graph_Graph3002->SetLineStyle(0);
   Graph_Graph3002->SetMarkerStyle(20);
   Graph_Graph3002->GetXaxis()->SetLabelFont(42);
   Graph_Graph3002->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetXaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph3002->GetXaxis()->SetTitleFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelFont(42);
   Graph_Graph3002->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetYaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph3002->GetYaxis()->SetTitleFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelFont(42);
   Graph_Graph3002->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph3002->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph3002->GetZaxis()->SetTickLength(0.02);
   Graph_Graph3002->GetZaxis()->SetTitleFont(42);
   grae->SetHistogram(Graph_Graph3002);
   
   grae->Draw("3");
   
   Double_t Graph2_fx1[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph2_fy1[27] = {
   4.796875,
   2.148438,
   0.8398438,
   0.3857422,
   0.2001953,
   0.1088867,
   0.06591797,
   0.04736328,
   0.03564453,
   0.02783203,
   0.02294922,
   0.01806641,
   0.01513672,
   0.01220703,
   0.01123047,
   0.009277344,
   0.008300781,
   0.007324219,
   0.007324219,
   0.006347656,
   0.006347656,
   0.005371094,
   0.005371094,
   0.004394531,
   0.004394531,
   0.004394531,
   0.004394531};
   TGraph *graph = new TGraph(27,Graph2_fx1,Graph2_fy1);
   graph->SetName("Graph2");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);

   ci = TColor::GetColor("#ff0000");
   graph->SetLineColor(ci);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",100,70,1630);
   Graph_Graph1->SetMinimum(0);
   Graph_Graph1->SetMaximum(5.276123);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);
   Graph_Graph1->SetLineStyle(0);
   Graph_Graph1->SetMarkerStyle(20);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetXaxis()->SetTickLength(0.02);
   Graph_Graph1->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetYaxis()->SetTickLength(0.02);
   Graph_Graph1->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph1->GetZaxis()->SetTickLength(0.02);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph1);
   
   graph->Draw("l");
   
   Double_t Graph3_fx2[27] = {
   200,
   250,
   300,
   350,
   400,
   450,
   500,
   550,
   600,
   650,
   700,
   750,
   800,
   850,
   900,
   950,
   1000,
   1050,
   1100,
   1150,
   1200,
   1250,
   1300,
   1350,
   1400,
   1450,
   1500};
   Double_t Graph3_fy2[27] = {
   4.79203,
   2.152691,
   0.8377939,
   0.3861777,
   0.1995838,
   0.1090425,
   0.0660598,
   0.04759021,
   0.03596779,
   0.02751563,
   0.02238263,
   0.01815241,
   0.01512282,
   0.01228406,
   0.01162986,
   0.009836298,
   0.008643669,
   0.007866618,
   0.007089044,
   0.006702567,
   0.005960677,
   0.005744891,
   0.005145786,
   0.004956617,
   0.004917011,
   0.004476165,
   0.004343825};
   graph = new TGraph(27,Graph3_fx2,Graph3_fy2);
   graph->SetName("Graph3");
   graph->SetTitle("Graph");
   graph->SetFillColor(1);
   graph->SetLineWidth(2);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",100,70,1630);
   Graph_Graph2->SetMinimum(0);
   Graph_Graph2->SetMaximum(5.270799);
   Graph_Graph2->SetDirectory(0);
   Graph_Graph2->SetStats(0);
   Graph_Graph2->SetLineStyle(0);
   Graph_Graph2->SetMarkerStyle(20);
   Graph_Graph2->GetXaxis()->SetLabelFont(42);
   Graph_Graph2->GetXaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetXaxis()->SetTickLength(0.02);
   Graph_Graph2->GetXaxis()->SetTitleOffset(1.08);
   Graph_Graph2->GetXaxis()->SetTitleFont(42);
   Graph_Graph2->GetYaxis()->SetLabelFont(42);
   Graph_Graph2->GetYaxis()->SetLabelOffset(0.007);
   Graph_Graph2->GetYaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetYaxis()->SetTickLength(0.02);
   Graph_Graph2->GetYaxis()->SetTitleOffset(1.56);
   Graph_Graph2->GetYaxis()->SetTitleFont(42);
   Graph_Graph2->GetZaxis()->SetLabelFont(42);
   Graph_Graph2->GetZaxis()->SetLabelOffset(0.007);
   Graph_Graph2->GetZaxis()->SetTitleSize(0.05);
   Graph_Graph2->GetZaxis()->SetTickLength(0.02);
   Graph_Graph2->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph2);
   
   graph->Draw("pl");
   
   TH1F *tmp0_copy3 = new TH1F("tmp0_copy3","Graph",100,200,1500);
   tmp0_copy3->SetMinimum(0);
   tmp0_copy3->SetMaximum(11.53875);
   tmp0_copy3->SetDirectory(0);
   tmp0_copy3->SetStats(0);
   tmp0_copy3->SetLineStyle(0);
   tmp0_copy3->SetMarkerStyle(20);
   tmp0_copy3->GetXaxis()->SetLabelFont(42);
   tmp0_copy3->GetXaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetXaxis()->SetTickLength(0.02);
   tmp0_copy3->GetXaxis()->SetTitleOffset(1.08);
   tmp0_copy3->GetXaxis()->SetTitleFont(42);
   tmp0_copy3->GetYaxis()->SetLabelFont(42);
   tmp0_copy3->GetYaxis()->SetLabelOffset(0.007);
   tmp0_copy3->GetYaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetYaxis()->SetTickLength(0.02);
   tmp0_copy3->GetYaxis()->SetTitleOffset(1.56);
   tmp0_copy3->GetYaxis()->SetTitleFont(42);
   tmp0_copy3->GetZaxis()->SetLabelFont(42);
   tmp0_copy3->GetZaxis()->SetLabelOffset(0.007);
   tmp0_copy3->GetZaxis()->SetTitleSize(0.05);
   tmp0_copy3->GetZaxis()->SetTickLength(0.02);
   tmp0_copy3->GetZaxis()->SetTitleFont(42);
   tmp0_copy3->Draw("sameaxis");
   
   TH1F *tmp0_copy4 = new TH1F("tmp0_copy4","Graph",100,200,1500);
   tmp0_copy4->SetMinimum(0);
   tmp0_copy4->SetMaximum(11.53875);
   tmp0_copy4->SetDirectory(0);
   tmp0_copy4->SetStats(0);
   tmp0_copy4->SetLineStyle(0);
   tmp0_copy4->SetMarkerStyle(20);
   tmp0_copy4->GetXaxis()->SetLabelFont(42);
   tmp0_copy4->GetXaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetXaxis()->SetTickLength(0.02);
   tmp0_copy4->GetXaxis()->SetTitleOffset(1.08);
   tmp0_copy4->GetXaxis()->SetTitleFont(42);
   tmp0_copy4->GetYaxis()->SetLabelFont(42);
   tmp0_copy4->GetYaxis()->SetLabelOffset(0.007);
   tmp0_copy4->GetYaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetYaxis()->SetTickLength(0.02);
   tmp0_copy4->GetYaxis()->SetTitleOffset(1.56);
   tmp0_copy4->GetYaxis()->SetTitleFont(42);
   tmp0_copy4->GetZaxis()->SetLabelFont(42);
   tmp0_copy4->GetZaxis()->SetLabelOffset(0.007);
   tmp0_copy4->GetZaxis()->SetTitleSize(0.05);
   tmp0_copy4->GetZaxis()->SetTickLength(0.02);
   tmp0_copy4->GetZaxis()->SetTitleFont(42);
   tmp0_copy4->Draw("sameaxig");
   
   TLegend *leg = new TLegend(0.495,0.825,0.945,0.925,NULL,"NBNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   TLegendEntry *entry=leg->AddEntry("Graph3","Observed","LP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","Expected","L");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","#pm1#sigma Expected","F");

   ci = TColor::GetColor("#00ff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","#pm2#sigma Expected","F");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TPave *pave = new TPave(0.16,0.81,0.96,0.94,1,"brNDC");
   pave->SetFillColor(0);
   pave->Draw();
   
   leg = new TLegend(0.495,0.825,0.945,0.925,NULL,"NBNDC");
   leg->SetBorderSize(0);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("Graph3","Observed","LP");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(20);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph2","Expected","L");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(2);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph1","#pm1#sigma Expected","F");

   ci = TColor::GetColor("#00ff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   entry=leg->AddEntry("Graph0","#pm2#sigma Expected","F");

   ci = TColor::GetColor("#ffff00");
   entry->SetFillColor(ci);
   entry->SetFillStyle(1001);
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(42);
   leg->Draw();
   TLatex *   tex = new TLatex(0.196,0.9113,"CMS");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextSize(0.048);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.196,0.8537,"Internal");
tex->SetNDC();
   tex->SetTextAlign(13);
   tex->SetTextFont(52);
   tex->SetTextSize(0.03648);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.96,0.952,"");
tex->SetNDC();
   tex->SetTextAlign(31);
   tex->SetTextFont(42);
   tex->SetTextSize(0.036);
   tex->SetLineWidth(2);
   tex->Draw();
      tex = new TLatex(0.16,0.952,"");
tex->SetNDC();
   tex->SetTextFont(42);
   tex->SetTextSize(0.036);
   tex->SetLineWidth(2);
   tex->Draw();
   pad->Modified();
   limit->cd();
   limit->Modified();
   limit->cd();
   limit->SetSelected(limit);
}
Ejemplo n.º 23
0
void proj_npe_1()
{
//=========Macro generated from canvas: c/
//=========  (Wed Jul 15 16:16:05 2015) by ROOT version6.04/00
   TCanvas *c = new TCanvas("c", "",0,45,600,500);
   c->SetHighLightColor(2);
   c->Range(-2655.754,-5.755,4350.289,51.795);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   Double_t _fx2[39] = {
   -1488.08,
   -1403.181,
   -1178.164,
   -1033.78,
   -849.3154,
   -838.8983,
   -788.1957,
   -701.2156,
   -654.0264,
   -163.6875,
   1.142557,
   54.07047,
   256.5688,
   531.8203,
   632.5535,
   750.8472,
   835.9491,
   859.9519,
   970.3359,
   1013.975,
   1084.685,
   1488.872,
   1635.959,
   1867.579,
   1967.102,
   2022.346,
   2109.155,
   2234.388,
   2395.154,
   2415.658,
   2534.104,
   2547.086,
   2643.154,
   2683.775,
   2846.919,
   3002.304,
   3074.222,
   3131.044,
   3182.615};
   Double_t _fy2[39] = {
   2.55,
   2.3,
   2.55,
   2.7,
   2.4,
   2.65,
   2.75,
   2.5,
   2.4,
   2.45,
   42.05,
   2.55,
   2.6,
   2.6,
   2.85,
   2.7,
   2.55,
   2.6,
   2.6,
   2.6,
   2.55,
   2.25,
   2.65,
   2.6,
   2.55,
   2.25,
   2.55,
   2.45,
   2.65,
   2.65,
   2.65,
   2.6,
   2.6,
   2.35,
   2.55,
   2.15,
   2.45,
   2.75,
   2.3};
   TGraph *graph = new TGraph(39,_fx2,_fy2);
   graph->SetName("");
   graph->SetTitle("Event 1");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Event 1",100,-1955.149,3649.684);
   Graph_Graph2->SetMinimum(0);
   Graph_Graph2->SetMaximum(46.04);
   Graph_Graph2->SetDirectory(0);
   Graph_Graph2->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph2->SetLineColor(ci);
   Graph_Graph2->GetXaxis()->SetTitle("time wrt trigger [cm]");
   Graph_Graph2->GetXaxis()->SetLabelFont(42);
   Graph_Graph2->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetXaxis()->SetTitleFont(42);
   Graph_Graph2->GetYaxis()->SetTitle("#PE");
   Graph_Graph2->GetYaxis()->SetLabelFont(42);
   Graph_Graph2->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetYaxis()->SetTitleFont(42);
   Graph_Graph2->GetZaxis()->SetLabelFont(42);
   Graph_Graph2->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph2->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph2->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph2);
   
   graph->Draw("ap");
   
   TPaveText *pt = new TPaveText(0.4189298,0.94,0.5810702,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("Event 1");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
Ejemplo n.º 24
0
void proj_npe_7()
{
//=========Macro generated from canvas: c/
//=========  (Wed Jul 15 10:08:15 2015) by ROOT version6.04/00
   TCanvas *c = new TCanvas("c", "",0,45,600,500);
   c->SetHighLightColor(2);
   c->Range(-2716.773,-19.2575,4381.788,173.3175);
   c->SetFillColor(0);
   c->SetBorderMode(0);
   c->SetBorderSize(2);
   c->SetFrameBorderMode(0);
   c->SetFrameBorderMode(0);
   
   Double_t _fx8[40] = {
   -1533.68,
   -1080.366,
   -985.4475,
   -967.7257,
   -676.2766,
   -543.2768,
   0.5077484,
   1.609375,
   4,
   230.4228,
   298.6529,
   327.7793,
   383.4035,
   536.5637,
   668.7969,
   863.9145,
   907.8805,
   964.7188,
   971.6563,
   1075.914,
   1097.936,
   1215.826,
   1275.258,
   1308.524,
   1328.116,
   1732.736,
   2102.711,
   2197.457,
   2255.99,
   2286.444,
   2371.061,
   2594.067,
   2630.891,
   2704.654,
   2727.792,
   2773.388,
   2784.73,
   2845.592,
   2924.958,
   3198.695};
   Double_t _fy8[40] = {
   2.75,
   2.65,
   2.65,
   2.7,
   2.35,
   2.45,
   140.25,
   2.65,
   2.15,
   2.55,
   2.35,
   2.45,
   2.3,
   2.5,
   2.65,
   4.05,
   2.55,
   2.5,
   2.35,
   2.25,
   2.6,
   2.7,
   2.7,
   2.6,
   2.4,
   2.35,
   2.8,
   2.55,
   2.35,
   2.8,
   2.4,
   2.35,
   2.6,
   2.6,
   2.45,
   2.45,
   2.65,
   2.55,
   2.55,
   2.65};
   TGraph *graph = new TGraph(40,_fx8,_fy8);
   graph->SetName("");
   graph->SetTitle("npe values of flashes in event: 7");
   graph->SetFillColor(1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#0000ff");
   graph->SetMarkerColor(ci);
   graph->SetMarkerStyle(20);
   
   TH1F *Graph_Graph8 = new TH1F("Graph_Graph8","npe values of flashes in event: 7",100,-2006.917,3671.932);
   Graph_Graph8->SetMinimum(0);
   Graph_Graph8->SetMaximum(154.06);
   Graph_Graph8->SetDirectory(0);
   Graph_Graph8->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph8->SetLineColor(ci);
   Graph_Graph8->GetXaxis()->SetTitle("flash_t");
   Graph_Graph8->GetXaxis()->SetLabelFont(42);
   Graph_Graph8->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetXaxis()->SetTitleFont(42);
   Graph_Graph8->GetYaxis()->SetTitle("flash_npe");
   Graph_Graph8->GetYaxis()->SetLabelFont(42);
   Graph_Graph8->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetYaxis()->SetTitleFont(42);
   Graph_Graph8->GetZaxis()->SetLabelFont(42);
   Graph_Graph8->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph8->GetZaxis()->SetTitleFont(42);
   graph->SetHistogram(Graph_Graph8);
   
   graph->Draw("ap");
   
   TPaveText *pt = new TPaveText(0.1823077,0.9368947,0.8176923,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("npe values of flashes in event: 7");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}