5 if [ $argssize -ne 1 ];then
9 echo "Usage: ./run_RED35_evd.sh {run number - in 6 digit format please!}"
11 echo "To get the most recent run, use run number 0."
21 # Setup necessary pathways:
22 export version=v04_35_00
24 export RelDir=/dune/app/home/duneana/35t_EventDisplay/larsoft_${version}
25 export LPDir=${RelDir}/localProducts_larsoft_${version}_${comp}_prof
26 export RED35Dir=/dune/app/home/duneana/35t_EventDisplay/RED35
27 export InputPath=/dune/data2/users/lbnedaq/nearline_evd/${version}
28 export FileSearch='/dune/data2/users/lbnedaq/nearline_evd/*/*/*/sample_done.root'
32 # Set up the LArSoft environment
35 echo "Using ROOT provided by LArSoft and DUNETPC (we don't actually use these two):"
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
60 file=${InputPath}/${bigRun}/${run}_01/sample_done.root
70 root -l run2d.C\(\"$file\"\)
76 echo "Finished running the RED35 EVD..."