Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:59

0001 #!/bin/bash -l 
0002 usage(){ cat << EOU
0003 nmskSolidMaskVirtual.sh
0004 =========================
0005 
0006 With the nudging, currently ON by default, see sprinkle along z=98 and nothing along z=0, and clear geometry changed "shoulder"::
0007 
0008     ./nmskSolidMaskVirtual.sh withnudge_ct_ana
0009     ./nmskSolidMaskVirtual.sh ana
0010 
0011 Disabling nudging get very clear coincidence lines at z=97 and z=0::
0012 
0013     ./nmskSolidMaskVirtual.sh skipnudge_ct_ana
0014     ./nmskSolidMaskVirtual.sh ana
0015 
0016 After running eg skipnudge_ct the ana appearance will stay the same 
0017 until running eg withnudge_ct 
0018 
0019 Rerun a simtrace_sample.npy array of problem rays saved from "ana"::
0020 
0021     ./nmskSolidMaskVirtual.sh sample
0022 
0023 
0024 EOU
0025 }
0026 
0027 defarg=withnudge_ct_ana
0028 #defarg=skipnudge_ct_ana
0029 
0030 arg=${1:-$defarg}
0031 
0032 #export ZZ=0,97,98,291.1
0033 #export XX=0
0034 export GEOM=nmskSolidMaskVirtual
0035 
0036 focus=-264,98,10
0037 #export FOCUS=${FOCUS:-$focus}
0038 
0039 loglevels(){
0040     export GeoChain=INFO
0041     export SArgs=INFO
0042     export ncylinder=INFO
0043 }
0044 loglevels
0045 
0046 
0047 if [ "${arg/withnudge}" != "$arg" ]; then 
0048    $(dirname $BASH_SOURCE)/../GeoChain/translate.sh
0049    [ $? -ne 0 ] && echo $BASH_SOURCE withnudge translate error && exit 1 
0050 fi 
0051 if [ "${arg/skipnudge}" != "$arg" ]; then 
0052    OPTICKS_OPTS="--x4nudgeskip 0" $(dirname $BASH_SOURCE)/../GeoChain/translate.sh
0053    [ $? -ne 0 ] && echo $BASH_SOURCE skipnudge translate error && exit 1 
0054 fi 
0055 if [ "${arg/ct}" != "$arg" ]; then 
0056    $(dirname $BASH_SOURCE)/../CSG/ct.sh run
0057    [ $? -ne 0 ] && echo $BASH_SOURCE run error && exit 2 
0058 fi 
0059 if [ "${arg/ana}" != "$arg" ]; then 
0060    $(dirname $BASH_SOURCE)/../CSG/ct.sh ana
0061    [ $? -ne 0 ] && echo $BASH_SOURCE ana error && exit 3 
0062 fi 
0063 if [ "mpcap" == "$arg" ]; then 
0064    $(dirname $BASH_SOURCE)/../CSG/ct.sh mpcap
0065    [ $? -ne 0 ] && echo $BASH_SOURCE mpcap error && exit 3 
0066 fi 
0067 if [ "mppub" == "$arg" ]; then 
0068    $(dirname $BASH_SOURCE)/../CSG/ct.sh mppub
0069    [ $? -ne 0 ] && echo $BASH_SOURCE mppub error && exit 3 
0070 fi 
0071 
0072 
0073 if [ "${arg/unx}" != "$arg" ]; then 
0074    c
0075    XDIST=500 NOLEGEND=1 UNEXPECTED=1 ./ct.sh ana
0076    [ $? -ne 0 ] && echo $BASH_SOURCE unx error && exit 3 
0077 fi 
0078 
0079 if [ "${arg/sample}" != "$arg" ]; then 
0080    c 
0081    ./CSGSimtraceSampleTest.sh 
0082 fi
0083 
0084 
0085 
0086 
0087 
0088 exit 0 
0089