5 if [ $argssize -ne 1 ];then
9 echo "Usage: ./run_35t_evd.sh {run number - in 6 digit format please!}"
11 echo "To get the most recent run, use run number 0."
20 # Setup necessary pathways:
21 export version=v04_36_01
23 export RelDir=/dune/app/home/duneana/35t_EventDisplay/larsoft_${version}
24 export LPDir=${RelDir}/localProducts_larsoft_${version}_${comp}_prof
25 export EVDfclPath=${RelDir}/srcs/dunetpc/dune/NearlineMonitor/evd
26 export InputPath=/dune/data2/users/lbnedaq/nearline_evd/${version}
27 export FileSearch='/dune/data2/users/lbnedaq/nearline_evd/*/*/*/sliced_pedestal.root'
32 # Set up the LArSoft environment
35 echo "Setting up LArSoft/DUNETPC:"
36 echo "=========================="
38 source /grid/fermiapp/products/dune/setup_dune.sh
49 # Find the most recent file
50 for file in $( find ${FileSearch} -mmin +1 | sort -t "/" -k$filepos -r )
52 # This is a sloppy way of getting only the most recent file but I don't
53 # know how else to do it... ...don't judge me...
58 if [ $run -ne 0 ];then
59 run=`printf %06i $run`
61 file=${InputPath}/${bigRun}/${run}_01/sliced_pedestal.root
70 lar -c ${EVDfclPath}/evd_dune35t_slicer.fcl $file
77 echo "Finished running the 35t EVD..."