File indexing completed on 2026-04-09 07:49:02
0001
0002 usage(){ cat << EOU
0003 cxs_min_scan.sh
0004 =================
0005
0006 This does single event runs with OPTICKS_MAX_BOUNCE varied
0007 from from 0 to 31 with corresponding OPTICKS_START_INDEX
0008 such that the actually separate runs are all written
0009 into a common "run" folder without overwriting event folds.
0010
0011 The run_meta.txt is however overwritten, so used "meta"
0012 command to copy that into the event folder. But thats in
0013 the wrong place so would need special casing to use that
0014 metadata.
0015
0016 How to create plots of launch time vs MAX_BOUNCE
0017 -------------------------------------------------------
0018
0019 ::
0020
0021 ~/opticks/CSGOptiX/cxs_min_scan.sh
0022 vi ~/opticks/notes/issues/OPTICKS_MAX_BOUNCE_scanning.rst
0023
0024 Workstation::
0025
0026 ~/opticks/cxs_min_scan.sh
0027
0028 Laptop::
0029
0030 ~/opticks/cxs_min.sh grab
0031 PLOT=Substamp_ONE_maxb_scan PICK=A ~/opticks/sreport.sh
0032 PLOT=Substamp_ONE_maxb_scan PICK=A ~/opticks/sreport.sh mpcap
0033 PLOT=Substamp_ONE_maxb_scan PICK=A PUB=expensive_tail ~/opticks/sreport.sh mppub
0034
0035 EOU
0036 }
0037
0038 SOURCE=$([ -L $BASH_SOURCE ] && readlink $BASH_SOURCE || echo $BASH_SOURCE)
0039 SDIR=$(cd $(dirname $SOURCE) && pwd)
0040 script=$SDIR/cxs_min.sh
0041
0042 export OPTICKS_SCANNER=$SOURCE
0043 export OPTICKS_RUNNING_MODE=SRM_TORCH
0044 export OPTICKS_NUM_EVENT=1
0045 export OPTICKS_NUM_PHOTON=H1
0046
0047 ii=$(seq 0 31)
0048 for i in $ii ; do
0049 echo $BASH_SOURCE : i $i
0050 export OPTICKS_MAX_BOUNCE=$i
0051 export OPTICKS_START_INDEX=$i
0052 export OPTICKS_SCAN_INDEX=A$(printf "%0.3d" $i)
0053 $script run_meta
0054 [ $? -ne 0 ] && echo $BASH_SOURCE : ERROR RUNNING SCRIPT $script && exit 1
0055 done
0056
0057 exit 0
0058