From 04357d2792f4f15d835860c206c9dc0a503ff5dd Mon Sep 17 00:00:00 2001
From: Ziyue Zhang <Ziyue_Zhang@localhost.localdomain>
Date: Thu, 4 Feb 2021 14:01:41 -0600
Subject: [PATCH] Rename plotting objects

---
 benchmarks/dvmp/analysis/vm_invar.cxx | 48 +++++++++++++--------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/benchmarks/dvmp/analysis/vm_invar.cxx b/benchmarks/dvmp/analysis/vm_invar.cxx
index 709a062d..01763a25 100644
--- a/benchmarks/dvmp/analysis/vm_invar.cxx
+++ b/benchmarks/dvmp/analysis/vm_invar.cxx
@@ -119,16 +119,16 @@ int vm_invar(const std::string& config_name)
     hnu.DrawClone("hist");
     // FIXME hardcoded beam configuration
     plot::draw_label(10, 100, detector);
-    TText* tptr21;
-    auto   t21 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
-    t21->SetFillColorAlpha(kWhite, 0);
-    t21->SetTextFont(43);
-    t21->SetTextSize(25);
-    tptr21 = t21->AddText("simulated");
-    tptr21->SetTextColor(plot::kMpBlue);
+    TText* tptr1;
+    auto   t1 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
+    t1->SetFillColorAlpha(kWhite, 0);
+    t1->SetTextFont(43);
+    t1->SetTextSize(25);
+    tptr1 = t1->AddText("simulated");
+    tptr1->SetTextColor(plot::kMpBlue);
     // tptr1 = t1->AddText("reconstructed");
     // tptr1->SetTextColor(plot::kMpOrange);
-    t21->Draw();
+    t1->Draw();
 
     // pad 2 Q2
     c.cd(2);
@@ -144,16 +144,16 @@ int vm_invar(const std::string& config_name)
     hQ2.DrawClone("hist");
     // FIXME hardcoded beam configuration
     plot::draw_label(10, 100, detector);
-    TText* tptr22;
-    auto   t22 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
-    t22->SetFillColorAlpha(kWhite, 0);
-    t22->SetTextFont(43);
-    t22->SetTextSize(25);
-    tptr22 = t22->AddText("simulated");
-    tptr22->SetTextColor(plot::kMpBlue);
+    TText* tptr2;
+    auto   t2 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
+    t2->SetFillColorAlpha(kWhite, 0);
+    t2->SetTextFont(43);
+    t2->SetTextSize(25);
+    tptr2 = t2->AddText("simulated");
+    tptr2->SetTextColor(plot::kMpBlue);
     // tptr1 = t1->AddText("reconstructed");
     // tptr1->SetTextColor(plot::kMpOrange);
-    t22->Draw();
+    t2->Draw();
 
     // pad 3 x
     c.cd(3);
@@ -169,16 +169,16 @@ int vm_invar(const std::string& config_name)
     hx.DrawClone("hist");
     // FIXME hardcoded beam configuration
     plot::draw_label(10, 100, detector);
-    TText* tptr23;
-    auto   t23 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
-    t23->SetFillColorAlpha(kWhite, 0);
-    t23->SetTextFont(43);
-    t23->SetTextSize(25);
-    tptr23 = t23->AddText("simulated");
-    tptr23->SetTextColor(plot::kMpBlue);
+    TText* tptr3;
+    auto   t3 = new TPaveText(.6, .8417, .9, .925, "NB NDC");
+    t3->SetFillColorAlpha(kWhite, 0);
+    t3->SetTextFont(43);
+    t3->SetTextSize(25);
+    tptr3 = t3->AddText("simulated");
+    tptr3->SetTextColor(plot::kMpBlue);
     // tptr1 = t1->AddText("reconstructed");
     // tptr1->SetTextColor(plot::kMpOrange);
-    t23->Draw();
+    t3->Draw();
     
     // pad 3 x
     c.cd(4);
-- 
GitLab