Skip to content
Snippets Groups Projects

fix: avoid running dvcs, tcs, u_omega against S3

3 files
+ 18
48
Compare changes
  • Side-by-side
  • Inline

Files

@@ -72,9 +72,10 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
@@ -72,9 +72,10 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
print_env.sh
print_env.sh
FILE_NAME_TAG="dvcs"
FILE_NAME_TAG="dvcs"
DATA_URL="S3/eictest/ATHENA/EVGEN/DVCS/DVCS_10x100_2M/DVCS.1.hepmc"
XROOTD_BASEURL="root://dtn-eic.jlab.org//work/eic2/EPIC"
 
INPUT_FILE="EVGEN/EXCLUSIVE/DVCS_ABCONV/10x100/DVCS.1.ab.hiDiv.10x100.hepmc3.tree.root"
export JUGGLER_MC_FILE="${LOCAL_DATA_PATH}/mc_${FILE_NAME_TAG}.hepmc"
export JUGGLER_MC_FILE="${XROOTD_BASEURL}/${INPUT_FILE}"
export JUGGLER_SIM_FILE="${LOCAL_DATA_PATH}/sim_${FILE_NAME_TAG}.edm4hep.root"
export JUGGLER_SIM_FILE="${LOCAL_DATA_PATH}/sim_${FILE_NAME_TAG}.edm4hep.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"
@@ -87,18 +88,7 @@ echo "DETECTOR = ${DETECTOR}"
@@ -87,18 +88,7 @@ echo "DETECTOR = ${DETECTOR}"
## - DETECTOR: the detector package we want to use for this benchmark
## - DETECTOR: the detector package we want to use for this benchmark
## - DETECTOR_PATH: full path to the detector definitions
## - DETECTOR_PATH: full path to the detector definitions
## Step 1. Get the data
### Step 1. Run the simulation (geant4)
if [[ -n "${DATA_INIT}" || -n "${DO_ALL}" ]] ; then
mc -C . config host add S3 https://eics3.sdcc.bnl.gov:9000 $S3_ACCESS_KEY $S3_SECRET_KEY
set +o pipefail
mc -C . head -n 1004 --insecure ${DATA_URL} | sanitize_hepmc3 > "${JUGGLER_MC_FILE}"
if [[ "$?" -ne "0" ]] ; then
echo "Failed to download hepmc file"
exit 1
fi
fi
### Step 2. Run the simulation (geant4)
if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
## run geant4 simulations
## run geant4 simulations
ddsim --runType batch \
ddsim --runType batch \
@@ -115,7 +105,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
@@ -115,7 +105,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then
fi
fi
fi
fi
### Step 3. Run the reconstruction (eicrecon)
### Step 2. Run the reconstruction (eicrecon)
if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
if [ ${RECO} == "eicrecon" ] ; then
if [ ${RECO} == "eicrecon" ] ; then
eicrecon ${JUGGLER_SIM_FILE} -Ppodio:output_file=${JUGGLER_REC_FILE}
eicrecon ${JUGGLER_SIM_FILE} -Ppodio:output_file=${JUGGLER_REC_FILE}
@@ -141,7 +131,7 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
@@ -141,7 +131,7 @@ if [[ -n "${DO_REC}" || -n "${DO_ALL}" ]] ; then
fi
fi
fi
fi
### Step 4. Run the analysis code
### Step 3. Run the analysis code
if [[ -n "${DO_ANALYSIS}" || -n "${DO_ALL}" ]] ; then
if [[ -n "${DO_ANALYSIS}" || -n "${DO_ALL}" ]] ; then
echo "Running analysis scripts"
echo "Running analysis scripts"
rootls -t ${JUGGLER_REC_FILE}
rootls -t ${JUGGLER_REC_FILE}
Loading