Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:30

0001 #!/bin/bash
0002 usage(){ cat << EOU
0003 SABTest.sh : A-B comparison of persisted Opticks SEvt
0004 ========================================================
0005 
0006 A:B comparison of SEvt and plotting is currently done by very 
0007 many Opticks scripts. Aims of SABTest.sh:
0008 
0009 1. replace most of the other A-B comparisons to decrease duplication
0010 2. work from release, ie do not depend on having source tree
0011 
0012 Started from ~/j/InputPhotonsCheck/InputPhotonsCheck.sh
0013 
0014 EOU
0015 }
0016 
0017 vv="BASH_SOURCE"
0018 source $HOME/.opticks/GEOM/GEOM.sh
0019 vv="$vv GEOM"
0020 source $HOME/.opticks/GEOM/EVT.sh    
0021 vv="$vv AFOLD BFOLD"
0022 
0023 anascript=SABTest.py
0024 
0025 defarg="info_ls_pdb"
0026 arg=${1:-$defarg}
0027 
0028 if [ "${arg/info}" != "$arg" ]; then
0029     for v in $vv ; do printf "%30s :  %s\n" "$v" "${!v}" ; done
0030 fi
0031 
0032 if [ "${arg/ls}" != "$arg" ]; then
0033     ff="AFOLD BFOLD"
0034     for f in $ff ; do echo $f ${!f} && ls -alst ${!f} ; done
0035 fi
0036 
0037 if [ "${arg/pdb}" != "$arg" ]; then
0038    ${IPYTHON:-ipython} --pdb -i $(which $anascript)
0039    [ $? -ne 0 ] && echo $BASH_SOURCE pdb error
0040 fi
0041 
0042 if [ "${arg/ana}" != "$arg" ]; then
0043    ${PYTHON:-python} $(which $anascript)
0044    [ $? -ne 0 ] && echo $BASH_SOURCE ana error
0045 fi
0046 
0047 if [ "${arg/chi2}" != "$arg" ] ; then
0048    sseq_index_test.sh info_run_ana
0049 fi
0050 
0051 if [ "${arg/dhi2}" != "$arg" ] ; then
0052    # development version of "chi2"
0053    unset sseq_index_test__DEBUG
0054    #export sseq_index_test__DEBUG=1
0055    DEV=1 $HOME/opticks/sysrap/tests/sseq_index_test.sh info_build_run_ana
0056 fi
0057 
0058