From ce728a315557fd3f968346a5a1306ec706f5ccd3 Mon Sep 17 00:00:00 2001 From: Ziyue Zhang <zzhan70@uic.edu> Date: Fri, 22 Jan 2021 16:03:23 -0600 Subject: [PATCH] Update dvmp/analysis/vm_invar.cxx --- dvmp/analysis/vm_invar.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dvmp/analysis/vm_invar.cxx b/dvmp/analysis/vm_invar.cxx index 99b85ef0..f8723733 100644 --- a/dvmp/analysis/vm_invar.cxx +++ b/dvmp/analysis/vm_invar.cxx @@ -106,10 +106,10 @@ int vm_invar(const std::string& config_name) { // Print canvas to output file - TCanvas c2{"canvas2", "canvas2", 1800, 600}; - c2.Divide(3, 1, 0.0001, 0.0001); + TCanvas c{"canvas2", "canvas2", 1800, 600}; + c.Divide(3, 1, 0.0001, 0.0001); //pad 1 nu - c2.cd(1); + c.cd(1); //gPad->SetLogx(false); //gPad->SetLogy(false); auto& hnu = *h_nu_sim; @@ -135,7 +135,7 @@ int vm_invar(const std::string& config_name) { t21->Draw(); //pad 2 Q2 - c2.cd(2); + c.cd(2); //gPad->SetLogx(false); //gPad->SetLogy(false); auto& hQ2 = *h_Q2_sim; @@ -160,7 +160,7 @@ int vm_invar(const std::string& config_name) { t22->Draw(); //pad 1 nu - c2.cd(3); + c.cd(3); //gPad->SetLogx(false); //gPad->SetLogy(false); auto& hx = *h_x_sim; @@ -184,7 +184,7 @@ int vm_invar(const std::string& config_name) { //tptr1->SetTextColor(plot::kMpOrange); t23->Draw(); - c2.Print(fmt::format("{}InvariantQuantities.png", output_prefix).c_str()); + c.Print(fmt::format("{}InvariantQuantities.png", output_prefix).c_str()); } // TODO we're not actually doing an IM fit yet, so for now just return an -- GitLab