Skip to content
Snippets Groups Projects
Commit f0b66fa7 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: dvmp/analysis/vm_invar.cxx

parent b361240a
No related branches found
No related tags found
1 merge request!64Fix dvmp
This commit is part of merge request !64. Comments created here will be created in the context of that merge request.
...@@ -127,9 +127,9 @@ int vm_invar(const std::string& config_name) ...@@ -127,9 +127,9 @@ int vm_invar(const std::string& config_name)
auto& hy_rec = *h_y_rec; auto& hy_rec = *h_y_rec;
auto& hy_sim = *h_y_sim; auto& hy_sim = *h_y_sim;
// histogram style // histogram style
hy_rec.SetLineColor(plot::kMpOrange); hy_rec.SetLineColor(common_bench::plot::kMpOrange);
hy_rec.SetLineWidth(1); hy_rec.SetLineWidth(1);
hy_sim.SetLineColor(plot::kMpBlue); hy_sim.SetLineColor(common_bench::plot::kMpBlue);
hy_sim.SetLineWidth(2); hy_sim.SetLineWidth(2);
// axes // axes
hy_sim.GetXaxis()->CenterTitle(); hy_sim.GetXaxis()->CenterTitle();
...@@ -137,16 +137,16 @@ int vm_invar(const std::string& config_name) ...@@ -137,16 +137,16 @@ int vm_invar(const std::string& config_name)
hy_sim.DrawClone("hist"); hy_sim.DrawClone("hist");
hy_rec.DrawClone("hist same"); hy_rec.DrawClone("hist same");
// FIXME hardcoded beam configuration // FIXME hardcoded beam configuration
plot::draw_label(10, 100, detector); common_bench::plot::draw_label(10, 100, detector);
TText* tptr1; TText* tptr1;
auto t1 = new TPaveText(.6, .8417, .9, .925, "NB NDC"); auto t1 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
t1->SetFillColorAlpha(kWhite, 0); t1->SetFillColorAlpha(kWhite, 0);
t1->SetTextFont(43); t1->SetTextFont(43);
t1->SetTextSize(25); t1->SetTextSize(25);
tptr1 = t1->AddText("simulated"); tptr1 = t1->AddText("simulated");
tptr1->SetTextColor(plot::kMpBlue); tptr1->SetTextColor(common_bench::plot::kMpBlue);
tptr1 = t1->AddText("rec(PlaceHolder)"); tptr1 = t1->AddText("rec(PlaceHolder)");
tptr1->SetTextColor(plot::kMpOrange); tptr1->SetTextColor(common_bench::plot::kMpOrange);
t1->Draw(); t1->Draw();
// pad 2 Q2 // pad 2 Q2
...@@ -154,9 +154,9 @@ int vm_invar(const std::string& config_name) ...@@ -154,9 +154,9 @@ int vm_invar(const std::string& config_name)
auto& hQ2_rec = *h_Q2_rec; auto& hQ2_rec = *h_Q2_rec;
auto& hQ2_sim = *h_Q2_sim; auto& hQ2_sim = *h_Q2_sim;
// histogram style // histogram style
hQ2_rec.SetLineColor(plot::kMpOrange); hQ2_rec.SetLineColor(common_bench::plot::kMpOrange);
hQ2_rec.SetLineWidth(1); hQ2_rec.SetLineWidth(1);
hQ2_sim.SetLineColor(plot::kMpBlue); hQ2_sim.SetLineColor(common_bench::plot::kMpBlue);
hQ2_sim.SetLineWidth(2); hQ2_sim.SetLineWidth(2);
// axes // axes
hQ2_sim.GetXaxis()->CenterTitle(); hQ2_sim.GetXaxis()->CenterTitle();
...@@ -164,16 +164,16 @@ int vm_invar(const std::string& config_name) ...@@ -164,16 +164,16 @@ int vm_invar(const std::string& config_name)
hQ2_sim.DrawClone("hist"); hQ2_sim.DrawClone("hist");
hQ2_rec.DrawClone("hist same"); hQ2_rec.DrawClone("hist same");
// FIXME hardcoded beam configuration // FIXME hardcoded beam configuration
plot::draw_label(10, 100, detector); common_bench::plot::draw_label(10, 100, detector);
TText* tptr2; TText* tptr2;
auto t2 = new TPaveText(.6, .8417, .9, .925, "NB NDC"); auto t2 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
t2->SetFillColorAlpha(kWhite, 0); t2->SetFillColorAlpha(kWhite, 0);
t2->SetTextFont(43); t2->SetTextFont(43);
t2->SetTextSize(25); t2->SetTextSize(25);
tptr2 = t2->AddText("simulated"); tptr2 = t2->AddText("simulated");
tptr2->SetTextColor(plot::kMpBlue); tptr2->SetTextColor(common_bench::plot::kMpBlue);
tptr2 = t2->AddText("rec(PlaceHolder)"); tptr2 = t2->AddText("rec(PlaceHolder)");
tptr2->SetTextColor(plot::kMpOrange); tptr2->SetTextColor(common_bench::plot::kMpOrange);
t2->Draw(); t2->Draw();
// pad 3 x // pad 3 x
...@@ -181,9 +181,9 @@ int vm_invar(const std::string& config_name) ...@@ -181,9 +181,9 @@ int vm_invar(const std::string& config_name)
auto& hx_rec = *h_x_rec; auto& hx_rec = *h_x_rec;
auto& hx_sim = *h_x_sim; auto& hx_sim = *h_x_sim;
// histogram style // histogram style
hx_rec.SetLineColor(plot::kMpOrange); hx_rec.SetLineColor(common_bench::plot::kMpOrange);
hx_rec.SetLineWidth(1); hx_rec.SetLineWidth(1);
hx_sim.SetLineColor(plot::kMpBlue); hx_sim.SetLineColor(common_bench::plot::kMpBlue);
hx_sim.SetLineWidth(2); hx_sim.SetLineWidth(2);
// axes // axes
hx_sim.GetXaxis()->CenterTitle(); hx_sim.GetXaxis()->CenterTitle();
...@@ -191,16 +191,16 @@ int vm_invar(const std::string& config_name) ...@@ -191,16 +191,16 @@ int vm_invar(const std::string& config_name)
hx_sim.DrawClone("hist"); hx_sim.DrawClone("hist");
hx_rec.DrawClone("hist same"); hx_rec.DrawClone("hist same");
// FIXME hardcoded beam configuration // FIXME hardcoded beam configuration
plot::draw_label(10, 100, detector); common_bench::plot::draw_label(10, 100, detector);
TText* tptr3; TText* tptr3;
auto t3 = new TPaveText(.6, .8417, .9, .925, "NB NDC"); auto t3 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
t3->SetFillColorAlpha(kWhite, 0); t3->SetFillColorAlpha(kWhite, 0);
t3->SetTextFont(43); t3->SetTextFont(43);
t3->SetTextSize(25); t3->SetTextSize(25);
tptr3 = t3->AddText("simulated"); tptr3 = t3->AddText("simulated");
tptr3->SetTextColor(plot::kMpBlue); tptr3->SetTextColor(common_bench::plot::kMpBlue);
tptr3 = t3->AddText("rec(PlaceHolder)"); tptr3 = t3->AddText("rec(PlaceHolder)");
tptr3->SetTextColor(plot::kMpOrange); tptr3->SetTextColor(common_bench::plot::kMpOrange);
t3->Draw(); t3->Draw();
// pad 4 t // pad 4 t
...@@ -208,9 +208,9 @@ int vm_invar(const std::string& config_name) ...@@ -208,9 +208,9 @@ int vm_invar(const std::string& config_name)
auto& ht_rec = *h_t_rec; auto& ht_rec = *h_t_rec;
auto& ht_sim = *h_t_sim; auto& ht_sim = *h_t_sim;
// histogram style // histogram style
ht_rec.SetLineColor(plot::kMpOrange); ht_rec.SetLineColor(common_bench::plot::kMpOrange);
ht_rec.SetLineWidth(1); ht_rec.SetLineWidth(1);
ht_sim.SetLineColor(plot::kMpBlue); ht_sim.SetLineColor(common_bench::plot::kMpBlue);
ht_sim.SetLineWidth(2); ht_sim.SetLineWidth(2);
// axes // axes
ht_sim.GetXaxis()->CenterTitle(); ht_sim.GetXaxis()->CenterTitle();
...@@ -218,16 +218,16 @@ int vm_invar(const std::string& config_name) ...@@ -218,16 +218,16 @@ int vm_invar(const std::string& config_name)
ht_sim.DrawClone("hist"); ht_sim.DrawClone("hist");
ht_rec.DrawClone("hist same"); ht_rec.DrawClone("hist same");
// FIXME hardcoded beam configuration // FIXME hardcoded beam configuration
plot::draw_label(10, 100, detector); common_bench::plot::draw_label(10, 100, detector);
TText* tptr4; TText* tptr4;
auto t4 = new TPaveText(.6, .8417, .9, .925, "NB NDC"); auto t4 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
t4->SetFillColorAlpha(kWhite, 0); t4->SetFillColorAlpha(kWhite, 0);
t4->SetTextFont(43); t4->SetTextFont(43);
t4->SetTextSize(25); t4->SetTextSize(25);
tptr4 = t4->AddText("simulated"); tptr4 = t4->AddText("simulated");
tptr4->SetTextColor(plot::kMpBlue); tptr4->SetTextColor(common_bench::plot::kMpBlue);
tptr4 = t4->AddText("rec(PlaceHolder)"); tptr4 = t4->AddText("rec(PlaceHolder)");
tptr4->SetTextColor(plot::kMpOrange); tptr4->SetTextColor(common_bench::plot::kMpOrange);
t4->Draw(); t4->Draw();
c.Print(fmt::format("{}InvariantQuantities.png", output_prefix).c_str()); c.Print(fmt::format("{}InvariantQuantities.png", output_prefix).c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment