Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash -l
0002 usage(){ cat << EOU
0003 ct_chk.sh
0004 ===========
0005 
0006 Normally environment setup us mostly done by ../bin/GEOM_.sh 
0007 but here doing it manually as check of what depends on what.
0008 
0009 EOU
0010 }
0011 
0012 arg=${1:-run}
0013 bin=CSGSimtraceTest
0014 
0015 loglevels()
0016 {
0017    export CSGSimtrace=INFO
0018    export CSGFoundry=INFO
0019 }
0020 loglevels
0021 
0022 
0023 export GEOM=nmskSolidMask__U1   # needed by both run and ana 
0024 
0025 
0026 if [ "$arg" == "run" ]; then
0027 
0028     export ${GEOM}_CFBaseFromGEOM=/tmp/$USER/opticks/GEOM/$GEOM
0029 
0030     $bin
0031     [ $? -ne 0 ] && echo $BASH_SOURCE run error && exit 1 
0032 fi
0033 
0034 if [ "$arg" == "ana" ]; then
0035 
0036     export FOLD=/tmp/$USER/opticks/GEOM/$GEOM/$bin/ALL
0037 
0038     ${IPYTHON:-ipython} --pdb -i $(dirname $BASH_SOURCE)/tests/$bin.py
0039     [ $? -ne 0 ] && echo $BASH_SOURCE ana error && exit 2 
0040 fi 
0041 
0042 exit 0 
0043