justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 9837, Stage 1

Workflow9837
Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes8387559424 (7999 MiB)
Max distance for inputs0.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_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
Scopeusertests
Events for this stage

Output patterns

 DestinationPatternLifetimeFor next stageRSE expression
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/jjo/fnal/09837/1*_reco.root

Environment variables

NameValue
INPUT_TAR_DIR_LOCAL/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/c9ce63418e9337dcc5c811d6a5225aaf3f7b4977
NUM_EVENTS20

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
50000005

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
48300002100462000
Replicas per RSE5490.025244.55269.975244.50000000000003Replicas per RSEDUNE_US_FNAL_DISK_STAGE (50%)FNAL_DCACHE (50%)

RSEs used

NameInputsOutputs
DUNE_US_FNAL_DISK_STAGE300

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

SiteAllocatedOutputting
US_FNAL-FermiGrid250

Jobscript

#!/bin/bash
#
# protodunehd_beamcosmic_test.jobscript
# Simple testing jobscript to run a short ProtoDUNE-HD chain (20 events per file)
#

# ---- Setup environment ----
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh

# Use requested version and qualifier
setup dunesw v10_10_05d00 -q e26:prof
if [ $? -ne 0 ]; then
    echo "Error setting up dunesw v10_10_05d00"
    exit 1
fi

if [ -n "${INPUT_TAR_DIR_LOCAL:-}" ]; then
    export FCL_SEARCH_PATH="${INPUT_TAR_DIR_LOCAL}:${FCL_SEARCH_PATH}"
fi

# Choose which reco FHiCL to run
# Prefer explicit path in CVMFS if available; otherwise fall back to bare name
if [ -n "${INPUT_TAR_DIR_LOCAL:-}" ] && [ -f "${INPUT_TAR_DIR_LOCAL}/pdhd_1GeV_h4input_cosmics.fcl" ] && [ -f "${INPUT_TAR_DIR_LOCAL}/standard_detsim_protodunehd.fcl" ] && [ -f "${INPUT_TAR_DIR_LOCAL}/standard_reco_protodunehd_MC.fcl" ]; then
    GEN_FCL="${GEN_FCL:-${INPUT_TAR_DIR_LOCAL}/pdhd_1GeV_h4input_cosmics.fcl}"
    DETSIM_FCL="${DETSIM_FCL:-${INPUT_TAR_DIR_LOCAL}/standard_detsim_protodunehd.fcl}"
    RECO_FCL="${RECO_FCL:-${INPUT_TAR_DIR_LOCAL}/standard_reco_protodunehd_MC.fcl}"
else
    GEN_FCL="${GEN_FCL:-pdhd_1GeV_h4input_cosmics.fcl}"
    DETSIM_FCL="${DETSIM_FCL:-standard_detsim_protodunehd.fcl}"
    RECO_FCL="${RECO_FCL:-standard_reco_protodunehd_MC.fcl}"
fi
echo "Using GEN_FCL = ${GEN_FCL}"
echo "Using DETSIM_FCL = ${DETSIM_FCL}"
echo "Using RECO_FCL = ${RECO_FCL}"



# Parallelism
if [ -z "${JUSTIN_PROCESSORS}" ]; then
    JUSTIN_PROCESSORS=1
fi
export TF_NUM_THREADS=${JUSTIN_PROCESSORS}
export OPENBLAS_NUM_THREADS=${JUSTIN_PROCESSORS}
export JULIA_NUM_THREADS=${JUSTIN_PROCESSORS}
export MKL_NUM_THREADS=${JUSTIN_PROCESSORS}
export NUMEXPR_NUM_THREADS=${JUSTIN_PROCESSORS}
export OMP_NUM_THREADS=${JUSTIN_PROCESSORS}

# ---- Get one input file ----
did_pfn_rse=`$JUSTIN_PATH/justin-get-file`
if [ "${did_pfn_rse}" == "" ] ; then
    echo "No unprocessed files available, exiting."
    exit 0
fi

did=`echo $did_pfn_rse | cut -f1 -d' '`
pfn=`echo $did_pfn_rse | cut -f2 -d' '`
rse=`echo $did_pfn_rse | cut -f3 -d' '`
name_only=$(echo $did | cut -f2 -d':')

echo "Processing file: $pfn"
echo "RSE: $rse"
echo "DID: $did"

# ---- Set event count ----
nevents=20

# ---- Timestamp for unique output names ----
now=$(date -u +"%Y%m%dT%H%M%SZ")
jobid=`echo "${JUSTIN_JOBSUB_ID:-1}" | cut -f1 -d'@' | sed -e "s/\./_/"`
stageid=${JUSTIN_STAGE_ID:-1}

# ---- LArSoft chain ----
echo "Running ProtoDUNE-HD GEN --> G4 --> DETSIM --> RECO chain"

# 1. GEN
lar -n ${nevents} -c "${GEN_FCL}" \
    -o gen.root \
    "$pfn"
if [ $? -ne 0 ]; then echo "GEN failed"; exit 1; fi

# 2. G4 stage 1
lar -c standard_g4_protodunehd_stage1.fcl \
    -o g4_stage1.root \
    gen.root
if [ $? -ne 0 ]; then echo "G4 stage1 failed"; exit 1; fi

# 3. G4 stage 2
lar -c standard_g4_protodunehd_stage2.fcl \
    -o g4_stage2.root \
    g4_stage1.root
if [ $? -ne 0 ]; then echo "G4 stage2 failed"; exit 1; fi

# 4. DETSIM
lar -c "${DETSIM_FCL}" \
    -o detsim.root \
    g4_stage2.root
if [ $? -ne 0 ]; then echo "Detsim failed"; exit 1; fi

# 5. RECO
outFile=${name_only}_${jobid}_${stageid}_${now}_reco.root
lar -c "${RECO_FCL}" -o "${outFile}" detsim.root
if [ $? -ne 0 ]; then echo "Reco failed"; exit 1; fi

# ---- Mark as processed ----
echo "$pfn" > justin-processed-pfns.txt

echo "Job completed successfully."
ls -lh *.root

exit 0
justIN time: 2026-02-10 11:34:00 UTC       justIN version: 01.06.00