From 88b33226ee687dd77be89a3bf42c81df6186757f Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sun, 18 Oct 2020 02:05:34 -0500
Subject: [PATCH] 	modified:   clustering/emcal_electrons.sh 
 modified:   scripts/makeplot.C

---
 clustering/emcal_electrons.sh | 4 ++--
 scripts/makeplot.C            | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/clustering/emcal_electrons.sh b/clustering/emcal_electrons.sh
index d5bc5aba..8302547f 100644
--- a/clustering/emcal_electrons.sh
+++ b/clustering/emcal_electrons.sh
@@ -10,8 +10,8 @@ ls -lrth
 root -b -q "datasets/emcal_electrons.cxx(1e4, \"emcal_uniform_electrons.hepmc\")"
 cd topside && ls -l
 npsim --runType batch --numberOfEvents 1000 --compactFile topside.xml --inputFiles ../emcal_uniform_electrons.hepmc --outputFile  ../sim_output/sim_emcal_electrons.root
-cd ..
 pwd
 /usr/local/bin/xenv --xml /usr/local/Juggler.xenv /usr/local/scripts/gaudirun.py ./options/example_crystal.py
-root -b -q ./scripts/makeplot.C 
+cd ..
+root -b -q "./scripts/makeplot.C(\"sim_output/sim_emcal_electrons_output.root\")"
 
diff --git a/scripts/makeplot.C b/scripts/makeplot.C
index c49cbaa2..638aa5c6 100644
--- a/scripts/makeplot.C
+++ b/scripts/makeplot.C
@@ -2,7 +2,7 @@
 // Read reconstruction ROOT output file
 // Plot variables
 ////////////////////////////////////////
-int makeplot(const char* input_fname = "sim_output/rec_electron_0GeVto30GeV_100k_output.root")
+int makeplot(const char* input_fname = "../sim_output/sim_emcal_electrons_output.root")
 {
   // Setting figures
   gROOT->SetStyle("Plain");
-- 
GitLab