Skip to content
Snippets Groups Projects
Commit 712bd3d2 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: dvcs/dvcs.sh

	modified:   options/tracker_reconstruction.py
parent 680464ce
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ pushd ${JUGGLER_DETECTOR}/build ...@@ -34,7 +34,6 @@ pushd ${JUGGLER_DETECTOR}/build
cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
popd popd
pushd ${JUGGLER_DETECTOR}
curl -o test_proton_dvcs_eic.hepmc "https://eicweb.phy.anl.gov/api/v4/projects/345/jobs/artifacts/master/raw/data/test_proton_dvcs_eic.hepmc?job=compile" curl -o test_proton_dvcs_eic.hepmc "https://eicweb.phy.anl.gov/api/v4/projects/345/jobs/artifacts/master/raw/data/test_proton_dvcs_eic.hepmc?job=compile"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
...@@ -42,13 +41,12 @@ if [[ "$?" -ne "0" ]] ; then ...@@ -42,13 +41,12 @@ if [[ "$?" -ne "0" ]] ; then
exit 1 exit 1
fi fi
## run geant4 simulations ## run geant4 simulations
npsim --runType batch \ npsim --runType batch \
--part.minimalKineticEnergy 1000*GeV \ --part.minimalKineticEnergy 1000*GeV \
-v WARNING \ -v WARNING \
--numberOfEvents ${JUGGLER_N_EVENTS} \ --numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${JUGGLER_DETECTOR}.xml \ --compactFile ${JUGGLER_DETECTOR}/${JUGGLER_DETECTOR}.xml \
--inputFiles test_proton_dvcs_eic.hepmc \ --inputFiles test_proton_dvcs_eic.hepmc \
--outputFile ${JUGGLER_SIM_FILE} --outputFile ${JUGGLER_SIM_FILE}
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
...@@ -58,7 +56,7 @@ fi ...@@ -58,7 +56,7 @@ fi
# Need to figure out how to pass file name to juggler from the commandline # Need to figure out how to pass file name to juggler from the commandline
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \ xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \
gaudirun.py ../options/tracker_reconstruction.py gaudirun.py options/tracker_reconstruction.py
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler" echo "ERROR running juggler"
exit 1 exit 1
......
...@@ -13,9 +13,10 @@ input_sim_file = str(os.environ["JUGGLER_SIM_FILE"]) ...@@ -13,9 +13,10 @@ input_sim_file = str(os.environ["JUGGLER_SIM_FILE"])
output_rec_file = str(os.environ["JUGGLER_REC_FILE"]) output_rec_file = str(os.environ["JUGGLER_REC_FILE"])
n_events = str(os.environ["JUGGLER_N_EVENTS"]) n_events = str(os.environ["JUGGLER_N_EVENTS"])
detector_path = "" # This won't work
if "JUGGLER_DETECTOR_PATH" in os.environ : #detector_path = ""
detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"]) #if "JUGGLER_DETECTOR_PATH" in os.environ :
# detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
geo_service = GeoSvc("GeoSvc", geo_service = GeoSvc("GeoSvc",
detectors=["{}/{}.xml".format(detector_name, detector_name)]) detectors=["{}/{}.xml".format(detector_name, detector_name)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment