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


C++ TPaveText::SetName方法代码示例

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


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

示例1: TPaveText

TPaveText *GetAveragepavetext(Int_t identifier){
  //TPaveText* pvAverage = new TPaveText(0.012/gPad->GetWNDC()+gPad->GetLeftMargin(),0.26/gPad->GetHNDC()+gPad->GetBottomMargin(),0.3/gPad->GetWNDC()+gPad->GetLeftMargin(),0.25/gPad->GetHNDC()+gPad->GetBottomMargin(),"NDC");
  TPaveText *pvAverage = new TPaveText(0.005/gPad->GetWNDC()+gPad->GetLeftMargin(),0.255/gPad->GetHNDC()+gPad->GetBottomMargin(),0.17/gPad->GetWNDC()+gPad->GetLeftMargin(),0.28/gPad->GetHNDC()+gPad->GetBottomMargin(),"NDC");
  // TPaveText * pvAverage= new TPaveText(0.22,0.77,0.64,0.83,"NDC");
  //0.21,0.83,0.5,0.863,"NDC");
  SetPaveStyle(pvAverage);
  pvAverage->SetTextFont(43);
  //  pvAverage->SetTextSize(0.07/(gPad->GetHNDC())*scaleHeightPads);
  pvAverage->SetTextSize(30*innerPadHeight/referencePadHeight*resizeTextFactor);
  pvAverage->AddText("Average D^{0},D^{+},D^{*+}");
  pvAverage->SetName(Form("paveAverage_%d",identifier));
  return pvAverage;
}
开发者ID:ktf,项目名称:AliPhysics,代码行数:13,代码来源:DoComparison_ppVsMCallPanelsNew.C

示例2: TracktoLCTYfull_2016B_June22all_sameYrange_fullIntegral_10k9k_lin


//.........这里部分代码省略.........
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TH1D *TracktoLCTYfull_6__78 = new TH1D("TracktoLCTYfull_6__78","TracktoLCTYfull",100,-10000,-9996);
   TracktoLCTYfull_6__78->SetBinContent(26,100);
   TracktoLCTYfull_6__78->SetBinContent(101,78.02474);
   TracktoLCTYfull_6__78->SetEntries(1102290);
   TracktoLCTYfull_6__78->SetStats(0);

   ci = TColor::GetColor("#0000ff");
   TracktoLCTYfull_6__78->SetLineColor(ci);

   ci = TColor::GetColor("#0000ff");
   TracktoLCTYfull_6__78->SetMarkerColor(ci);
   TracktoLCTYfull_6__78->GetXaxis()->SetTitle("cm");
   TracktoLCTYfull_6__78->GetYaxis()->SetTitle("scaled number of entries");
   TracktoLCTYfull_6__78->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("TracktoLCTYfull_1","ME11A: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_2","ME11B: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_3","ME12+13: mean:-9999.0cm;RMS:0.0cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_4","ME2: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_5","ME3: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("TracktoLCTYfull_6","ME4: mean:-9999.0cm;RMS:0.0cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.01,0.945,0.3707258,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("TracktoLCTYfull");
   pt->Draw();
   TracktoLCTYfull->Modified();
   TracktoLCTYfull->cd();
   TracktoLCTYfull->SetSelected(TracktoLCTYfull);
}
开发者ID:senka,项目名称:CSC_eff_808,代码行数:101,代码来源:TracktoLCTYfull_2016B_June22all_sameYrange_fullIntegral_10k9k_lin.C

示例3: paraPull_alpha_MUON_ISO_SYS_2TeV_2Lep_plots_All


