3 ###########################################################
4 # Submit sbncode LArSoft jobs to the grid.
6 # Note: Please check the OUTDIR path!
8 # Script arguments are passed to "lar"
10 # From Gray Putnam, taken from script by Andy Mastbaum
11 ###########################################################
15 FILELIST=
"sbncode/sbnanalysis/files/$3"
18 OUTDIR=
"/pnfs/sbnd/scratch/users/gputnam/numu-selection/${OUTDIR}"
19 TARDIR=
"/pnfs/sbnd/resilient/users/gputnam/tars"
20 SBNCODE_TAR=
"${TARDIR}/sbncode-selection.tar.gz"
23 LOG=
"${CLUSTER}_${PROCESS}.log"
24 echo
"Running ${0} on ${HOSTNAME}" >>${LOG} 2>&1
25 echo
"Cluster: ${CLUSTER}" >>${LOG} 2>&1
26 echo
"Process: ${PROCESS}" >>${LOG} 2>&1
27 echo
"sbncode: ${SBNCODE_TAR}" >>${LOG} 2>&1
28 echo
"lar options: $@" >>${LOG} 2>&1
35 source /cvmfs/icarus.opensciencegrid.org/products/icarus/setup_icarus.sh
39 # Get sbncode tarball, unpack, and configure
40 ifdh cp -D ${SBNCODE_TAR} . >>${LOG} 2>&1
41 tar xvf $(basename ${SBNCODE_TAR}) >>${LOG} 2>&1
44 export MRB_PROJECT_VERSION=
"v08_30_02"
45 export MRB_QUALS=
"e17:prof"
46 export MRB_TOP=
"${PWD}"
47 export MRB_SOURCE=
"${MRB_TOP}"
49 export PRODUCTS=
"${MRB_INSTALL}:${PRODUCTS}"
51 echo
"local products: $(ups list -aK+ -z .)" >>${LOG} 2>&1
53 mrbsetenv >>${LOG} 2>&1
56 . sbncode/sbnanalysis/
bin/setup_sbnanalysis.sh
59 echo
"Nfiles in list $FILELIST: $NFILES" >>${LOG} 2>&1
60 NRUN=$((($NFILES + $NPROCESSES - 1) / $NPROCESSES))
61 FIRST_FILE=$(($NRUN * $PROCESS))
62 CUT_FILE=$(($NFILES - $FIRST_FILE))
63 THISFILES=`tail -
n $CUT_FILE $FILELIST | head -
n $NRUN`
64 THISFILES=$(
for f
in $THISFILES;
do pnfsToXRootD $f; done)
65 echo
"Processing files: ${THISFILES}" >>${LOG} 2>&1
66 sbn -
m SBNOscReco_NumuReco -c $CONFIG ${THISFILES} >>${LOG} 2>&1
68 LASTROOT=`
ls -t | grep
root | tail -1`
70 # Transfer output files to dCache
71 OUT=
"${CLUSTER}_${PROCESS}"
72 mkdir -
p ${OUT} >>${LOG} 2>&1
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
then setup git exit fi setup gitflow exit export MRB_PROJECT
then echo Invalid dCache scratch not copying back else ifdh ls
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
BEGIN_PROLOG dataFFTHistosEW root
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
stream1 can override from command line with o or output services user sbnd