本文整理汇总了C++中TCut::Draw方法的典型用法代码示例。如果您正苦于以下问题:C++ TCut::Draw方法的具体用法?C++ TCut::Draw怎么用?C++ TCut::Draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TCut
的用法示例。
在下文中一共展示了TCut::Draw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HT_RaTPlot
void HT_RaTPlot(TTree *t1, TString sel, TString set){
gROOT->SetStyle("Plain");
gStyle->SetOptStat(0);
SetStyle();
TH1D *noHT = RaT(t1,kRed,trigMC+numpj,"noHT",sel,set);
TH1D *HT200 = RaT(t1,kBlack,trigMC+HT200,"HT200",sel,set);
TH1D *HT300= RaT(t1,kGreen,trigMC+HT300,"HT300",sel,set);
TH1D *HT350 = RaT(t1,kBlue,trigMC+HT350,"HT350",sel,set);
TCanvas *c7 = new TCanvas ("SAS"+sel+set,"SAS"+sel+set);
TLegend *leg = new TLegend(0.7,0.7,0.99,0.99);
leg->AddEntry(noHT,"noHT","LP");
leg->AddEntry(HT200,"HT > 200","LP");
leg->AddEntry(HT300,"HT > 300","LP");
leg->AddEntry(HT350,"HT > 350","LP");
noHT->Draw("E");
gPad->SetGridx(); gPad->SetGridy();
HT200->Draw("ESAME");
HT300->Draw("ESAME");
HT350->Draw("ESAME");
HT200->SetTitle();
HT200->GetXaxis()->SetTitle("|#eta | leading jet");
HT200->GetYaxis()->SetTitle("N(above aT "+s_aT+") / N(all)");
HT200->GetYaxis()->SetTitleOffset(1.2);
leg->Draw("SAME");
c7->Update();
c7->SaveAs(plotting+"RaT_HTbins_"+set+"_"+sel+".png");
}