//.........这里部分代码省略.........
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1033[35] = {
   0,
   0,
   0.6105177,
   1.072963,
   1.274131,
   0.9350411,
   0.9915346,
   0.9862834,
   0.9243374,
   0.769056,
   0.9864216,
   0.9937953,
   0.9917567,
   0.9969205,
   0.9819024,
   0.9371645,
   0.9926625,
   0.9931845,
   0.9925671,
   1.004991,
   0.9933467,
   0.9551202,
   0.9932281,
   0.9929675,
   0.9926546,
   0.9909755,
   0.9913131,
   1.098392,
   0.9868992,
   0.9931708,
   0.9930622,
   0.7376817,
   0.7516033,
   0.9909095,
   0.7841002};
   TGraphErrors *gre = new TGraphErrors(35,_fx1033,_fy1033,_fex1033,_fey1033);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1033 = new TH1F("Graph_Graph1033","",100,0,35.75);
   Graph_Graph1033->SetMinimum(-1.813084);
   Graph_Graph1033->SetMaximum(2.169243);
   Graph_Graph1033->SetDirectory(0);
   Graph_Graph1033->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1033->SetLineColor(ci);
   Graph_Graph1033->GetXaxis()->SetLabelFont(42);
   Graph_Graph1033->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetXaxis()->SetTitleFont(42);
   Graph_Graph1033->GetYaxis()->SetLabelFont(42);
   Graph_Graph1033->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetYaxis()->SetTitleFont(42);
   Graph_Graph1033->GetZaxis()->SetLabelFont(42);
   Graph_Graph1033->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1033->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1033->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1033);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.3293574,0.9341608,0.6706426,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_MUON_ISO_SYS");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
开发者ID:AlexanderMorton,项目名称:NP_Prun,代码行数:101,代码来源:paraPull_alpha_MUON_ISO_SYS_2TeV_2Lep_plots_All.C

示例4: result_JES_akPu4PF_

void result_JES_akPu4PF_(refpt> 75 && refpt < 120)&&(abs(refeta)<2)_Centrality()
{
//=========Macro generated from canvas: Can_result_0/
//=========  (Mon Apr 18 02:39:41 2016) by ROOT version6.02/13
   TCanvas *Can_result_0 = new TCanvas("Can_result_0", "",18,40,700,500);
   gStyle->SetOptFit(1);
   Can_result_0->Range(-18.75,0.9236134,118.75,1.043845);
   Can_result_0->SetFillColor(0);
   Can_result_0->SetBorderMode(0);
   Can_result_0->SetBorderSize(2);
   Can_result_0->SetFrameBorderMode(0);
   Can_result_0->SetFrameBorderMode(0);
   
   TMultiGraph *multigraph = new TMultiGraph();
   multigraph->SetName("name");
   multigraph->SetTitle("JES_akPu4PF");
   
   Double_t Graph_fx1001[4] = {
   5,
   20,
   40,
   75};
   Double_t Graph_fy1001[4] = {
   1.025461,
   0.982262,
   0.9644553,
   0.970611};
   Double_t Graph_fex1001[4] = {
   5,
   10,
   10,
   25};
   Double_t Graph_fey1001[4] = {
   0.001598024,
   0.0009318739,
   0.0008002418,
   0.0004502591};
   TGraphErrors *gre = new TGraphErrors(4,Graph_fx1001,Graph_fy1001,Graph_fex1001,Graph_fey1001);
   gre->SetName("Graph");
   gre->SetTitle("some title_0");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   
   TH1F *Graph_Graph1001 = new TH1F("Graph_Graph1001","some title_0",100,0,110);
   Graph_Graph1001->SetMinimum(0.9573146);
   Graph_Graph1001->SetMaximum(1.0334);
   Graph_Graph1001->SetDirectory(0);
   Graph_Graph1001->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   Graph_Graph1001->SetLineColor(ci);
   Graph_Graph1001->GetXaxis()->SetLabelFont(42);
   Graph_Graph1001->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetXaxis()->SetTitleFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelFont(42);
   Graph_Graph1001->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetYaxis()->SetTitleFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelFont(42);
   Graph_Graph1001->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1001->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1001);
   
   multigraph->Add(gre,"");
   
   Double_t Graph_fx1002[4] = {
   5,
   20,
   40,
   75};
   Double_t Graph_fy1002[4] = {
   1.025808,
   0.9823451,
   0.964104,
   0.9707841};
   Double_t Graph_fex1002[4] = {
   5,
   10,
   10,
   25};
   Double_t Graph_fey1002[4] = {
   0.001641175,
   0.0009556419,
   0.0008206184,
   0.000461058};
   gre = new TGraphErrors(4,Graph_fx1002,Graph_fy1002,Graph_fex1002,Graph_fey1002);
   gre->SetName("Graph");
   gre->SetTitle("some title_1");
   gre->SetFillColor(1);
   gre->SetFillStyle(0);
   gre->SetLineColor(2);
   gre->SetMarkerColor(2);
   
   TH1F *Graph_Graph1002 = new TH1F("Graph_Graph1002","some title_1",100,0,110);
   Graph_Graph1002->SetMinimum(0.9568668);
   Graph_Graph1002->SetMaximum(1.033866);
