Skip to content
Snippets Groups Projects

Resolve "Include synchrotron radiation benchmark"

Merged Wouter Deconinck requested to merge 31-include-synchrotron-radiation-benchmark into master
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -71,9 +71,9 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
@@ -71,9 +71,9 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
print_env.sh
print_env.sh
FILE_NAME_TAG="synchrotron"
FILE_NAME_TAG="synchrotron"
DATA_URL="S3/eictest/ATHENA/EVGEN/SR/SR.10GeV_5kVthreshold_hepmc/"
DATA_URL="S3/eictest/ATHENA/EVGEN/SR/SR.10GeV_5kVthreshold_hepmc/25098.hepmc"
export JUGGLER_MC_FILES="${LOCAL_DATA_PATH}/mc_${FILE_NAME_TAG}/"
export JUGGLER_MC_FILE="${LOCAL_DATA_PATH}/mc_${FILE_NAME_TAG}.hepmc"
export JUGGLER_SIM_FILE="${LOCAL_DATA_PATH}/sim_${FILE_NAME_TAG}.root"
export JUGGLER_SIM_FILE="${LOCAL_DATA_PATH}/sim_${FILE_NAME_TAG}.root"
export JUGGLER_REC_FILE="${LOCAL_DATA_PATH}/rec_${FILE_NAME_TAG}.root"
export JUGGLER_REC_FILE="${LOCAL_DATA_PATH}/rec_${FILE_NAME_TAG}.root"
@@ -90,7 +90,7 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
@@ -90,7 +90,7 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
## Step 1. Get the data
## Step 1. Get the data
if [[ -n "${DATA_INIT}" || -n "${DO_ALL}" ]] ; then
if [[ -n "${DATA_INIT}" || -n "${DO_ALL}" ]] ; then
mc -C . config host add S3 https://dtn01.sdcc.bnl.gov:9000 $S3_ACCESS_KEY $S3_SECRET_KEY
mc -C . config host add S3 https://dtn01.sdcc.bnl.gov:9000 $S3_ACCESS_KEY $S3_SECRET_KEY
mc -C . cp --insecure --recursive ${DATA_URL} "${JUGGLER_MC_FILES}"
mc -C . head -n 1000 --insecure ${DATA_URL} > ${JUGGLER_MC_FILE}
if [[ "$?" -ne "0" ]] ; then
if [[ "$?" -ne "0" ]] ; then
echo "Failed to download hepmc files"
echo "Failed to download hepmc files"
exit 1
exit 1
@@ -107,7 +107,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
@@ -107,7 +107,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
-v ERROR \
-v ERROR \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_MC_FILES}/*.hepmc \
--inputFiles ${JUGGLER_MC_FILE} \
--outputFile ${JUGGLER_SIM_FILE}
--outputFile ${JUGGLER_SIM_FILE}
if [[ "$?" -ne "0" ]] ; then
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running npsim"
echo "ERROR running npsim"
Loading