本文整理汇总了C++中Comparator::dir1方法的典型用法代码示例。如果您正苦于以下问题:C++ Comparator::dir1方法的具体用法?C++ Comparator::dir1怎么用?C++ Comparator::dir1使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Comparator
的用法示例。
在下文中一共展示了Comparator::dir1方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
comp.DrawSlice("delta_phi_VS_et_", 2, 1000, mode);
Styles::SavePlot("deltaPhi", outdir.c_str() );
TCanvas c3b("c3b", "pf vs Gen");
Styles::FormatPad( &c3b, false );
gStyle->SetPalette(1);
TDirectory* dir = comp.dir0();
dir->cd();
TH2F *h2 = (TH2F*) dir->Get("RecEt_VS_TrueEt_");
h2->Draw("colz");
Styles::SavePlot("PF_vs_Gen", outdir.c_str() );
TCanvas c4("c4", "Calo vs Gen");
Styles::FormatPad( &c4, false );
gStyle->SetPalette(1);
dir = comp.dir1();
dir->cd();
h2 = (TH2F*) dir->Get("RecEt_VS_TrueEt_");
h2->Draw("colz");
Styles::SavePlot("Calo_vs_Gen", outdir.c_str() );
TCanvas c6("c6", "genMET");
Styles::FormatPad( &c6, false );
Comparator comp3(file1, dir3.c_str(),
file2, dir3.c_str());
comp3.SetStyles(style1, style2, "Particle Flow Met", "Calo Met");
comp3.SetAxis(1,0,120);
comp3.Draw("pt_", mode);
Styles::SavePlot("genMET", outdir.c_str() );
comp3.SetAxis(1, 0,3000);
示例2:
comp.DrawSlice("delta_phi_VS_et_", 2, 1000, mode);
Styles::SavePlot("deltaPhi", outdir.c_str() );
TCanvas c3b("c3b", "pf vs Gen");
Styles::FormatPad( &c3b, false );
gStyle->SetPalette(1);
TDirectory* dir = comp.dir0();
dir->cd();
TH2F *h2 = (TH2F*) dir->Get("RecEt_VS_TrueEt_");
h2->Draw("colz");
Styles::SavePlot("PF_vs_Gen", outdir.c_str() );
TCanvas c4("c4", "Calo vs Gen");
Styles::FormatPad( &c4, false );
gStyle->SetPalette(1);
TDirectory* dir = comp.dir1();
dir->cd();
TH2F *h2 = (TH2F*) dir->Get("RecEt_VS_TrueEt_");
h2->Draw("colz");
Styles::SavePlot("Calo_vs_Gen", outdir.c_str() );
TCanvas c6("c6", "genMET");
Styles::FormatPad( &c6, false );
Comparator comp3(file1, dir3.c_str(),
file2, dir3.c_str());
comp3.SetStyles(style1, style2, "Particle Flow Met", "Calo Met");
comp3.SetAxis(1,0,120);
comp3.Draw("pt_", mode);
Styles::SavePlot("genMET", outdir.c_str() );
comp3.SetAxis(1, 0,3000);