Workflow 2018, Stage 1
Priority | 50 |
Processors | 1 |
Wall seconds | 80000 |
Image | /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest |
RSS bytes | 2097152000 (2000 MiB) |
Max distance for inputs | 100.0 |
Enabled input RSEs |
CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, MONTECARLO, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC |
Enabled output RSEs |
CERN_PDUNE_EOS, DUNE_CA_SFU, DUNE_CERN_EOS, DUNE_ES_PIC, DUNE_FR_CCIN2P3_DISK, DUNE_IN_TIFR, DUNE_IT_INFN_CNAF, DUNE_UK_GLASGOW, DUNE_UK_LANCASTER_CEPH, DUNE_UK_MANCHESTER_CEPH, DUNE_US_BNL_SDCC, DUNE_US_FNAL_DISK_STAGE, FNAL_DCACHE, FNAL_DCACHE_STAGING, FNAL_DCACHE_TEST, NIKHEF, PRAGUE, QMUL, RAL-PP, RAL_ECHO, SURFSARA, T3_US_NERSC |
Enabled sites |
BR_CBPF, CA_SFU, CERN, CH_UNIBE-LHEP, CZ_FZU, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IT_CNAF, NL_NIKHEF, NL_SURFsara, UK_Bristol, UK_Brunel, UK_Durham, UK_Edinburgh, UK_Glasgow, UK_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_PuertoRico, US_SU-ITS, US_Swan, US_UChicago, US_UConn-HPC, US_UCSD, US_Wisconsin |
Scope | usertests |
Events for this stage |
Output patterns
| Destination | Pattern | Lifetime | For next stage | RSE expression |
---|
1 | https://fndcadoor.fnal.gov:2880/dune/scratch/users/rraut/fnal/02018/1 | detsim_*.root | | | |
Environment variables
Name | Value |
---|
INPUT_TAR_DIR_LOCAL | /cvmfs/fifeuser3.opensciencegrid.org/sw/dune/74a4e64fe9fe886c84fc14954aa0f14064b900a8 |
File states
Total files | Finding | Unallocated | Allocated | Outputting | Processed | Not found | Failed |
---|
|
1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Job states
Total | Submitted | Started | Processing | Outputting | Finished | Notused | Aborted | Stalled | Jobscript error | Outputting failed | None processed |
---|
4 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 |
RSEs used
Name | Inputs | Outputs |
---|
MONTECARLO | 2 | 0 |
None | 0 | 2 |
Stats of processed input files as CSV or JSON, and of uploaded output files as CSV or JSON (up to 10000 files included)
File reset events, by site
Site | Allocated | Outputting |
---|
NL_NIKHEF | 1 | 0 |
Jobscript
#!/bin/bash
:<<'EOF'
Generating cosmic events for n_100 test
EOF
echo "---Starting Job---"
echo "===Debugging Now==="
echo "INPUT_TAR_DIR_LOCAL=$INPUT_TAR_DIR_LOCAL"
echo "===Debugging fcl file==="
DUNE_VERSION=${DUNE_VERSION:-v10_08_00d00}
DUNE_QUALIFIERS=${DUNE_QUALIFIERS:-e26:prof}
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup dunesw "$DUNE_VERSION" -q "$DUNE_QUALIFIERS"
echo "---guarding Input---"
if [[ -z "${INPUT_TAR_DIR_LOCAL:-}" ]]; then
echo "ERROR INPUT_TAR_DIR_LOCAL is empty"
exit 2
fi
FCL_FILE1="${INPUT_TAR_DIR_LOCAL}/gen_cosmic.fcl"
FCL_FILE2="${INPUT_TAR_DIR_LOCAL}/g4_cosmic_stage1.fcl"
FCL_FILE3="${INPUT_TAR_DIR_LOCAL}/g4_cosmic_stage2.fcl"
FCL_FILE4="${INPUT_TAR_DIR_LOCAL}/detsim_cosmic.fcl"
export FHICL_FILE_PATH="${INPUT_TAR_DIR_LOCAL}:${FHICL_FILE_PATH:-}"
export FW_SEARCH_PATH="${INPUT_TAR_DIR_LOCAL}:${FW_SEARCH_PATH:-}"
UNIQUE_ID="${JUSTIN_PROCESS:-}"
echo "----Incase of fcl file not found----"
ls -l "${INPUT_TAR_DIR_LOCAL}" || echo "could not found ls INPUT_TAR_DIR_LOCAL dir"
for f in "$FCL_FILE1" "$FCL_FILE2" "$FCL_FILE3" "$FCL_FILE4"; do
if [ -r "$f" ]; then
echo "OK!!! found $(basename "$f")"
else
echo "MISSING: $f"
fi
done
#for unique filename
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`
if [ "$did_pfn_rse" = "" ]; then
echo "Nothing to process - exit jobscript"
exit 0
fi
echo "$did_pfn_rse" | cut -f1 -d' ' >>all-input-dids.txt
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
echo "Input PFN= $pfn"
now=$(date -u +"date +'%Y%m%dT%H%M%SZ'")
Ffname=`echo $pfn | awk -F/ `{print $NF}``
fname=`echo $Ffname | awk -F. '{print $1}'`
#outFile=${fname}_reco_data_${now}.root
echo "Unique Id for this Job: ${fname} ${now}"
echo "Running gen......"
(
export LD_PRELOAD=${XROOTD_LIB}/libXrdPosixPreload.so
echo "$LD_PRELOAD"
lar -c "$FCL_FILE1" -n 1 -o "gen_${fname}.root"
echo "Running G4 Stage 1..."
lar -c "$FCL_FILE2" -s "gen_${fname}.root" -o "g4_stage1_${fname}.root"
echo "Running G4 Stage 2..."
lar -c "$FCL_FILE3" -s "g4_stage1_${fname}.root" -o "g4_stage2_${fname}.root"
echo "Running Detector Simulation..."
lar -c "$FCL_FILE4" -s "g4_stage2_${fname}.root" -o "detsim_${fname}.root"
)
echo "--- Jobscript finishd ---"
larExit=$?
echo "lar Exit code $larExit"
echo '=== Start last 40 lines of the lar log file==='
tail -40 ${fname}_cosmi_${now}.log
echo '====End last 40 lines of the tail===='
exit 0