Skip to content
Snippets Groups Projects

Fix on invariant mass calculation

Closed Jihee Kim requested to merge jihee.kim/detector_benchmarks:pion_mass into master
1 unresolved thread
1 file
+ 21
12
Compare changes
  • Side-by-side
  • Inline
+ 21
12
@@ -146,7 +146,8 @@ int makeplot_pion(void)
h1->GetYaxis()->SetTitleOffset(1.4);
gPad->Update();
h1->DrawClone();
h1->SaveAs("results/theta_hist.png");
h1->SaveAs("results/pi0_theta_hist.png");
h1->SaveAs("results/pi0_theta_hist.pdf");
c2->cd();
h2->SetLineColor(kBlue);
@@ -155,14 +156,16 @@ int makeplot_pion(void)
h2->GetYaxis()->SetTitle("events");
h2->GetYaxis()->SetTitleOffset(1.4);
h2->DrawClone();
h2->SaveAs("results/eta_hist.png");
h2->SaveAs("results/pi0_eta_hist.png");
h2->SaveAs("results/pi0_eta_hist.pdf");
c3->cd();
h3->GetXaxis()->SetTitle("Cluster energy [GeV]");
h3->GetYaxis()->SetTitle("#eta");
h3->GetYaxis()->SetTitleOffset(1.4);
h3->DrawClone("COLZ");
h3->SaveAs("results/e_vs_eta_hist.png");
h3->SaveAs("results/pi0_e_vs_eta_hist.png");
h3->SaveAs("results/pi0_e_vs_eta_hist.pdf");
c4->cd();
c4->SetLogy(1);
@@ -172,15 +175,17 @@ int makeplot_pion(void)
h4->GetYaxis()->SetTitle("events");
h4->GetYaxis()->SetTitleOffset(1.4);
h4->DrawClone();
h4->SaveAs("results/recon_e_hist.png");
h4->SaveAs("results/pi0_recon_e_hist.png");
h4->SaveAs("results/pi0_recon_e_hist.pdf");
c6->cd();
h6->GetXaxis()->SetTitle("#theta [degree]");
h6->GetYaxis()->SetTitle("#eta");
h6->GetYaxis()->SetTitleOffset(1.4);
h6->DrawClone("COLZ");
h6->SaveAs("results/theta_vs_eta_hist.png");
h6->SaveAs("results/pi0_theta_vs_eta_hist.png");
h6->SaveAs("results/pi0_theta_vs_eta_hist.pdf");
c7->cd();
h7->SetLineColor(kBlue);
h7->SetLineWidth(2);
@@ -188,8 +193,9 @@ int makeplot_pion(void)
h7->GetYaxis()->SetTitle("events");
h7->GetYaxis()->SetTitleOffset(1.4);
h7->DrawClone();
h7->SaveAs("results/invariant_mass_hist.png");
h7->SaveAs("results/pi0_invariant_mass_hist.png");
h7->SaveAs("results/pi0_invariant_mass_hist.pdf");
c8->cd();
h8->SetLineColor(kBlue);
h8->SetLineWidth(2);
@@ -197,8 +203,9 @@ int makeplot_pion(void)
h8->GetYaxis()->SetTitle("events");
h8->GetYaxis()->SetTitleOffset(1.4);
h8->DrawClone();
h8->SaveAs("results/E1_hist.png");
h8->SaveAs("results/pi0_E1_hist.png");
h8->SaveAs("results/pi0_E1_hist.pdf");
c9->cd();
h9->SetLineColor(kBlue);
h9->SetLineWidth(2);
@@ -206,7 +213,8 @@ int makeplot_pion(void)
h9->GetYaxis()->SetTitle("events");
h9->GetYaxis()->SetTitleOffset(1.4);
h9->DrawClone();
h9->SaveAs("results/E2_hist.png");
h9->SaveAs("results/pi0_E2_hist.png");
h9->SaveAs("results/pi0_E2_hist.pdf");
c10->cd();
h10->SetLineColor(kBlue);
@@ -215,7 +223,8 @@ int makeplot_pion(void)
h10->GetYaxis()->SetTitle("events");
h10->GetYaxis()->SetTitleOffset(1.4);
h10->DrawClone();
h10->SaveAs("results/angle_twophotons.png");
h10->SaveAs("results/pi0_angle_twophotons.png");
h10->SaveAs("results/pi0_angle_twophotons.pdf");
return 0;
}
Loading