From f1b8049a6f98ad1c337fd70f49a90e9c48bcbaf7 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Tue, 3 Nov 2020 16:45:58 -0600
Subject: [PATCH] 	modified:   tracking/central_electrons.sh

---
 tracking/central_electrons.sh | 42 +++++++++++++++++------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/tracking/central_electrons.sh b/tracking/central_electrons.sh
index 6bf6d5a0..61a81c4c 100644
--- a/tracking/central_electrons.sh
+++ b/tracking/central_electrons.sh
@@ -23,34 +23,34 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
 
 
 ## Build the detector constructors.
-#git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
-#mkdir ${JUGGLER_DETECTOR}/build
-#pushd ${JUGGLER_DETECTOR}/build
-#cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
-#popd
+git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
+mkdir ${JUGGLER_DETECTOR}/build
+pushd ${JUGGLER_DETECTOR}/build
+cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
+popd
 
 ## generate the input events
-#root -b -q "tracking/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
-#if [[ "$?" -ne "0" ]] ; then
-#  echo "ERROR running script"
-#  exit 1
-#fi
+root -b -q "tracking/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
+if [[ "$?" -ne "0" ]] ; then
+  echo "ERROR running script"
+  exit 1
+fi
 
 #
 pushd ${JUGGLER_DETECTOR}
 
 ## run geant4 simulations
-#npsim --runType batch \
-#      --part.minimalKineticEnergy 1000*GeV  \
-#      -v WARNING \
-#      --numberOfEvents ${JUGGLER_N_EVENTS} \
-#      --compactFile ${JUGGLER_DETECTOR}.xml \
-#      --inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \
-#      --outputFile  ${JUGGLER_SIM_FILE}
-#if [[ "$?" -ne "0" ]] ; then
-#  echo "ERROR running script"
-#  exit 1
-#fi
+npsim --runType batch \
+      --part.minimalKineticEnergy 1000*GeV  \
+      -v WARNING \
+      --numberOfEvents ${JUGGLER_N_EVENTS} \
+      --compactFile ${JUGGLER_DETECTOR}.xml \
+      --inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \
+      --outputFile  ${JUGGLER_SIM_FILE}
+if [[ "$?" -ne "0" ]] ; then
+  echo "ERROR running script"
+  exit 1
+fi
 
 
 # Need to figure out how to pass file name to juggler from the commandline
-- 
GitLab