コード例 #1
0
ファイル: plot_QCD.C プロジェクト: Andrej-CMS/cmssw
  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
0
ファイル: plot_QCD.C プロジェクト: tj710/TTEmulator
  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);