//.........这里部分代码省略.........
开发者ID:Jelov,项目名称:JetEnergy_SR,代码行数:101,代码来源:result_JES_akPu4PF_(refpt>+75+&&+refpt+<+120)&&(abs(refeta)<2)_Centrality.C

示例5: SegX_2016B_June22all_sameYrange_fullIntegral_10k9k


//.........这里部分代码省略.........
   SegX_6__24->SetBinContent(73,0.6696166);
   SegX_6__24->SetBinContent(74,0.5168209);
   SegX_6__24->SetBinContent(75,0.3947909);
   SegX_6__24->SetBinContent(76,0.2859756);
   SegX_6__24->SetBinContent(77,0.1655974);
   SegX_6__24->SetBinContent(78,0.0755719);
   SegX_6__24->SetBinContent(79,0.02064806);
   SegX_6__24->SetBinContent(80,0.005368496);
   SegX_6__24->SetBinContent(81,0.0008259224);
   SegX_6__24->SetEntries(1102290);
   SegX_6__24->SetStats(0);

   ci = TColor::GetColor("#0000ff");
   SegX_6__24->SetLineColor(ci);

   ci = TColor::GetColor("#0000ff");
   SegX_6__24->SetMarkerColor(ci);
   SegX_6__24->GetXaxis()->SetTitle("cm");
   SegX_6__24->GetYaxis()->SetTitle("scaled number of entries");
   SegX_6__24->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegX_1","ME11A: mean:-0.0cm;RMS:5.4cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_2","ME11B: mean:-0.1cm;RMS:8.4cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_3","ME12+13: mean:-0.1cm;RMS:17.6cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_4","ME2: mean:-0.1cm;RMS:23.2cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_5","ME3: mean:-0.1cm;RMS:24.0cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegX_6","ME4: mean:-0.2cm;RMS:24.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.01,0.9390678,0.1408871,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("SegX");
   pt->Draw();
   SegX->Modified();
   SegX->cd();
   SegX->SetSelected(SegX);
}
开发者ID:senka,项目名称:CSC_eff_808,代码行数:101,代码来源:SegX_2016B_June22all_sameYrange_fullIntegral_10k9k.C

示例6: main

