From afcb7addefb275facf96b5e4c7dd726d4ef1016d Mon Sep 17 00:00:00 2001
From: Daniel Jeans <jeans@icepp.u-tokyo.ac.jp>
Date: Tue, 13 Dec 2016 10:26:04 +0900
Subject: [PATCH] graphicalMaterialScan: fix CMakeLists and axis labels

---
 UtilityApps/CMakeLists.txt                | 3 +--
 UtilityApps/src/graphicalMaterialScan.cpp | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/UtilityApps/CMakeLists.txt b/UtilityApps/CMakeLists.txt
index a64136327..5104c8824 100644
--- a/UtilityApps/CMakeLists.txt
+++ b/UtilityApps/CMakeLists.txt
@@ -1,4 +1,3 @@
-# $Id: $
 #==========================================================================
 #  AIDA Detector description implementation for LCD
 #--------------------------------------------------------------------------
@@ -24,7 +23,7 @@ dd4hep_add_executable( print_materials src/print_materials.cpp USES DDRec )
 #-----------------------------------------------------------------------------------
 dd4hep_add_executable( materialScan    src/materialScan.cpp USES DDRec )
 #-----------------------------------------------------------------------------------
-dd4hep_add_executable( graphicalMaterialScan src/graphicalMaterialScan.cpp USES DDRec )
+dd4hep_add_executable( graphicalMaterialScan src/graphicalMaterialScan.cpp USES DDRec ROOT )
 #-----------------------------------------------------------------------------------
 #dd4hep_add_executable( pydd4hep     
 #  USES        [ROOT   REQUIRED COMPONENTS PyROOT]
diff --git a/UtilityApps/src/graphicalMaterialScan.cpp b/UtilityApps/src/graphicalMaterialScan.cpp
index 00ec8406b..fdecc2311 100644
--- a/UtilityApps/src/graphicalMaterialScan.cpp
+++ b/UtilityApps/src/graphicalMaterialScan.cpp
@@ -89,7 +89,7 @@ int main(int argc, char** argv)   {
     index[1] = 2;
     index[2] = 0;
     labx="Z [cm]";
-    laby="Z [cm]";
+    laby="X [cm]";
   } else if ( XYZ=="z" || XYZ=="Z" ) {
     index[0] = 2;
     index[1] = 0;
-- 
GitLab