Skip to content
Snippets Groups Projects

Using small number of s3 data events for benchmark

Merged Whitney Armstrong requested to merge dvcs_s3_data_test into master
Compare and
1 file
+ 12
8
Compare changes
  • Side-by-side
  • Inline
+ 12
8
#!/bin/bash
#!/bin/bash
# these variables might not need exported.
# these variables might not need exported.
export JUGGLER_FILE_NAME_TAG="dvcs"
export FILE_NAME_TAG="dvcs"
export JUGGLER_SIM_FILE="sim_${JUGGLER_FILE_NAME_TAG}.root"
export JUGGLER_SIM_FILE="sim_${FILE_NAME_TAG}.root"
export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root"
export JUGGLER_REC_FILE="rec_${FILE_NAME_TAG}.root"
echo "JUGGLER_N_EVENTS = ${JUGGLER_N_EVENTS}"
echo "JUGGLER_N_EVENTS = ${JUGGLER_N_EVENTS}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_FILE_NAME_TAG = ${JUGGLER_FILE_NAME_TAG}"
echo "FILE_NAME_TAG = ${FILE_NAME_TAG}"
## To run the reconstruction, we need the following global variables:
## To run the reconstruction, we need the following global variables:
## - JUGGLER_INSTALL_PREFIX: Install prefix for Juggler (simu/recon)
## - JUGGLER_INSTALL_PREFIX: Install prefix for Juggler (simu/recon)
## - JUGGLER_DETECTOR: the detector package we want to use for this benchmark
## - JUGGLER_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
mc -C . config host add S3 https://dtn01.sdcc.bnl.gov:9000 $S3_ACCESS_KEY $S3_SECRET_KEY
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"
mc -C . cat --insecure S3/eictest/ATHENA/EVGEN/DVCS/DVCS_10x100_2M/DVCS.1.hepmc | head -n 1004 > dvcs_test.hepmc
if [[ "$?" -ne "0" ]] ; then
if [[ "$?" -ne "0" ]] ; then
echo "Failed to download hepmc file"
echo "Failed to download hepmc file"
exit 1
exit 1
fi
fi
export JUGGLER_N_EVENTS=10
 
#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"
 
 
 
## run geant4 simulations
## run geant4 simulations
npsim --runType batch \
npsim --runType batch \
@@ -30,7 +34,7 @@ npsim --runType batch \
@@ -30,7 +34,7 @@ npsim --runType batch \
-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 test_proton_dvcs_eic.hepmc \
--inputFiles dvcs_test.hepmc \
--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