justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 12080, Stage 4

Workflow12080
Campaign479
Priority50
Processors1
Wall seconds28800
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes4194304000 (4000 MiB)
Max distance for inputs30.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, CA_Victoria, 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_Imperial, UK_Lancaster, UK_Liverpool, UK_Manchester, UK_Oxford, UK_QMUL, UK_RAL-PPD, UK_RAL-Tier1, UK_Sheffield, US_BNL, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_NotreDame, 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
1Rucio usertests:fnal-w12080s4p1*_reco.root7776000FalseDUNE_US_FNAL_DISK_STAGE
2Rucio usertests:fnal-w12080s4p2*_larcv.root7776000FalseDUNE_US_FNAL_DISK_STAGE

Environment variables

NameValue
JOB_FHICL_FILEstandard_mythical_supera_dune10kt_1x2x6.fcl

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
699004006960026

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
192630000167523202735212360
Files processed001001002002003003004004005005006006007007008008009009001000100011001100Jan-18 21:00Jan-18 22:00Jan-18 23:00Jan-19 00:00Jan-19 01:00Jan-19 02:00Jan-19 03:00Jan-19 04:00Jan-19 05:00Jan-19 06:00Jan-19 07:00Jan-19 08:00Jan-19 09:00Jan-19 10:00Jan-19 11:00Jan-19 12:00Jan-19 13:00Jan-19 14:00Jan-19 15:00Jan-19 16:00Jan-19 17:00Jan-19 18:00Files processedBin start timesNumber per binCZ_FZUUS_FNAL-FermiG…US_FNAL-FermiGridCERNNL_SURFsaraUK_EdinburghUK_OxfordUK_SheffieldCA_SFUUK_RAL-Tier1NL_NIKHEFUK_RAL-PPDFR_CCIN2P3US_UChicagoUK_ImperialIT_CNAFUK_QMULUK_LancasterES_PICUS_UCSDUK_BrunelUS_BNL
Replicas per RSE1912456.17611341778377157.83014108770341348453.3345829933955292.3285519401999768366.5698823365033323.17428236282734587311.96646645194863297.57272735606654553284.38948285724257254.70832640008888451280.35002287808777209.89071329560704396292.54012992505955173.84013943359759266310.9410720850606150.382320193819227328.69814649636794136.9930612488693207346.4380277894152128.6900604032682145361.7939014163548124.5865600670839571371.4669922850375123.2876334760205732376.11355034002685123.0001187361870827378.7795616570918122.93240504391505Replicas per RSEDUNE_US_BNL_SDCC (2…DUNE_US_BNL_SDCC (27%)DUNE_US_FNAL_DISK_S…DUNE_US_FNAL_DISK_STAGE (19%)PRAGUE (10%)NIKHEF (8%)DUNE_UK_MANCHESTER_…DUNE_UK_MANCHESTER_CEPH (7%)DUNE_IT_INFN_CNAF (…DUNE_IT_INFN_CNAF (6%)RAL-PP (5%)RAL_ECHO (3%)QMUL (3%)DUNE_CA_SFU (2%)DUNE_FR_CCIN2P3_DIS…DUNE_FR_CCIN2P3_DISK (2%)DUNE_CERN_EOS (1%)DUNE_UK_LANCASTER_C…DUNE_UK_LANCASTER_CEPH (0%)DUNE_ES_PIC (0%)

RSEs used

NameInputsOutputs
DUNE_US_BNL_SDCC21652634
DUNE_US_FNAL_DISK_STAGE13673744
PRAGUE768860
NIKHEF5951968
DUNE_UK_MANCHESTER_CEPH5631013
DUNE_IT_INFN_CNAF459316
RAL-PP396534
DUNE_CA_SFU346516
RAL_ECHO271980
QMUL251815
DUNE_FR_CCIN2P3_DISK145378
DUNE_CERN_EOS7168
DUNE_UK_LANCASTER_CEPH3268
DUNE_ES_PIC3026

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
CA_SFU3307
US_UCSD70
US_FNAL-FermiGrid70
NL_NIKHEF60
US_UChicago50
ES_PIC30
UK_Imperial10
UK_RAL-Tier110
US_BNL10
UK_QMUL10
CZ_FZU10

Jobscript

#!/bin/bash
#set -euo pipefail

echo "=== RECO job starting ==="
echo "Host: $(hostname)"
echo "PWD(cmd): $(/bin/pwd -P || pwd || true)"
echo "PWD(var): ${PWD:-unset}"
echo "JUSTIN_PATH=${JUSTIN_PATH:-unset}"
echo "JUSTIN_INPUT_FILE=${JUSTIN_INPUT_FILE:-unset}"

# ----------------------------------------------------------------------
# Allocate the input file via justIN (robust)
# ----------------------------------------------------------------------
if [[ -z "${JUSTIN_PATH:-}" ]]; then
  echo "ERROR: JUSTIN_PATH is not set (not running under justIN wrapper?)"
  exit 2
fi

alloc="$("$JUSTIN_PATH/justin-get-file")"
if [[ -z "$alloc" ]]; then
  echo "No more inputs allocated for this stage; exiting cleanly."
  exit 0
fi

did="$(echo "$alloc" | awk '{print $1}')"
pfn="$(echo "$alloc" | awk '{print $2}')"
rse="$(echo "$alloc" | awk '{print $3}')"
echo "Allocated input: did=$did pfn=$pfn rse=$rse"

INPUT_DETSIM="${pfn:-}"
if [[ -z "${INPUT_DETSIM}" ]]; then
  echo "ERROR: allocator returned empty PFN"
  exit 3
fi

echo "G4 input file: ${INPUT_DETSIM}"

# Output value of expected input environment variables
echo "fhicl file: ${JOB_FHICL_FILE}"

# Work in the sandbox
cd $PWD

# ----------------------------------------------------------------------
# Grab the tarball that has our fhicl files we'll need
# ----------------------------------------------------------------------
FCL_TGZ_URL="https://raw.githubusercontent.com/SFBayLaser/dune-justin/main/bundles/fhicl_bundle.tgz"
curl -L -o fhicl_bundle.tgz "$FCL_TGZ_URL"
tar xzf fhicl_bundle.tgz

# ----------------------------------------------------------------------
# Environment setup
# ----------------------------------------------------------------------
echo "Sourcing DUNE setup..."
#set +u
source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
#set -u

setup dunesw v10_16_00d00 -q e26:prof

ups active
lar --version

# ----------------------------------------------------------------------
# Point fhicl to our local files
# ----------------------------------------------------------------------
export FHICL_FILE_PATH="$PWD/fhicl:${FHICL_FILE_PATH:-.}"

# ----------------------------------------------------------------------
# Run Reco
# ----------------------------------------------------------------------
FCL=${JOB_FHICL_FILE}

# Output filename derived from input (your preferred convention)
INBASE="$(basename "${INPUT_DETSIM}" .root)"
OUTFILE="${INBASE}_reco.root"

echo "Running lar DETSIM:"
echo "  FCL:     ${FCL}"
echo "  Input:   ${INPUT_DETSIM}"
echo "  Output:  ${OUTFILE}"

lar -c "${FCL}" -s "${INPUT_DETSIM}" -o "${OUTFILE}" -n -1

# ----------------------------------------------------------------------
# rename larcv file
# ----------------------------------------------------------------------
LARCVNAME="${INBASE}_reco_larcv.root"
mv -v larcv.root "${LARCVNAME}"

# ----------------------------------------------------------------------
# Sanity checks
# ----------------------------------------------------------------------
test -f "${OUTFILE}" || { echo "ERROR: Output file ${OUTFILE} not produced!"; exit 1; }
test -f "${LARCVNAME}" || { echo "ERROR: Output file ${LARCVNAME} not produced!"; exit 1; }

echo "Sandbox folder contains:"
ls -lh $PWD

# ----------------------------------------------------------------------
# Tell justIN we successfully processed the allocated input
# ----------------------------------------------------------------------
echo "$did" >> justin-processed-dids.txt
echo "Wrote processed DID: $did"

echo "=== RECOjob completed successfully ==="
justIN time: 2026-02-04 04:26:00 UTC       justIN version: 01.06.00