当前位置: 首页>>代码示例>>C++>>正文


C++ TGraph::SetHistogram方法代码示例

本文整理汇总了C++中TGraph::SetHistogram方法的典型用法代码示例。如果您正苦于以下问题:C++ TGraph::SetHistogram方法的具体用法?C++ TGraph::SetHistogram怎么用?C++ TGraph::SetHistogram使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TGraph的用法示例。


在下文中一共展示了TGraph::SetHistogram方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: fitWM2testbkg


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitWM2testbkg.C

示例2: fitLMLL1testbkg


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLMLL1testbkg.C

示例3: fitLMLL1


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLMLL1.C

示例4: fit7_testbkg_withtail


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fit7_testbkg_withtail.C

示例5: fitLMC_c070116_LL1_fixed


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLMC_c070116_LL1_fixed.C

示例6: fitLMC_c070116_LL1_floathypparamsfixmusigma_nobkg


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLMC_c070116_LL1_floathypparamsfixmusigma_nobkg.C

示例7: fit1


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLst1.C

示例8: rsLimit7TeV

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);
//.........这里部分代码省略.........
开发者ID:cms-exotica-diphotons,项目名称:DiPhotonAnalysis,代码行数:101,代码来源:rsLimit7TeV.C

示例9: picture2

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("");
//.........这里部分代码省略.........
开发者ID:nikihowe,项目名称:flash,代码行数:101,代码来源:picture2.C

示例10: if


//.........这里部分代码省略.........
	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.;
开发者ID:gammacombo,项目名称:gammacombo,代码行数:67,代码来源:OneMinusClPlot.cpp

示例11: mass4Chan


//.........这里部分代码省略.........
   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");




开发者ID:UFLHEP,项目名称:Z4L_MassWidth,代码行数:62,代码来源:mass4Chan.C

示例12: mssm_limit_RHW_12p9_Final


//.........这里部分代码省略.........
    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,
开发者ID:abdollah110,项目名称:LQ80X,代码行数:67,代码来源:mssm_limit_RHW_12p9_Final.C

示例13: fitLMC_c070116_LL1_floatlfixmusigma_nobkg


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitLMC_c070116_LL1_floatlfixmusigma_nobkg.C

示例14: wmj_fit_stack


//.........这里部分代码省略.........
   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,
开发者ID:s-farry,项目名称:workspaces,代码行数:67,代码来源:wmj_fit_stack.C

示例15: fitcomparingcuts_LM_optimized_DD1_sigregonly


//.........这里部分代码省略.........
   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);
开发者ID:goi42,项目名称:LbJpsipPi,代码行数:67,代码来源:fitcomparingcuts_LM_optimized_DD1_sigregonly.C


注:本文中的TGraph::SetHistogram方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。