Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash
0002 
0003 usage(){ cat << EOU
0004 input_photons_plt.sh
0005 =====================
0006 
0007 ::
0008 
0009    ~/o/ana/input_photons.sh    # generate the input photons
0010    ~/o/ana/input_photons_plt.sh
0011 
0012 EOU
0013 }
0014 
0015 cd $(dirname $(realpath $BASH_SOURCE))
0016 
0017 script=input_photons_plt.py
0018 
0019 
0020 #stem=RandomSpherical100
0021 #stem=RandomDisc100
0022 #stem=UniformDisc_R500_10k
0023 #stem=GridXY_X700_Z230_10k
0024 #stem=GridXY_X1000_Z1000_40k
0025 #stem=UpXZ1000
0026 #stem=DownXZ1000
0027 #stem=RainXZ1000
0028 #stem=RainXZ_Z230_1000
0029 
0030 #stem=CircleXZ_R500_100k
0031 #stem=CircleXZ_R10_361
0032 stem=SemiCircleXZ_R-500_100k
0033 
0034 #sufx=_f4
0035 sufx=_f8
0036 
0037 STEM=${STEM:-$stem}
0038 
0039 
0040 path=${STEM}${sufx}.npy
0041 
0042 mode=3
0043 export MODE=${MODE:-$mode}
0044 export OPTICKS_INPUT_PHOTON=${OPTICKS_INPUT_PHOTON:-$path}
0045 
0046 
0047 ${IPYTHON:-ipython} --pdb -i $script -- $*
0048 
0049 
0050 
0051