justIN           Dashboard       Workflows       Jobs       AWT       Sites       Storages       Docs       Login

Workflow 6145, Stage 1

Priority50
Processors1
Wall seconds80000
Image/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
RSS bytes2096103424 (1999 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, ES_CIEMAT, ES_PIC, FR_CCIN2P3, IN_TIFR, IT_CNAF, 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_Caltech, US_Colorado, US_FNAL-FermiGrid, US_FNAL-T1, US_Michigan, US_MIT, US_Nebraska, 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
1https://fndcadoor.fnal.gov:2880/dune/scratch/users/calcuttj/beamevent/040725/pdhd_runs_1_gain78_period3/06145/1*.h5

Environment variables

NameValue
DUNE_VERSIONv10_04_05d00
FCL_FILErun_pdhd_trigger_timing.fcl
INPUT_DIR/cvmfs/fifeuser4.opensciencegrid.org/sw/dune/d5f4ec0a3e82cd28de716fb2c92390a8a0dc7a8b
NEVENTS-1

File states

Total filesFindingUnallocatedAllocatedOutputtingProcessedNot foundFailed
1000055001300448700

Job states

TotalSubmittedStartedProcessingOutputtingFinishedNotusedAbortedStalledJobscript errorOutputting failedNone processed
58610000539102626801688
Files processed0010010020020030030040040050050060060070070080080090090010001000Apr-08 17:00Apr-08 19:00Apr-08 21:00Apr-08 23:00Apr-09 01:00Apr-09 03:00Apr-09 05:00Apr-09 07:00Apr-09 09:00Apr-09 11:00Apr-09 13:00Apr-09 15:00Apr-09 17:00Apr-09 19:00Files processedBin start timesNumber per binUK_BrunelUK_RAL-PPDCERNFR_CCIN2P3ES_PICES_CIEMATUK_ImperialUK_SheffieldCH_UNIBE-LHEPUK_RAL-Tier1UK_QMULUK_DurhamUK_ManchesterUK_GlasgowUK_BristolUK_EdinburghUK_LiverpoolUK_Oxford
Replicas per RSE4500490.025244.54500269.975244.50000000000003Replicas per RSEFNAL_DCACHE (50%)DUNE_CERN_EOS (50%)

RSEs used

NameInputsOutputs
DUNE_CERN_EOS46900
None04487

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
UK_Manchester319
UK_Sheffield35
UK_Glasgow38
UK_RAL-Tier1142
UK_QMUL030
CERN027
UK_Imperial015
ES_PIC011
ES_CIEMAT09
UK_Oxford08
FR_CCIN2P306
UK_RAL-PPD05
CH_UNIBE-LHEP04
UK_Bristol02
UK_Liverpool01
UK_Edinburgh01

Jobscript

#!/bin/bash
#

#These must be defined
if [ -z $FCL_FILE ]; then
  echo "Fatal Must provide FCL_FILE env var"
  exit 1
fi

if [ -z $INPUT_DIR ]; then
  echo "Fatal Must provide INPUT_DIR env var"
  exit 1
fi

stat ${INPUT_DIR}
if [ $? -ne 0 ]; then
  echo "Failed to $INPUT_DIR. Exiting safely"
  exit 0
fi



source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh
setup metacat
export METACAT_SERVER_URL=https://metacat.fnal.gov:9443/dune_meta_prod/app
export METACAT_AUTH_SERVER_URL=https://metacat.fnal.gov:8143/auth/dune

if [ -n "$PRODUCTS_TAR" ]; then
  stat ${PRODUCTS_TAR}
  if [ $? -ne 0 ]; then
    echo "Failed to stat $PRODUCTS_TAR. Exiting safely"
    exit 0
  fi

  export PRODUCTS=$PRODUCTS_TAR:$PRODUCTS 
  echo "Set protoduneana to $PRODUCTS_TAR"
fi


#Setup recent lar software suite
DUNE_VERSION=${DUNE_VERSION:-v10_01_01d00}
setup dunesw \
   "${DUNE_VERSION}" \
   -q "${DUNE_QUALIFIER:-e26:prof}"

setup_exit=$?
if [ $? -ne 0 ]; then
  echo "Failed to setup dunesw $DUNE_VERSION $DUNE_QUALIFIER"
  exit $setup_exit
fi


echo "DUNESW loc:"
ups active | grep dunesw

if [ -z ${JUSTIN_PROCESSORS} ]; then
  JUSTIN_PROCESSORS=1
fi

echo "Justin processors: ${JUSTIN_PROCESSORS}"

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}  

pip install --user h5py
pipexit=$?
if [ $pipexit -ne 0 ]; then
  echo "Failed to install h5py"
  exit $pipexit
fi


export PYTHONPATH=$INPUT_DIR/gallery/python:$PYTHONPATH

echo "printing env"
env

echo "Justin specific env vars"
env | grep JUSTIN

echo "Will use justin-get-file"
#


echo "Will use justin-get-file"
DID_PFN_RSE=`$JUSTIN_PATH/justin-get-file`
if [ "${DID_PFN_RSE}" == "" ] ; then
  echo "Could not get file"
  exit 0
fi
pfn=`echo ${DID_PFN_RSE} | cut -f2 -d' '`
did=`echo ${DID_PFN_RSE} | cut -f1 -d' '`

now=$(date -u +"%Y%m%dT%H%M%SZ")

##TODO -- edit this
#jobid=`echo "${JUSTIN_JOBSUB_ID:-1}" | awk -F '.' '{print $1}'`
jobid=`echo "${JUSTIN_JOBSUB_ID:-1}" | cut -f1 -d'@' | sed -e "s/\./_/"`
PREFIX=${PREFIX:-"decoded"}
OUTFILE="${PREFIX}_${jobid}_${JUSTIN_STAGE_ID}_${JUSTIN_WORKFLOW_ID}_${now}.root"


nevents=${NEVENTS:--1}

echo "Running lar on $pfn"
touch ana.log
starttime=`date +"%s"`.0
LD_PRELOAD=$XROOTD_LIB/libXrdPosixPreload.so lar \
    -c ${FCL_FILE} \
    -n ${nevents} \
    -o ${OUTFILE} \
    $pfn  >ana.log 2>&1
larExit=$?
endtime=`date +"%s"`.0

if [ $larExit -ne 0 ]; then
  echo "Error in lar"
  cat ana.log
  exit $larExit
fi

python -m trigger_info -i $OUTFILE
trig_exit=$?
if [ $trig_exit -ne 0 ]; then
  echo "Error in trigger_info"
  exit $trig_exit
fi
echo "Ran successfully"

echo "formed"
echo $pfn > justin-processed-pfns.txt
justIN time: 2025-05-22 23:01:48 UTC       justIN version: 01.03.01