Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash -l 
0002 
0003 usage(){ cat << EOU
0004 ab.sh
0005 ======
0006 
0007 ::
0008 
0009    ab.sh 1 --nocompare   # early stage debugging 
0010 
0011    ab.sh 1 
0012    ab.sh 2
0013 
0014    PFX=tds3ip ab.sh 1 
0015 
0016 
0017 EOU
0018 }
0019 
0020 
0021 cat="g4live"
0022 det="det"
0023 src="natural"
0024 pfx=${PFX:-source}
0025 
0026 tag=${1:-1}
0027 shift 
0028 
0029 export OPTICKS_ANA_DEFAULTS="src=$src,cat=$cat,det=$det,tag=$tag,pfx=$pfx"
0030 
0031 #dscript=evt.py
0032 #dscript=abs.py 
0033 #dscript=profile_.py 
0034 dscript=ab.py 
0035 script=${SCRIPT:-$dscript}
0036 
0037 cd ~/opticks/ana
0038 
0039 cmd="${IPYTHON:-ipython} -i --pdb $(which $script) -- $*"
0040 echo $cmd
0041 eval $cmd
0042 
0043