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


C++ TCanvas::Add方法代码示例

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


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

示例1: hmt

void hmt()
{
//=========Macro generated from canvas: hmt/hmt
//=========  (Mon Nov 23 11:05:05 2015) by ROOT version6.02/05
   TCanvas *hmt = new TCanvas("hmt", "hmt",220,242,700,700);
   hmt->Range(-25,-7.557249,225,5.510816);
   hmt->SetFillColor(0);
   hmt->SetBorderMode(0);
   hmt->SetBorderSize(2);
   hmt->SetLogy();
   hmt->SetFrameBorderMode(0);
   hmt->SetFrameBorderMode(0);
   
   THStack *hmt = new THStack();
   hmt->SetName("hmt");
   hmt->SetTitle("hmt");
   
   TH1F *hmt_stack_12 = new TH1F("hmt_stack_12","hmt",8,0,200);
   hmt_stack_12->SetMinimum(5.617689e-07);
   hmt_stack_12->SetMaximum(15995.94);
   hmt_stack_12->SetDirectory(0);
   hmt_stack_12->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   hmt_stack_12->SetLineColor(ci);
   hmt_stack_12->GetXaxis()->SetTitle("hmt");
   hmt_stack_12->GetXaxis()->SetLabelFont(42);
   hmt_stack_12->GetXaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetXaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetXaxis()->SetTitleFont(42);
   hmt_stack_12->GetYaxis()->SetTitle("Events/pb");
   hmt_stack_12->GetYaxis()->SetLabelFont(42);
   hmt_stack_12->GetYaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetYaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetYaxis()->SetTitleFont(42);
   hmt_stack_12->GetZaxis()->SetLabelFont(42);
   hmt_stack_12->GetZaxis()->SetLabelSize(0.035);
   hmt_stack_12->GetZaxis()->SetTitleSize(0.035);
   hmt_stack_12->GetZaxis()->SetTitleFont(42);
   hmt->SetHistogram(hmt_stack_12);
   
   
   TH1D *hmt56 = new TH1D("hmt56"," Transverse mass",8,0,200);
   hmt56->SetBinContent(1,5612.801);
   hmt56->SetBinContent(2,96.67354);
   hmt56->SetBinContent(3,1.843083);
   hmt56->SetBinContent(4,0.00068069);
   hmt56->SetBinError(1,42.85727);
   hmt56->SetBinError(2,5.590091);
   hmt56->SetBinError(3,0.7489465);
   hmt56->SetBinError(4,0.00068069);
   hmt56->SetEntries(35032);

   ci = TColor::GetColor("#00cc00");
   hmt56->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   hmt56->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   hmt56->SetMarkerColor(ci);
   hmt56->SetMarkerStyle(22);
   hmt56->GetXaxis()->SetTitle("hmt");
   hmt56->GetXaxis()->SetLabelFont(42);
   hmt56->GetXaxis()->SetLabelSize(0.035);
   hmt56->GetXaxis()->SetTitleSize(0.035);
   hmt56->GetXaxis()->SetTitleFont(42);
   hmt56->GetYaxis()->SetTitle("Events/pb");
   hmt56->GetYaxis()->SetLabelFont(42);
   hmt56->GetYaxis()->SetLabelSize(0.035);
   hmt56->GetYaxis()->SetTitleSize(0.035);
   hmt56->GetYaxis()->SetTitleFont(42);
   hmt56->GetZaxis()->SetLabelFont(42);
   hmt56->GetZaxis()->SetLabelSize(0.035);
   hmt56->GetZaxis()->SetTitleSize(0.035);
   hmt56->GetZaxis()->SetTitleFont(42);
   hmt->Add(hmt,"");
   
   TH1D *hmt57 = new TH1D("hmt57"," Transverse mass",8,0,200);
   hmt57->SetBinContent(1,20.71688);
   hmt57->SetBinContent(2,9.067683);
   hmt57->SetBinContent(3,5.102584);
   hmt57->SetBinContent(4,1.066239);
   hmt57->SetBinContent(5,0.004897312);
   hmt57->SetBinContent(6,8.681582e-05);
   hmt57->SetBinContent(7,2.866842e-05);
   hmt57->SetBinError(1,0.1278328);
   hmt57->SetBinError(2,0.08350833);
   hmt57->SetBinError(3,0.06062541);
   hmt57->SetBinError(4,0.025646);
   hmt57->SetBinError(5,0.001471335);
   hmt57->SetBinError(6,3.545477e-05);
   hmt57->SetBinError(7,2.027973e-05);
   hmt57->SetEntries(136801);

   ci = TColor::GetColor("#00ffff");
   hmt57->SetFillColor(ci);

//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:hmt.C

示例2: phimuphimet

void phimuphimet()
{
//=========Macro generated from canvas: phimuphimet/phimuphimet
//=========  (Fri Nov 13 11:38:57 2015) by ROOT version6.02/05
   TCanvas *phimuphimet = new TCanvas("phimuphimet", "phimuphimet",340,362,700,700);
   phimuphimet->Range(-0.3926991,-3.745915,3.534292,3.369465);
   phimuphimet->SetFillColor(0);
   phimuphimet->SetBorderMode(0);
   phimuphimet->SetBorderSize(2);
   phimuphimet->SetLogy();
   phimuphimet->SetFrameBorderMode(0);
   phimuphimet->SetFrameBorderMode(0);
   
   THStack *phimuphimet = new THStack();
   phimuphimet->SetName("phimuphimet");
   phimuphimet->SetTitle("phimuphimet");
   
   TH1F *phimuphimet_stack_18 = new TH1F("phimuphimet_stack_18","phimuphimet",10,0,3.141593);
   phimuphimet_stack_18->SetMinimum(0.0009238963);
   phimuphimet_stack_18->SetMaximum(454.9117);
   phimuphimet_stack_18->SetDirectory(0);
   phimuphimet_stack_18->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   phimuphimet_stack_18->SetLineColor(ci);
   phimuphimet_stack_18->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet_stack_18->GetXaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetXaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetXaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetXaxis()->SetTitleFont(42);
   phimuphimet_stack_18->GetYaxis()->SetTitle("Events/pb");
   phimuphimet_stack_18->GetYaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetYaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetYaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetYaxis()->SetTitleFont(42);
   phimuphimet_stack_18->GetZaxis()->SetLabelFont(42);
   phimuphimet_stack_18->GetZaxis()->SetLabelSize(0.035);
   phimuphimet_stack_18->GetZaxis()->SetTitleSize(0.035);
   phimuphimet_stack_18->GetZaxis()->SetTitleFont(42);
   phimuphimet->SetHistogram(phimuphimet_stack_18);
   
   
   TH1D *phimuphimet86 = new TH1D("phimuphimet86"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet86->SetBinContent(1,230.641);
   phimuphimet86->SetBinContent(2,216.3046);
   phimuphimet86->SetBinContent(3,223.2529);
   phimuphimet86->SetBinContent(4,205.0752);
   phimuphimet86->SetBinContent(5,177.4887);
   phimuphimet86->SetBinContent(6,185.6797);
   phimuphimet86->SetBinContent(7,165.8596);
   phimuphimet86->SetBinContent(8,166.2099);
   phimuphimet86->SetBinContent(9,159.2644);
   phimuphimet86->SetBinContent(10,174.5095);
   phimuphimet86->SetBinError(1,8.61142);
   phimuphimet86->SetBinError(2,8.327371);
   phimuphimet86->SetBinError(3,8.486581);
   phimuphimet86->SetBinError(4,8.129407);
   phimuphimet86->SetBinError(5,7.536633);
   phimuphimet86->SetBinError(6,7.726982);
   phimuphimet86->SetBinError(7,7.294678);
   phimuphimet86->SetBinError(8,7.302349);
   phimuphimet86->SetBinError(9,7.154931);
   phimuphimet86->SetBinError(10,7.4987);
   phimuphimet86->SetEntries(17572);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphimet86->SetMarkerColor(ci);
   phimuphimet86->SetMarkerStyle(22);
   phimuphimet86->GetXaxis()->SetTitle("phimuphimet");
   phimuphimet86->GetXaxis()->SetLabelFont(42);
   phimuphimet86->GetXaxis()->SetLabelSize(0.035);
   phimuphimet86->GetXaxis()->SetTitleSize(0.035);
   phimuphimet86->GetXaxis()->SetTitleFont(42);
   phimuphimet86->GetYaxis()->SetTitle("Events/pb");
   phimuphimet86->GetYaxis()->SetLabelFont(42);
   phimuphimet86->GetYaxis()->SetLabelSize(0.035);
   phimuphimet86->GetYaxis()->SetTitleSize(0.035);
   phimuphimet86->GetYaxis()->SetTitleFont(42);
   phimuphimet86->GetZaxis()->SetLabelFont(42);
   phimuphimet86->GetZaxis()->SetLabelSize(0.035);
   phimuphimet86->GetZaxis()->SetTitleSize(0.035);
   phimuphimet86->GetZaxis()->SetTitleFont(42);
   phimuphimet->Add(phimuphimet,"");
   
   TH1D *phimuphimet87 = new TH1D("phimuphimet87"," #Delta_{#phi}[#mu,MET]",10,0,3.141593);
   phimuphimet87->SetBinContent(1,6.11516);
   phimuphimet87->SetBinContent(2,5.535954);
   phimuphimet87->SetBinContent(3,5.331195);
   phimuphimet87->SetBinContent(4,5.298494);
   phimuphimet87->SetBinContent(5,5.612855);
   phimuphimet87->SetBinContent(6,5.975299);
   phimuphimet87->SetBinContent(7,6.323196);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:phimuphimet.C

示例3: phielphileadj

void phielphileadj()
{
//=========Macro generated from canvas: phielphileadj/phielphileadj
//=========  (Sun Nov  8 21:56:11 2015) by ROOT version6.02/05
   TCanvas *phielphileadj = new TCanvas("phielphileadj", "phielphileadj",0,23,700,700);
   phielphileadj->Range(-0.3926991,-4.787882,3.534292,1.179054);
   phielphileadj->SetFillColor(0);
   phielphileadj->SetBorderMode(0);
   phielphileadj->SetBorderSize(2);
   phielphileadj->SetLogy();
   phielphileadj->SetFrameBorderMode(0);
   phielphileadj->SetFrameBorderMode(0);
   
   THStack *phielphileadj = new THStack();
   phielphileadj->SetName("phielphileadj");
   phielphileadj->SetTitle("phielphileadj");
   
   TH1F *phielphileadj_stack_22 = new TH1F("phielphileadj_stack_22","phielphileadj",10,0,3.141593);
   phielphileadj_stack_22->SetMinimum(6.4389e-05);
   phielphileadj_stack_22->SetMaximum(3.822615);
   phielphileadj_stack_22->SetDirectory(0);
   phielphileadj_stack_22->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   phielphileadj_stack_22->SetLineColor(ci);
   phielphileadj_stack_22->GetXaxis()->SetTitle("phielphileadj");
   phielphileadj_stack_22->GetXaxis()->SetLabelFont(42);
   phielphileadj_stack_22->GetXaxis()->SetLabelSize(0.035);
   phielphileadj_stack_22->GetXaxis()->SetTitleSize(0.035);
   phielphileadj_stack_22->GetXaxis()->SetTitleFont(42);
   phielphileadj_stack_22->GetYaxis()->SetTitle("Events/pb");
   phielphileadj_stack_22->GetYaxis()->SetLabelFont(42);
   phielphileadj_stack_22->GetYaxis()->SetLabelSize(0.035);
   phielphileadj_stack_22->GetYaxis()->SetTitleSize(0.035);
   phielphileadj_stack_22->GetYaxis()->SetTitleFont(42);
   phielphileadj_stack_22->GetZaxis()->SetLabelFont(42);
   phielphileadj_stack_22->GetZaxis()->SetLabelSize(0.035);
   phielphileadj_stack_22->GetZaxis()->SetTitleSize(0.035);
   phielphileadj_stack_22->GetZaxis()->SetTitleFont(42);
   phielphileadj->SetHistogram(phielphileadj_stack_22);
   
   
   TH1D *phielphileadj106 = new TH1D("phielphileadj106"," #Delta_{#phi}[e_{-},jet_{1}]",10,0,3.141593);
   phielphileadj106->SetBinContent(1,0.04383576);
   phielphileadj106->SetBinContent(2,0.001250901);
   phielphileadj106->SetBinContent(6,0.001250901);
   phielphileadj106->SetBinContent(8,0.001250901);
   phielphileadj106->SetBinContent(9,0.002501802);
   phielphileadj106->SetBinContent(10,0.01000721);
   phielphileadj106->SetBinError(1,0.02673601);
   phielphileadj106->SetBinError(2,0.001250901);
   phielphileadj106->SetBinError(6,0.001250901);
   phielphileadj106->SetBinError(8,0.001250901);
   phielphileadj106->SetBinError(9,0.001769041);
   phielphileadj106->SetBinError(10,0.003538083);
   phielphileadj106->SetEntries(28);

   ci = TColor::GetColor("#00cc00");
   phielphileadj106->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   phielphileadj106->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   phielphileadj106->SetMarkerColor(ci);
   phielphileadj106->SetMarkerStyle(22);
   phielphileadj106->GetXaxis()->SetTitle("phielphileadj");
   phielphileadj106->GetXaxis()->SetLabelFont(42);
   phielphileadj106->GetXaxis()->SetLabelSize(0.035);
   phielphileadj106->GetXaxis()->SetTitleSize(0.035);
   phielphileadj106->GetXaxis()->SetTitleFont(42);
   phielphileadj106->GetYaxis()->SetTitle("Events/pb");
   phielphileadj106->GetYaxis()->SetLabelFont(42);
   phielphileadj106->GetYaxis()->SetLabelSize(0.035);
   phielphileadj106->GetYaxis()->SetTitleSize(0.035);
   phielphileadj106->GetYaxis()->SetTitleFont(42);
   phielphileadj106->GetZaxis()->SetLabelFont(42);
   phielphileadj106->GetZaxis()->SetLabelSize(0.035);
   phielphileadj106->GetZaxis()->SetTitleSize(0.035);
   phielphileadj106->GetZaxis()->SetTitleFont(42);
   phielphileadj->Add(phielphileadj,"");
   
   TH1D *phielphileadj107 = new TH1D("phielphileadj107"," #Delta_{#phi}[e_{-},jet_{1}]",10,0,3.141593);
   phielphileadj107->SetBinContent(1,0.2179961);
   phielphileadj107->SetBinContent(2,0.01962548);
   phielphileadj107->SetBinContent(3,0.02590187);
   phielphileadj107->SetBinContent(4,0.04624029);
   phielphileadj107->SetBinContent(5,0.09403783);
   phielphileadj107->SetBinContent(6,0.1831221);
   phielphileadj107->SetBinContent(7,0.3913257);
   phielphileadj107->SetBinContent(8,0.7765426);
   phielphileadj107->SetBinContent(9,1.404146);
   phielphileadj107->SetBinContent(10,2.115042);
   phielphileadj107->SetBinError(1,0.008912504);
   phielphileadj107->SetBinError(2,0.002766324);
   phielphileadj107->SetBinError(3,0.0025562);
   phielphileadj107->SetBinError(4,0.003795699);
   phielphileadj107->SetBinError(5,0.00538164);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:phielphileadj.C

示例4: METJets

void METJets()
{
//=========Macro generated from canvas: METJets/METJets
//=========  (Fri Nov  6 09:02:55 2015) by ROOT version6.02/05
   TCanvas *METJets = new TCanvas("METJets", "METJets",435,102,700,700);
   METJets->Range(-2.5,-6.939719,22.5,0.708446);
   METJets->SetFillColor(0);
   METJets->SetBorderMode(0);
   METJets->SetBorderSize(2);
   METJets->SetLogy();
   METJets->SetFrameBorderMode(0);
   METJets->SetFrameBorderMode(0);
   
   THStack *METJets = new THStack();
   METJets->SetName("METJets");
   METJets->SetTitle("METJets");
   
   TH1F *METJets_stack_3 = new TH1F("METJets_stack_3","METJets",20,0,20);
   METJets_stack_3->SetMinimum(6.684943e-07);
   METJets_stack_3->SetMaximum(0.8782728);
   METJets_stack_3->SetDirectory(0);
   METJets_stack_3->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   METJets_stack_3->SetLineColor(ci);
   METJets_stack_3->GetXaxis()->SetTitle("METJets");
   METJets_stack_3->GetXaxis()->SetLabelFont(42);
   METJets_stack_3->GetXaxis()->SetLabelSize(0.035);
   METJets_stack_3->GetXaxis()->SetTitleSize(0.035);
   METJets_stack_3->GetXaxis()->SetTitleFont(42);
   METJets_stack_3->GetYaxis()->SetTitle("Events/pb");
   METJets_stack_3->GetYaxis()->SetLabelFont(42);
   METJets_stack_3->GetYaxis()->SetLabelSize(0.035);
   METJets_stack_3->GetYaxis()->SetTitleSize(0.035);
   METJets_stack_3->GetYaxis()->SetTitleFont(42);
   METJets_stack_3->GetZaxis()->SetLabelFont(42);
   METJets_stack_3->GetZaxis()->SetLabelSize(0.035);
   METJets_stack_3->GetZaxis()->SetTitleSize(0.035);
   METJets_stack_3->GetZaxis()->SetTitleFont(42);
   METJets->SetHistogram(METJets_stack_3);
   
   
   TH1D *METJets11 = new TH1D("METJets11"," Number of jets in MET hemisphere",20,0,20);
   METJets11->SetBinContent(4,0.001250901);
   METJets11->SetBinContent(5,0.02882494);
   METJets11->SetBinError(4,0.001250901);
   METJets11->SetBinError(5,0.02638252);
   METJets11->SetEntries(4);

   ci = TColor::GetColor("#00cc00");
   METJets11->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   METJets11->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   METJets11->SetMarkerColor(ci);
   METJets11->SetMarkerStyle(22);
   METJets11->GetXaxis()->SetTitle("METJets");
   METJets11->GetXaxis()->SetLabelFont(42);
   METJets11->GetXaxis()->SetLabelSize(0.035);
   METJets11->GetXaxis()->SetTitleSize(0.035);
   METJets11->GetXaxis()->SetTitleFont(42);
   METJets11->GetYaxis()->SetTitle("Events/pb");
   METJets11->GetYaxis()->SetLabelFont(42);
   METJets11->GetYaxis()->SetLabelSize(0.035);
   METJets11->GetYaxis()->SetTitleSize(0.035);
   METJets11->GetYaxis()->SetTitleFont(42);
   METJets11->GetZaxis()->SetLabelFont(42);
   METJets11->GetZaxis()->SetLabelSize(0.035);
   METJets11->GetZaxis()->SetTitleSize(0.035);
   METJets11->GetZaxis()->SetTitleFont(42);
   METJets->Add(METJets,"");
   
   TH1D *METJets12 = new TH1D("METJets12"," Number of jets in MET hemisphere",20,0,20);
   METJets12->SetBinContent(1,0.1125815);
   METJets12->SetBinContent(2,0.4285217);
   METJets12->SetBinContent(3,0.3409504);
   METJets12->SetBinContent(4,0.1708964);
   METJets12->SetBinContent(5,0.05932811);
   METJets12->SetBinContent(6,0.02373303);
   METJets12->SetBinContent(7,0.006545923);
   METJets12->SetBinContent(8,0.002482997);
   METJets12->SetBinContent(9,0.0004501454);
   METJets12->SetBinContent(10,5.615768e-05);
   METJets12->SetBinContent(11,5.615768e-05);
   METJets12->SetBinContent(12,1.392893e-05);
   METJets12->SetBinError(1,0.007309092);
   METJets12->SetBinError(2,0.01328181);
   METJets12->SetBinError(3,0.01094448);
   METJets12->SetBinError(4,0.006993249);
   METJets12->SetBinError(5,0.003460026);
   METJets12->SetBinError(6,0.002212104);
   METJets12->SetBinError(7,0.0008953739);
   METJets12->SetBinError(8,0.0006170034);
   METJets12->SetBinError(9,0.0001016709);
   METJets12->SetBinError(10,3.448057e-05);
   METJets12->SetBinError(11,3.448057e-05);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:METJets.C

示例5: BJets

void BJets()
{
//=========Macro generated from canvas: BJets/BJets
//=========  (Fri Nov 13 11:38:51 2015) by ROOT version6.02/05
   TCanvas *BJets = new TCanvas("BJets", "BJets",40,62,700,700);
   BJets->Range(-0.8750001,-5.970713,7.875,1.123078);
   BJets->SetFillColor(0);
   BJets->SetBorderMode(0);
   BJets->SetBorderSize(2);
   BJets->SetLogy();
   BJets->SetFrameBorderMode(0);
   BJets->SetFrameBorderMode(0);
   
   THStack *BJets = new THStack();
   BJets->SetName("BJets");
   BJets->SetTitle("BJets");
   
   TH1F *BJets_stack_3 = new TH1F("BJets_stack_3","BJets",7,0,7);
   BJets_stack_3->SetMinimum(5.478552e-06);
   BJets_stack_3->SetMaximum(2.592381);
   BJets_stack_3->SetDirectory(0);
   BJets_stack_3->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   BJets_stack_3->SetLineColor(ci);
   BJets_stack_3->GetXaxis()->SetTitle("BJets");
   BJets_stack_3->GetXaxis()->SetLabelFont(42);
   BJets_stack_3->GetXaxis()->SetLabelSize(0.035);
   BJets_stack_3->GetXaxis()->SetTitleSize(0.035);
   BJets_stack_3->GetXaxis()->SetTitleFont(42);
   BJets_stack_3->GetYaxis()->SetTitle("Events/pb");
   BJets_stack_3->GetYaxis()->SetLabelFont(42);
   BJets_stack_3->GetYaxis()->SetLabelSize(0.035);
   BJets_stack_3->GetYaxis()->SetTitleSize(0.035);
   BJets_stack_3->GetYaxis()->SetTitleFont(42);
   BJets_stack_3->GetZaxis()->SetLabelFont(42);
   BJets_stack_3->GetZaxis()->SetLabelSize(0.035);
   BJets_stack_3->GetZaxis()->SetTitleSize(0.035);
   BJets_stack_3->GetZaxis()->SetTitleFont(42);
   BJets->SetHistogram(BJets_stack_3);
   
   
   TH1D *BJets11 = new TH1D("BJets11"," Number of b-tagged jets",7,0,7);
   BJets11->SetBinContent(1,0.04976213);
   BJets11->SetBinContent(2,0.01376429);
   BJets11->SetBinError(1,0.01875019);
   BJets11->SetBinError(2,0.008538656);
   BJets11->SetEntries(26);

   ci = TColor::GetColor("#00cc00");
   BJets11->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   BJets11->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   BJets11->SetMarkerColor(ci);
   BJets11->SetMarkerStyle(22);
   BJets11->GetXaxis()->SetTitle("BJets");
   BJets11->GetXaxis()->SetLabelFont(42);
   BJets11->GetXaxis()->SetLabelSize(0.035);
   BJets11->GetXaxis()->SetTitleSize(0.035);
   BJets11->GetXaxis()->SetTitleFont(42);
   BJets11->GetYaxis()->SetTitle("Events/pb");
   BJets11->GetYaxis()->SetLabelFont(42);
   BJets11->GetYaxis()->SetLabelSize(0.035);
   BJets11->GetYaxis()->SetTitleSize(0.035);
   BJets11->GetYaxis()->SetTitleFont(42);
   BJets11->GetZaxis()->SetLabelFont(42);
   BJets11->GetZaxis()->SetLabelSize(0.035);
   BJets11->GetZaxis()->SetTitleSize(0.035);
   BJets11->GetZaxis()->SetTitleFont(42);
   BJets->Add(BJets,"");
   
   TH1D *BJets12 = new TH1D("BJets12"," Number of b-tagged jets",7,0,7);
   BJets12->SetBinContent(1,1.316424);
   BJets12->SetBinContent(2,0.0629929);
   BJets12->SetBinContent(3,0.003590708);
   BJets12->SetBinContent(4,0.0001294132);
   BJets12->SetBinError(1,0.01510642);
   BJets12->SetBinError(2,0.002440041);
   BJets12->SetBinError(3,0.0004620195);
   BJets12->SetBinError(4,4.315464e-05);
   BJets12->SetEntries(30221);

   ci = TColor::GetColor("#00ffff");
   BJets12->SetFillColor(ci);

   ci = TColor::GetColor("#00ffff");
   BJets12->SetLineColor(ci);

   ci = TColor::GetColor("#00ffff");
   BJets12->SetMarkerColor(ci);
   BJets12->SetMarkerStyle(20);
   BJets12->GetXaxis()->SetTitle("BJets");
   BJets12->GetXaxis()->SetLabelFont(42);
   BJets12->GetXaxis()->SetLabelSize(0.035);
   BJets12->GetXaxis()->SetTitleSize(0.035);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:BJets.C

示例6: VBFDeltaEta

void VBFDeltaEta()
{
//=========Macro generated from canvas: VBFDeltaEta/VBFDeltaEta
//=========  (Wed Nov  4 11:47:03 2015) by ROOT version6.02/05
   TCanvas *VBFDeltaEta = new TCanvas("VBFDeltaEta", "VBFDeltaEta",220,242,700,700);
   VBFDeltaEta->Range(-12.5,-5.529375,12.5,2.023205);
   VBFDeltaEta->SetFillColor(0);
   VBFDeltaEta->SetBorderMode(0);
   VBFDeltaEta->SetBorderSize(2);
   VBFDeltaEta->SetLogy();
   VBFDeltaEta->SetFrameBorderMode(0);
   VBFDeltaEta->SetFrameBorderMode(0);
   
   THStack *VBFDeltaEta = new THStack();
   VBFDeltaEta->SetName("VBFDeltaEta");
   VBFDeltaEta->SetTitle("VBFDeltaEta");
   
   TH1F *VBFDeltaEta_stack_12 = new TH1F("VBFDeltaEta_stack_12","VBFDeltaEta",20,-10,10);
   VBFDeltaEta_stack_12->SetMinimum(1.682221e-05);
   VBFDeltaEta_stack_12->SetMaximum(18.53305);
   VBFDeltaEta_stack_12->SetDirectory(0);
   VBFDeltaEta_stack_12->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   VBFDeltaEta_stack_12->SetLineColor(ci);
   VBFDeltaEta_stack_12->GetXaxis()->SetTitle("VBFDeltaEta");
   VBFDeltaEta_stack_12->GetXaxis()->SetLabelFont(42);
   VBFDeltaEta_stack_12->GetXaxis()->SetLabelSize(0.035);
   VBFDeltaEta_stack_12->GetXaxis()->SetTitleSize(0.035);
   VBFDeltaEta_stack_12->GetXaxis()->SetTitleFont(42);
   VBFDeltaEta_stack_12->GetYaxis()->SetTitle("Events/pb");
   VBFDeltaEta_stack_12->GetYaxis()->SetLabelFont(42);
   VBFDeltaEta_stack_12->GetYaxis()->SetLabelSize(0.035);
   VBFDeltaEta_stack_12->GetYaxis()->SetTitleSize(0.035);
   VBFDeltaEta_stack_12->GetYaxis()->SetTitleFont(42);
   VBFDeltaEta_stack_12->GetZaxis()->SetLabelFont(42);
   VBFDeltaEta_stack_12->GetZaxis()->SetLabelSize(0.035);
   VBFDeltaEta_stack_12->GetZaxis()->SetTitleSize(0.035);
   VBFDeltaEta_stack_12->GetZaxis()->SetTitleFont(42);
   VBFDeltaEta->SetHistogram(VBFDeltaEta_stack_12);
   
   
   TH1D *VBFDeltaEta56 = new TH1D("VBFDeltaEta56","#Delta_{#eta} + VBF cuts",20,-10,10);
   VBFDeltaEta56->SetBinContent(2,0.02757404);
   VBFDeltaEta56->SetBinContent(3,0.03883215);
   VBFDeltaEta56->SetBinContent(4,0.634203);
   VBFDeltaEta56->SetBinContent(5,5.370436);
   VBFDeltaEta56->SetBinContent(6,3.979399);
   VBFDeltaEta56->SetBinContent(11,6.295011);
   VBFDeltaEta56->SetBinContent(15,1.928552);
   VBFDeltaEta56->SetBinContent(16,5.0433);
   VBFDeltaEta56->SetBinContent(17,3.894055);
   VBFDeltaEta56->SetBinContent(18,0.1366193);
   VBFDeltaEta56->SetBinContent(19,0.003752704);
   VBFDeltaEta56->SetBinContent(20,0.02632314);
   VBFDeltaEta56->SetBinError(2,0.02635285);
   VBFDeltaEta56->SetBinError(3,0.0266187);
   VBFDeltaEta56->SetBinError(4,0.1263838);
   VBFDeltaEta56->SetBinError(5,1.984666);
   VBFDeltaEta56->SetBinError(6,1.622458);
   VBFDeltaEta56->SetBinError(11,1.989275);
   VBFDeltaEta56->SetBinError(15,0.2097407);
   VBFDeltaEta56->SetBinError(16,1.982566);
   VBFDeltaEta56->SetBinError(17,1.975533);
   VBFDeltaEta56->SetBinError(18,0.05891348);
   VBFDeltaEta56->SetBinError(19,0.002166624);
   VBFDeltaEta56->SetBinError(20,0.02632314);
   VBFDeltaEta56->SetEntries(1398);

   ci = TColor::GetColor("#00cc00");
   VBFDeltaEta56->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   VBFDeltaEta56->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   VBFDeltaEta56->SetMarkerColor(ci);
   VBFDeltaEta56->SetMarkerStyle(22);
   VBFDeltaEta56->GetXaxis()->SetTitle("VBFDeltaEta");
   VBFDeltaEta56->GetXaxis()->SetLabelFont(42);
   VBFDeltaEta56->GetXaxis()->SetLabelSize(0.035);
   VBFDeltaEta56->GetXaxis()->SetTitleSize(0.035);
   VBFDeltaEta56->GetXaxis()->SetTitleFont(42);
   VBFDeltaEta56->GetYaxis()->SetTitle("Events/pb");
   VBFDeltaEta56->GetYaxis()->SetLabelFont(42);
   VBFDeltaEta56->GetYaxis()->SetLabelSize(0.035);
   VBFDeltaEta56->GetYaxis()->SetTitleSize(0.035);
   VBFDeltaEta56->GetYaxis()->SetTitleFont(42);
   VBFDeltaEta56->GetZaxis()->SetLabelFont(42);
   VBFDeltaEta56->GetZaxis()->SetLabelSize(0.035);
   VBFDeltaEta56->GetZaxis()->SetTitleSize(0.035);
   VBFDeltaEta56->GetZaxis()->SetTitleFont(42);
   VBFDeltaEta->Add(VBFDeltaEta,"");
   
   TH1D *VBFDeltaEta57 = new TH1D("VBFDeltaEta57","#Delta_{#eta} + VBF cuts",20,-10,10);
   VBFDeltaEta57->SetBinContent(1,0.02028896);
   VBFDeltaEta57->SetBinContent(2,0.08985857);
   VBFDeltaEta57->SetBinContent(3,0.4571356);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:VBFDeltaEta.C

示例7: BalanceJets

void BalanceJets()
{
//=========Macro generated from canvas: BalanceJets/BalanceJets
//=========  (Fri Nov  6 09:02:49 2015) by ROOT version6.02/05
   TCanvas *BalanceJets = new TCanvas("BalanceJets", "BalanceJets",624,66,700,700);
   BalanceJets->Range(-1.875,-6.968408,16.875,0.8802541);
   BalanceJets->SetFillColor(0);
   BalanceJets->SetBorderMode(0);
   BalanceJets->SetBorderSize(2);
   BalanceJets->SetLogy();
   BalanceJets->SetFrameBorderMode(0);
   BalanceJets->SetFrameBorderMode(0);
   
   THStack *BalanceJets = new THStack();
   BalanceJets->SetName("BalanceJets");
   BalanceJets->SetTitle("BalanceJets");
   
   TH1F *BalanceJets_stack_2 = new TH1F("BalanceJets_stack_2","BalanceJets",15,0,15);
   BalanceJets_stack_2->SetMinimum(6.553267e-07);
   BalanceJets_stack_2->SetMaximum(1.245626);
   BalanceJets_stack_2->SetDirectory(0);
   BalanceJets_stack_2->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   BalanceJets_stack_2->SetLineColor(ci);
   BalanceJets_stack_2->GetXaxis()->SetTitle("BalanceJets");
   BalanceJets_stack_2->GetXaxis()->SetLabelFont(42);
   BalanceJets_stack_2->GetXaxis()->SetLabelSize(0.035);
   BalanceJets_stack_2->GetXaxis()->SetTitleSize(0.035);
   BalanceJets_stack_2->GetXaxis()->SetTitleFont(42);
   BalanceJets_stack_2->GetYaxis()->SetTitle("Events/pb");
   BalanceJets_stack_2->GetYaxis()->SetLabelFont(42);
   BalanceJets_stack_2->GetYaxis()->SetLabelSize(0.035);
   BalanceJets_stack_2->GetYaxis()->SetTitleSize(0.035);
   BalanceJets_stack_2->GetYaxis()->SetTitleFont(42);
   BalanceJets_stack_2->GetZaxis()->SetLabelFont(42);
   BalanceJets_stack_2->GetZaxis()->SetLabelSize(0.035);
   BalanceJets_stack_2->GetZaxis()->SetTitleSize(0.035);
   BalanceJets_stack_2->GetZaxis()->SetTitleFont(42);
   BalanceJets->SetHistogram(BalanceJets_stack_2);
   
   
   TH1D *BalanceJets6 = new TH1D("BalanceJets6"," Number of jets in balancing hemisphere",15,0,15);
   BalanceJets6->SetBinContent(3,0.002501802);
   BalanceJets6->SetBinContent(4,0.02632314);
   BalanceJets6->SetBinContent(5,0.001250901);
   BalanceJets6->SetBinError(3,0.001769041);
   BalanceJets6->SetBinError(4,0.02632314);
   BalanceJets6->SetBinError(5,0.001250901);
   BalanceJets6->SetEntries(4);

   ci = TColor::GetColor("#00cc00");
   BalanceJets6->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   BalanceJets6->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   BalanceJets6->SetMarkerColor(ci);
   BalanceJets6->SetMarkerStyle(22);
   BalanceJets6->GetXaxis()->SetTitle("BalanceJets");
   BalanceJets6->GetXaxis()->SetLabelFont(42);
   BalanceJets6->GetXaxis()->SetLabelSize(0.035);
   BalanceJets6->GetXaxis()->SetTitleSize(0.035);
   BalanceJets6->GetXaxis()->SetTitleFont(42);
   BalanceJets6->GetYaxis()->SetTitle("Events/pb");
   BalanceJets6->GetYaxis()->SetLabelFont(42);
   BalanceJets6->GetYaxis()->SetLabelSize(0.035);
   BalanceJets6->GetYaxis()->SetTitleSize(0.035);
   BalanceJets6->GetYaxis()->SetTitleFont(42);
   BalanceJets6->GetZaxis()->SetLabelFont(42);
   BalanceJets6->GetZaxis()->SetLabelSize(0.035);
   BalanceJets6->GetZaxis()->SetTitleSize(0.035);
   BalanceJets6->GetZaxis()->SetTitleFont(42);
   BalanceJets->Add(BalanceJets,"");
   
   TH1D *BalanceJets7 = new TH1D("BalanceJets7"," Number of jets in balancing hemisphere",15,0,15);
   BalanceJets7->SetBinContent(1,0.1774551);
   BalanceJets7->SetBinContent(2,0.5992429);
   BalanceJets7->SetBinContent(3,0.2936699);
   BalanceJets7->SetBinContent(4,0.06202773);
   BalanceJets7->SetBinContent(5,0.0110591);
   BalanceJets7->SetBinContent(6,0.002035104);
   BalanceJets7->SetBinContent(7,0.0001266863);
   BalanceJets7->SetBinError(1,0.009014634);
   BalanceJets7->SetBinError(2,0.01484423);
   BalanceJets7->SetBinError(3,0.009769683);
   BalanceJets7->SetBinError(4,0.004116148);
   BalanceJets7->SetBinError(5,0.001446235);
   BalanceJets7->SetBinError(6,0.0006914949);
   BalanceJets7->SetBinError(7,5.463227e-05);
   BalanceJets7->SetEntries(9534);

   ci = TColor::GetColor("#00ffff");
   BalanceJets7->SetFillColor(ci);

   ci = TColor::GetColor("#00ffff");
   BalanceJets7->SetLineColor(ci);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:BalanceJets.C

示例8: phimuphileadj

void phimuphileadj()
{
//=========Macro generated from canvas: phimuphileadj/phimuphileadj
//=========  (Fri Nov 13 11:38:57 2015) by ROOT version6.02/05
   TCanvas *phimuphileadj = new TCanvas("phimuphileadj", "phimuphileadj",320,342,700,700);
   phimuphileadj->Range(-0.3926991,-3.784782,3.534292,3.42208);
   phimuphileadj->SetFillColor(0);
   phimuphileadj->SetBorderMode(0);
   phimuphileadj->SetBorderSize(2);
   phimuphileadj->SetLogy();
   phimuphileadj->SetFrameBorderMode(0);
   phimuphileadj->SetFrameBorderMode(0);
   
   THStack *phimuphileadj = new THStack();
   phimuphileadj->SetName("phimuphileadj");
   phimuphileadj->SetTitle("phimuphileadj");
   
   TH1F *phimuphileadj_stack_17 = new TH1F("phimuphileadj_stack_17","phimuphileadj",10,0,3.141593);
   phimuphileadj_stack_17->SetMinimum(0.0008627887);
   phimuphileadj_stack_17->SetMaximum(502.798);
   phimuphileadj_stack_17->SetDirectory(0);
   phimuphileadj_stack_17->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   phimuphileadj_stack_17->SetLineColor(ci);
   phimuphileadj_stack_17->GetXaxis()->SetTitle("phimuphileadj");
   phimuphileadj_stack_17->GetXaxis()->SetLabelFont(42);
   phimuphileadj_stack_17->GetXaxis()->SetLabelSize(0.035);
   phimuphileadj_stack_17->GetXaxis()->SetTitleSize(0.035);
   phimuphileadj_stack_17->GetXaxis()->SetTitleFont(42);
   phimuphileadj_stack_17->GetYaxis()->SetTitle("Events/pb");
   phimuphileadj_stack_17->GetYaxis()->SetLabelFont(42);
   phimuphileadj_stack_17->GetYaxis()->SetLabelSize(0.035);
   phimuphileadj_stack_17->GetYaxis()->SetTitleSize(0.035);
   phimuphileadj_stack_17->GetYaxis()->SetTitleFont(42);
   phimuphileadj_stack_17->GetZaxis()->SetLabelFont(42);
   phimuphileadj_stack_17->GetZaxis()->SetLabelSize(0.035);
   phimuphileadj_stack_17->GetZaxis()->SetTitleSize(0.035);
   phimuphileadj_stack_17->GetZaxis()->SetTitleFont(42);
   phimuphileadj->SetHistogram(phimuphileadj_stack_17);
   
   
   TH1D *phimuphileadj81 = new TH1D("phimuphileadj81"," #Delta_{#phi}[#mu,jet_{1}]",10,0,3.141593);
   phimuphileadj81->SetBinContent(1,164.3086);
   phimuphileadj81->SetBinContent(2,158.9707);
   phimuphileadj81->SetBinContent(3,152.6519);
   phimuphileadj81->SetBinContent(4,155.4826);
   phimuphileadj81->SetBinContent(5,174.6439);
   phimuphileadj81->SetBinContent(6,162.912);
   phimuphileadj81->SetBinContent(7,196.4007);
   phimuphileadj81->SetBinContent(8,233.483);
   phimuphileadj81->SetBinContent(9,252.2103);
   phimuphileadj81->SetBinContent(10,253.2217);
   phimuphileadj81->SetBinError(1,7.263807);
   phimuphileadj81->SetBinError(2,7.139482);
   phimuphileadj81->SetBinError(3,6.989024);
   phimuphileadj81->SetBinError(4,7.06061);
   phimuphileadj81->SetBinError(5,7.498774);
   phimuphileadj81->SetBinError(6,7.210214);
   phimuphileadj81->SetBinError(7,7.948456);
   phimuphileadj81->SetBinError(8,8.669647);
   phimuphileadj81->SetBinError(9,9.023818);
   phimuphileadj81->SetBinError(10,9.03635);
   phimuphileadj81->SetEntries(17572);

   ci = TColor::GetColor("#00cc00");
   phimuphileadj81->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphileadj81->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   phimuphileadj81->SetMarkerColor(ci);
   phimuphileadj81->SetMarkerStyle(22);
   phimuphileadj81->GetXaxis()->SetTitle("phimuphileadj");
   phimuphileadj81->GetXaxis()->SetLabelFont(42);
   phimuphileadj81->GetXaxis()->SetLabelSize(0.035);
   phimuphileadj81->GetXaxis()->SetTitleSize(0.035);
   phimuphileadj81->GetXaxis()->SetTitleFont(42);
   phimuphileadj81->GetYaxis()->SetTitle("Events/pb");
   phimuphileadj81->GetYaxis()->SetLabelFont(42);
   phimuphileadj81->GetYaxis()->SetLabelSize(0.035);
   phimuphileadj81->GetYaxis()->SetTitleSize(0.035);
   phimuphileadj81->GetYaxis()->SetTitleFont(42);
   phimuphileadj81->GetZaxis()->SetLabelFont(42);
   phimuphileadj81->GetZaxis()->SetLabelSize(0.035);
   phimuphileadj81->GetZaxis()->SetTitleSize(0.035);
   phimuphileadj81->GetZaxis()->SetTitleFont(42);
   phimuphileadj->Add(phimuphileadj,"");
   
   TH1D *phimuphileadj82 = new TH1D("phimuphileadj82"," #Delta_{#phi}[#mu,jet_{1}]",10,0,3.141593);
   phimuphileadj82->SetBinContent(1,5.319914);
   phimuphileadj82->SetBinContent(2,5.853705);
   phimuphileadj82->SetBinContent(3,6.019083);
   phimuphileadj82->SetBinContent(4,6.225302);
   phimuphileadj82->SetBinContent(5,6.19784);
   phimuphileadj82->SetBinContent(6,6.103911);
   phimuphileadj82->SetBinContent(7,6.165883);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:phimuphileadj.C

示例9: METopt

void METopt()
{
//=========Macro generated from canvas: METopt/METopt
//=========  (Mon Nov 23 12:45:00 2015) by ROOT version6.02/05
   TCanvas *METopt = new TCanvas("METopt", "METopt",140,162,700,700);
   METopt->Range(-0.375,-6.432596,3.375,0.05191559);
   METopt->SetFillColor(0);
   METopt->SetBorderMode(0);
   METopt->SetBorderSize(2);
   METopt->SetLogy();
   METopt->SetFrameBorderMode(0);
   METopt->SetFrameBorderMode(0);
   
   THStack *METopt = new THStack();
   METopt->SetName("METopt");
   METopt->SetTitle("METopt");
   
   TH1F *METopt_stack_8 = new TH1F("METopt_stack_8","METopt",15,0,3);
   METopt_stack_8->SetMinimum(1.643823e-06);
   METopt_stack_8->SetMaximum(0.2532004);
   METopt_stack_8->SetDirectory(0);
   METopt_stack_8->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   METopt_stack_8->SetLineColor(ci);
   METopt_stack_8->GetXaxis()->SetTitle("METopt");
   METopt_stack_8->GetXaxis()->SetLabelFont(42);
   METopt_stack_8->GetXaxis()->SetLabelSize(0.035);
   METopt_stack_8->GetXaxis()->SetTitleSize(0.035);
   METopt_stack_8->GetXaxis()->SetTitleFont(42);
   METopt_stack_8->GetYaxis()->SetTitle("Events/pb");
   METopt_stack_8->GetYaxis()->SetLabelFont(42);
   METopt_stack_8->GetYaxis()->SetLabelSize(0.035);
   METopt_stack_8->GetYaxis()->SetTitleSize(0.035);
   METopt_stack_8->GetYaxis()->SetTitleFont(42);
   METopt_stack_8->GetZaxis()->SetLabelFont(42);
   METopt_stack_8->GetZaxis()->SetLabelSize(0.035);
   METopt_stack_8->GetZaxis()->SetTitleSize(0.035);
   METopt_stack_8->GetZaxis()->SetTitleFont(42);
   METopt->SetHistogram(METopt_stack_8);
   
   
   TH1D *METopt36 = new TH1D("METopt36","MET/p_{T}^{lead jet}",15,0,3);
   METopt36->SetBinContent(1,0.00068069);
   METopt36->SetBinContent(2,0.00952966);
   METopt36->SetBinContent(3,0.06912243);
   METopt36->SetBinContent(4,0.01104153);
   METopt36->SetBinContent(5,0.01663754);
   METopt36->SetBinContent(6,0.02495631);
   METopt36->SetBinError(1,0.00068069);
   METopt36->SetBinError(2,0.002546909);
   METopt36->SetBinError(3,0.02217717);
   METopt36->SetBinError(4,0.00842943);
   METopt36->SetBinError(5,0.01176452);
   METopt36->SetBinError(6,0.01440853);
   METopt36->SetEntries(48);

   ci = TColor::GetColor("#00cc00");
   METopt36->SetFillColor(ci);

   ci = TColor::GetColor("#00cc00");
   METopt36->SetLineColor(ci);

   ci = TColor::GetColor("#00cc00");
   METopt36->SetMarkerColor(ci);
   METopt36->SetMarkerStyle(22);
   METopt36->GetXaxis()->SetTitle("METopt");
   METopt36->GetXaxis()->SetLabelFont(42);
   METopt36->GetXaxis()->SetLabelSize(0.035);
   METopt36->GetXaxis()->SetTitleSize(0.035);
   METopt36->GetXaxis()->SetTitleFont(42);
   METopt36->GetYaxis()->SetTitle("Events/pb");
   METopt36->GetYaxis()->SetLabelFont(42);
   METopt36->GetYaxis()->SetLabelSize(0.035);
   METopt36->GetYaxis()->SetTitleSize(0.035);
   METopt36->GetYaxis()->SetTitleFont(42);
   METopt36->GetZaxis()->SetLabelFont(42);
   METopt36->GetZaxis()->SetLabelSize(0.035);
   METopt36->GetZaxis()->SetTitleSize(0.035);
   METopt36->GetZaxis()->SetTitleFont(42);
   METopt->Add(METopt,"");
   
   TH1D *METopt37 = new TH1D("METopt37","MET/p_{T}^{lead jet}",15,0,3);
   METopt37->SetBinContent(1,1.392893e-05);
   METopt37->SetBinContent(2,0.001351916);
   METopt37->SetBinContent(3,0.009267276);
   METopt37->SetBinContent(4,0.04333138);
   METopt37->SetBinContent(5,0.1226104);
   METopt37->SetBinContent(6,0.1345744);
   METopt37->SetBinContent(7,0.1072757);
   METopt37->SetBinContent(8,0.0786938);
   METopt37->SetBinContent(9,0.04683283);
   METopt37->SetBinContent(10,0.0271465);
   METopt37->SetBinContent(11,0.0117321);
   METopt37->SetBinContent(12,0.007680578);
   METopt37->SetBinContent(13,0.003504385);
   METopt37->SetBinContent(14,0.002544782);
   METopt37->SetBinContent(15,0.001871985);
//.........这里部分代码省略.........
开发者ID:delgadoandrea,项目名称:CMSSW_7_4_6_patch6,代码行数:101,代码来源:METopt.C


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