int main(int argc, char** argv){
//=========Macro generated from canvas: Canvas_1/Canvas_1
//=========  (Wed Aug 27 23:28:50 2014) by ROOT version5.34/04
   TCanvas *Canvas_1 = new TCanvas("Canvas_1", "Canvas_1",258,73,1243,811);
   Canvas_1->Range(-0.0625,-0.0625,0.0625,0.0625);
   Canvas_1->SetFillColor(0);
   Canvas_1->SetBorderMode(0);
   Canvas_1->SetBorderSize(2);
   Canvas_1->SetFrameBorderMode(0);
   Canvas_1->SetFrameBorderMode(0);
   
   TFile f(argv[1],"r");
   TH2F *h1 = (TH2F*)f.Get("h2dir/h4");
/*  
   TPaletteAxis *palette = new TPaletteAxis(0.050625,-0.05,0.05625,0.05,h1);
palette->SetLabelColor(1);
palette->SetLabelFont(42);
palette->SetLabelOffset(0.005);
palette->SetLabelSize(0.035);
palette->SetTitleOffset(1);
palette->SetTitleSize(0.035);
   palette->SetFillColor(100);
   palette->SetFillStyle(1001);
   h1->GetListOfFunctions()->Add(palette,"br");
*/
   
   TPaveStats *ptstats = new TPaveStats(0.700565,0.6608696,0.9007264,0.9006211,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   TText *text = ptstats->AddText("h1");
   text->SetTextSize(0.03676191);
   text = ptstats->AddText("Entries = 101    ");
   text = ptstats->AddText("Mean x = -0.0003512");
   text = ptstats->AddText("Mean y = -0.0003318");
   text = ptstats->AddText("RMS x = 0.01432");
   text = ptstats->AddText("RMS y = 0.01428");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(0);
   ptstats->Draw();
   h1->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(h1);

   Int_t ci;   // for color index setting
   ci = TColor::GetColor("#000099");
   h1->SetLineColor(ci);
   h1->GetXaxis()->SetTitle("mm");
   h1->GetXaxis()->SetLabelFont(42);
   h1->GetXaxis()->SetLabelSize(0.035);
   h1->GetXaxis()->SetTitleSize(0.035);
   h1->GetXaxis()->SetTitleFont(42);
   h1->GetYaxis()->SetTitle("mm");
   h1->GetYaxis()->SetLabelFont(42);
   h1->GetYaxis()->SetLabelSize(0.035);
   h1->GetYaxis()->SetTitleSize(0.035);
   h1->GetYaxis()->SetTitleFont(42);
   h1->GetZaxis()->SetLabelFont(42);
   h1->GetZaxis()->SetLabelSize(0.035);
   h1->GetZaxis()->SetTitleSize(0.035);
   h1->GetZaxis()->SetTitleFont(42);
   h1->Draw("COLZ ");
   
   TPaveText *pt = new TPaveText(0.1594915,0.9368634,0.8405085,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   text = pt->AddText("2D Energy deposit distribution at z=-25um");
   pt->Draw();
   Canvas_1->Modified();
   Canvas_1->cd();
   Canvas_1->SetSelected(Canvas_1);
   std::cout<<argv[1]<<std::endl;
   Canvas_1->SaveAs(TString(argv[1])+"35#.png");
}
开发者ID:Eslam-Moustafa-Ramadan,项目名称:GEM,代码行数:78,代码来源:Canvas_4.C

示例7: 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

示例8: c


//.........这里部分代码省略.........
   hist__1__1->SetBinContent(56,4531);
   hist__1__1->SetBinContent(57,4598);
   hist__1__1->SetBinContent(58,4456);
   hist__1__1->SetBinContent(59,4341);
   hist__1__1->SetBinContent(60,4654);
   hist__1__1->SetBinContent(61,4672);
   hist__1__1->SetBinContent(62,4511);
   hist__1__1->SetBinContent(63,4446);
   hist__1__1->SetBinContent(64,4356);
   hist__1__1->SetBinContent(65,4380);
   hist__1__1->SetBinContent(66,4383);
   hist__1__1->SetBinContent(67,4469);
   hist__1__1->SetBinContent(68,4606);
   hist__1__1->SetBinContent(69,4563);
   hist__1__1->SetBinContent(70,4413);
   hist__1__1->SetBinContent(71,4701);
   hist__1__1->SetBinContent(72,4643);
   hist__1__1->SetBinContent(73,4427);
   hist__1__1->SetBinContent(74,3933);
   hist__1__1->SetBinContent(75,3939);
   hist__1__1->SetBinContent(76,4093);
   hist__1__1->SetBinContent(77,3913);
   hist__1__1->SetBinContent(78,4026);
   hist__1__1->SetBinContent(79,3843);
   hist__1__1->SetBinContent(80,3641);
   hist__1__1->SetBinContent(81,3916);
   hist__1__1->SetBinContent(82,4042);
   hist__1__1->SetBinContent(83,3798);
   hist__1__1->SetBinContent(84,3601);
   hist__1__1->SetBinContent(85,3249);
   hist__1__1->SetBinContent(86,3146);
   hist__1__1->SetBinContent(87,3199);
   hist__1__1->SetBinContent(88,3035);
   hist__1__1->SetBinContent(89,3021);
   hist__1__1->SetBinContent(90,2861);
   hist__1__1->SetBinContent(91,2848);
   hist__1__1->SetBinContent(92,2819);
   hist__1__1->SetBinContent(93,2744);
   hist__1__1->SetBinContent(94,2542);
   hist__1__1->SetBinContent(95,2198);
   hist__1__1->SetBinContent(96,1717);
   hist__1__1->SetBinContent(97,1743);
   hist__1__1->SetBinContent(98,1585);
   hist__1__1->SetBinContent(99,1504);
   hist__1__1->SetBinContent(100,1475);
   hist__1__1->SetBinContent(101,12137);
   hist__1__1->SetEntries(397426);
   
   TPaveStats *ptstats = new TPaveStats(0.78,0.775,0.98,0.935,"brNDC");
   ptstats->SetName("stats");
   ptstats->SetBorderSize(1);
   ptstats->SetFillColor(0);
   ptstats->SetTextAlign(12);
   ptstats->SetTextFont(42);
   TText *AText = ptstats->AddText("hist__1");
   AText->SetTextSize(0.0368);
   AText = ptstats->AddText("Entries = 397426 ");
   AText = ptstats->AddText("Mean  = -0.08411");
   AText = ptstats->AddText("Std Dev   =  66.16");
   ptstats->SetOptStat(1111);
   ptstats->SetOptFit(0);
   ptstats->Draw();
   hist__1__1->GetListOfFunctions()->Add(ptstats);
   ptstats->SetParent(hist__1__1);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = 926;
   color = new TColor(ci, 0, 0, 1, " ", 0.273);
   hist__1__1->SetFillColor(ci);
   hist__1__1->SetLineColor(4);
   hist__1__1->SetLineWidth(2);
   hist__1__1->GetXaxis()->SetTitle("#DeltaY [cm]");
   hist__1__1->GetXaxis()->SetLabelFont(42);
   hist__1__1->GetXaxis()->SetLabelSize(0.05);
   hist__1__1->GetXaxis()->SetTitleSize(0.05);
   hist__1__1->GetXaxis()->SetTitleOffset(0.93);
   hist__1__1->GetXaxis()->SetTitleFont(22);
   hist__1__1->GetYaxis()->SetLabelFont(42);
   hist__1__1->GetYaxis()->SetLabelSize(0.05);
   hist__1__1->GetYaxis()->SetTitleSize(0.035);
   hist__1__1->GetYaxis()->SetTitleFont(42);
   hist__1__1->GetZaxis()->SetLabelFont(42);
   hist__1__1->GetZaxis()->SetLabelSize(0.035);
   hist__1__1->GetZaxis()->SetTitleSize(0.035);
   hist__1__1->GetZaxis()->SetTitleFont(42);
   hist__1__1->Draw("");
   
   TPaveText *pt = new TPaveText(0.15,0.9368947,0.85,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   AText = pt->AddText("Difference in PMT-constructed position and mc-truth start position");
   pt->Draw();
   c->Modified();
   c->cd();
   c->SetSelected(c);
}
开发者ID:nikihowe,项目名称:flash,代码行数:101,代码来源:c.C

示例9: 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

示例10: paraPull_alpha_FT_EFF_Eigen_C_2_2TeV_2Lep_plots_All


//.........这里部分代码省略.........
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1016[35] = {
   0,
   0,
   0.6106976,
   1.071775,
   1.302912,
   0.9377662,
   0.9917154,
   0.9862853,
   0.9285057,
   0.7692815,
   0.9864575,
   0.9937975,
   0.9917326,
   0.9971741,
   0.9817143,
   0.9377042,
   0.9926714,
   0.9931825,
   0.9925538,
   1.005041,
   0.9933467,
   0.9550778,
   0.9932274,
   0.9929662,
   0.9909898,
   0.9928538,
   0.9913169,
   1.097904,
   0.9870737,
   0.9931716,
   0.993064,
   0.7378613,
   0.9854765,
   0.7558564,
   0.785907};
   TGraphErrors *gre = new TGraphErrors(35,_fx1016,_fy1016,_fex1016,_fey1016);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1016 = new TH1F("Graph_Graph1016","",100,0,35.75);
   Graph_Graph1016->SetMinimum(-1.809555);
   Graph_Graph1016->SetMaximum(1.90387);
   Graph_Graph1016->SetDirectory(0);
   Graph_Graph1016->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1016->SetLineColor(ci);
   Graph_Graph1016->GetXaxis()->SetLabelFont(42);
   Graph_Graph1016->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetXaxis()->SetTitleFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelFont(42);
   Graph_Graph1016->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetYaxis()->SetTitleFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelFont(42);
   Graph_Graph1016->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1016->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1016);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.3082731,0.9341608,0.6917269,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_FT_EFF_Eigen_C_2");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
开发者ID:AlexanderMorton,项目名称:NP_Prun,代码行数:101,代码来源:paraPull_alpha_FT_EFF_Eigen_C_2_2TeV_2Lep_plots_All.C

示例11: 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

示例12: paraPull_alpha_EG_RESOLUTION_ALL_2TeV_2Lep_plots_All


//.........这里部分代码省略.........
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0,
   0};
   Double_t _fey1006[35] = {
   0,
   0,
   0.610768,
   1.073217,
   1.263173,
   0.9362314,
   0.9916222,
   0.9863048,
   0.9259827,
   0.7691218,
   0.9864552,
   0.9937942,
   0.9917457,
   0.9970139,
   0.9818237,
   0.9374371,
   0.9926691,
   0.9931835,
   0.9925618,
   1.004989,
   0.9933467,
   0.9550431,
   0.9932277,
   0.9929666,
   0.992751,
   0.9913074,
   0.9909922,
   0.9869917,
   0.9931709,
   0.9930627,
   0.9855153,
   0.7535663,
   0.9909032,
   0.7381565,
   0.7858726};
   TGraphErrors *gre = new TGraphErrors(35,_fx1006,_fy1006,_fex1006,_fey1006);
   gre->SetName("");
   gre->SetTitle("");
   gre->SetFillColor(1);
   gre->SetMarkerStyle(20);
   gre->SetMarkerSize(1.2);
   
   TH1F *Graph_Graph1006 = new TH1F("Graph_Graph1006","",100,0,35.75);
   Graph_Graph1006->SetMinimum(-1.774861);
   Graph_Graph1006->SetMaximum(1.890718);
   Graph_Graph1006->SetDirectory(0);
   Graph_Graph1006->SetStats(0);

   ci = TColor::GetColor("#000099");
   Graph_Graph1006->SetLineColor(ci);
   Graph_Graph1006->GetXaxis()->SetLabelFont(42);
   Graph_Graph1006->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetXaxis()->SetTitleFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelFont(42);
   Graph_Graph1006->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetYaxis()->SetTitleFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelFont(42);
   Graph_Graph1006->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1006->GetZaxis()->SetTitleFont(42);
   gre->SetHistogram(Graph_Graph1006);
   
   gre->Draw("p");
   
   TLegend *leg = new TLegend(0.1,0.4,0.4,0.95,NULL,"brNDC");
   leg->SetBorderSize(0);
   leg->SetTextFont(72);
   leg->SetTextSize(0.015);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(0);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.2831727,0.9341608,0.7168273,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(0);
   pt->SetFillColor(0);
   pt->SetFillStyle(0);
   pt->SetTextFont(42);
   TText *AText = pt->AddText("alpha_EG_RESOLUTION_ALL");
   pt->Draw();
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
开发者ID:AlexanderMorton,项目名称:NP_Prun,代码行数:101,代码来源:paraPull_alpha_EG_RESOLUTION_ALL_2TeV_2Lep_plots_All.C

