File indexing completed on 2026-04-09 07:49:04
0001
0002 usage(){ cat << EON
0003 ab.sh
0004 =========
0005
0006 ::
0007
0008 ./ab.sh info
0009 ./ab.sh ab
0010 ./ab.sh recplot
0011
0012 ::
0013
0014 EYE=0,1000,200 LOOK=0,0,200 ./ab.sh recplot
0015
0016 Definititively shows
0017
0018 1. B:blue has the angular virtual Water/Water and A does not : it was skipped
0019 2. A:red PMT top hemi appears to lack a scale transform : looking more circle than ellipsoid
0020
0021
0022 EON
0023 }
0024
0025 A_FOLD=$($OPTICKS_HOME/g4cx/gxs.sh fold)
0026 B_FOLD=$($OPTICKS_HOME/u4/u4s.sh fold)
0027
0028 source $(dirname $BASH_SOURCE)/../bin/COMMON.sh
0029 source $(dirname $BASH_SOURCE)/../bin/AB_FOLD.sh
0030 export A_FOLD
0031 export B_FOLD
0032
0033 ab_defarg="ab"
0034 ab_arg=${1:-$ab_defarg}
0035 stem=${ab_arg}
0036 script=$OPTICKS_HOME/g4cx/tests/$stem.py
0037
0038 vars="BASH_SOURCE OPTICKS_HOME GEOM ab_arg ab_defarg A_FOLD B_FOLD stem script"
0039
0040
0041 if [ "$ab_arg" == "info" ]; then
0042 for var in $vars ; do printf "%20s : %s \n" "$var" "${!var}" ; done
0043 fi
0044
0045 if [ -f "$script" ]; then
0046 ${IPYTHON:-ipython} --pdb -i $script
0047 fi
0048
0049