示例13: 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

示例14: jet2ptb2

void jet2ptb2()
{
//=========Macro generated from canvas: b2/jet2ptb2/b2/jet2ptb2
//=========  (Tue Nov 24 14:26:29 2015) by ROOT version6.02/05
   TCanvas *b2/jet2ptb2 = new TCanvas("b2/jet2ptb2", "b2/jet2ptb2",140,162,700,700);
   b2/jet2ptb2->Range(-91.25001,-7.334299,1121.25,0.5435438);
   b2/jet2ptb2->SetFillColor(0);
   b2/jet2ptb2->SetBorderMode(0);
   b2/jet2ptb2->SetBorderSize(2);
   b2/jet2ptb2->SetLogy();
   b2/jet2ptb2->SetFrameBorderMode(0);
   b2/jet2ptb2->SetFrameBorderMode(0);
   
   THStack *b2/jet2ptb2 = new THStack();
   b2/jet2ptb2->SetName("b2/jet2ptb2");
   b2/jet2ptb2->SetTitle("b2/jet2ptb2");
   
   TH1F *b2/jet2ptb2_stack_8 = new TH1F("b2/jet2ptb2_stack_8","b2/jet2ptb2",40,30,1000);
   b2/jet2ptb2_stack_8->SetMinimum(2.841094e-07);
   b2/jet2ptb2_stack_8->SetMaximum(0.5698486);
   b2/jet2ptb2_stack_8->SetDirectory(0);
   b2/jet2ptb2_stack_8->SetStats(0);

   Int_t ci;      // for color index setting
   TColor *color; // for color definition with alpha
   ci = TColor::GetColor("#000099");
   b2/jet2ptb2_stack_8->SetLineColor(ci);
   b2/jet2ptb2_stack_8->GetXaxis()->SetTitle("b2/jet2ptb2");
   b2/jet2ptb2_stack_8->GetXaxis()->SetLabelFont(42);
   b2/jet2ptb2_stack_8->GetXaxis()->SetLabelSize(0.035);
   b2/jet2ptb2_stack_8->GetXaxis()->SetTitleSize(0.035);
   b2/jet2ptb2_stack_8->GetXaxis()->SetTitleFont(42);
   b2/jet2ptb2_stack_8->GetYaxis()->SetTitle("Events/pb");
   b2/jet2ptb2_stack_8->GetYaxis()->SetLabelFont(42);
   b2/jet2ptb2_stack_8->GetYaxis()->SetLabelSize(0.035);
   b2/jet2ptb2_stack_8->GetYaxis()->SetTitleSize(0.035);
   b2/jet2ptb2_stack_8->GetYaxis()->SetTitleFont(42);
   b2/jet2ptb2_stack_8->GetZaxis()->SetLabelFont(42);
   b2/jet2ptb2_stack_8->GetZaxis()->SetLabelSize(0.035);
   b2/jet2ptb2_stack_8->GetZaxis()->SetTitleSize(0.035);
   b2/jet2ptb2_stack_8->GetZaxis()->SetTitleFont(42);
   b2/jet2ptb2->SetHistogram(b2/jet2ptb2_stack_8);
   
   
   TH1D *jet2ptb236 = new TH1D("jet2ptb236","p_{T}^{2nd jet}",40,30,1000);
   jet2ptb236->SetBinContent(1,0.00831877);
   jet2ptb236->SetBinContent(3,0.01663754);
   jet2ptb236->SetBinContent(5,0.01663754);
   jet2ptb236->SetBinContent(6,0.02495631);
   jet2ptb236->SetBinContent(7,0.00068069);
   jet2ptb236->SetBinContent(8,0.00968015);
   jet2ptb236->SetBinContent(9,0.01172222);
   jet2ptb236->SetBinContent(10,0.00968015);
   jet2ptb236->SetBinContent(11,0.01799892);
   jet2ptb236->SetBinContent(12,0.00408414);
   jet2ptb236->SetBinContent(13,0.00204207);
   jet2ptb236->SetBinContent(14,0.00272276);
   jet2ptb236->SetBinContent(15,0.00068069);
   jet2ptb236->SetBinContent(16,0.00068069);
   jet2ptb236->SetBinContent(17,0.00068069);
   jet2ptb236->SetBinContent(18,0.00136138);
   jet2ptb236->SetBinContent(19,0.00068069);
   jet2ptb236->SetBinContent(21,0.00068069);
   jet2ptb236->SetBinContent(24,0.00068069);
   jet2ptb236->SetBinContent(28,0.00068069);
   jet2ptb236->SetBinContent(41,0.00068069);
   jet2ptb236->SetBinError(1,0.00831877);
   jet2ptb236->SetBinError(3,0.01176452);
   jet2ptb236->SetBinError(5,0.01176452);
   jet2ptb236->SetBinError(6,0.01440853);
   jet2ptb236->SetBinError(7,0.00068069);
   jet2ptb236->SetBinError(8,0.008374283);
   jet2ptb236->SetBinError(9,0.008456869);
   jet2ptb236->SetBinError(10,0.008374283);
   jet2ptb236->SetBinError(11,0.01180384);
   jet2ptb236->SetBinError(12,0.001667343);
   jet2ptb236->SetBinError(13,0.00117899);
   jet2ptb236->SetBinError(14,0.00136138);
   jet2ptb236->SetBinError(15,0.00068069);
   jet2ptb236->SetBinError(16,0.00068069);
   jet2ptb236->SetBinError(17,0.00068069);
   jet2ptb236->SetBinError(18,0.000962641);
   jet2ptb236->SetBinError(19,0.00068069);
   jet2ptb236->SetBinError(21,0.00068069);
   jet2ptb236->SetBinError(24,0.00068069);
   jet2ptb236->SetBinError(28,0.00068069);
   jet2ptb236->SetBinError(41,0.00068069);
   jet2ptb236->SetEntries(48);

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

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

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

示例15: SegtoLCTXY_2016B_June22all_sameYrange_fullIntegral_10k9k_lin


//.........这里部分代码省略.........
   SegtoLCTXY_6__90->SetBinContent(93,0.001096305);
   SegtoLCTXY_6__90->SetBinContent(94,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(95,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(96,0.001370381);
   SegtoLCTXY_6__90->SetBinContent(97,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(98,0.0007308699);
   SegtoLCTXY_6__90->SetBinContent(99,0.001279022);
   SegtoLCTXY_6__90->SetBinContent(100,0.0009135874);
   SegtoLCTXY_6__90->SetBinContent(101,0.7038277);
   SegtoLCTXY_6__90->SetEntries(1102290);
   SegtoLCTXY_6__90->SetStats(0);

   ci = TColor::GetColor("#0000ff");
   SegtoLCTXY_6__90->SetLineColor(ci);

   ci = TColor::GetColor("#0000ff");
   SegtoLCTXY_6__90->SetMarkerColor(ci);
   SegtoLCTXY_6__90->GetXaxis()->SetTitle("cm");
   SegtoLCTXY_6__90->GetYaxis()->SetTitle("scaled number of entries");
   SegtoLCTXY_6__90->Draw("H,same");
   
   leg = new TLegend(0.5,0.7,0.9,0.9,NULL,"brNDC");
   leg->SetBorderSize(1);
   leg->SetTextFont(62);
   leg->SetTextSize(0.02);
   leg->SetLineColor(1);
   leg->SetLineStyle(1);
   leg->SetLineWidth(1);
   leg->SetFillColor(0);
   leg->SetFillStyle(1001);
   entry=leg->AddEntry("SegtoLCTXY_1","ME11A: mean:0.4cm;RMS:1.9cm","l");

   ci = TColor::GetColor("#ff00ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegtoLCTXY_2","ME11B: mean:0.4cm;RMS:1.8cm","l");

   ci = TColor::GetColor("#ff9999");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegtoLCTXY_3","ME12+13: mean:0.8cm;RMS:1.8cm","l");
   entry->SetLineColor(1);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegtoLCTXY_4","ME2: mean:0.4cm;RMS:1.4cm","l");

   ci = TColor::GetColor("#ff0000");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegtoLCTXY_5","ME3: mean:0.5cm;RMS:1.2cm","l");

   ci = TColor::GetColor("#00ff00");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   entry=leg->AddEntry("SegtoLCTXY_6","ME4: mean:0.6cm;RMS:1.3cm","l");

   ci = TColor::GetColor("#0000ff");
   entry->SetLineColor(ci);
   entry->SetLineStyle(1);
   entry->SetLineWidth(1);
   entry->SetMarkerColor(1);
   entry->SetMarkerStyle(21);
   entry->SetMarkerSize(1);
   entry->SetTextFont(62);
   leg->Draw();
   
   TPaveText *pt = new TPaveText(0.01,0.9390678,0.2981452,0.995,"blNDC");
   pt->SetName("title");
   pt->SetBorderSize(1);
   pt->SetFillColor(0);
   TText *AText = pt->AddText("SegtoLCTXY");
   pt->Draw();
   SegtoLCTXY->Modified();
   SegtoLCTXY->cd();
   SegtoLCTXY->SetSelected(SegtoLCTXY);
}
开发者ID:senka,项目名称:CSC_eff_808,代码行数:101,代码来源:SegtoLCTXY_2016B_June22all_sameYrange_fullIntegral_10k9k_lin.C


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