Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash -l 
0002 
0003 usage(){ cat << EOU
0004 cxs_debug.sh : simtrace running for sliced geometry 
0005 =====================================================
0006 
0007 See notes/issues/cxsim-shakedown.rst 
0008 
0009 ::
0010 
0011     cx
0012     ./cxs_debug.sh run   # remote 
0013     ./cxs_debug.sh grab  # local 
0014     ./cxs_debug.sh ana   # local python script
0015 
0016     ./cxs_debug.sh pvcap # local pyvista screen captures
0017 
0018     ./cxs_debug.sh # Darwin default is ana  
0019 
0020     PUB=repeated_step_point ./cxs_debug.sh pvpub
0021 
0022     ./cxs_debug.sh mpcap   
0023          # screencapture with window cropping appropriate for matplotlib 
0024 
0025     PUB=yellow_epsilon_looks_appropriate ./cxs_debug.sh mppub   
0026          # copy capture to presentation tree
0027 
0028 
0029 
0030 ::
0031 
0032     from opticks.ana.nbase import np_string  
0033     np_string(x_lpos[-3:,:3].ravel())                                                                                                                                                                                                
0034     Out[5]: '207.807,-50.949,113.643,206.,-44.666,105.551,185.963,124.008,-90.678'
0035 
0036 
0037 EOU
0038 }
0039 
0040 
0041 moi=37684         # flat instance index obtained from cxsim p.py prd debug output of the microstep photon
0042 
0043 #ce_offset=0,-64.59664,0    # -Y shift aligning slice plane with a cxsim photon 0 hit with microsteps 
0044 #ce_offset=209.774,-64.59664,129.752    # center the grid on the microstep points
0045 #ce_offset=209.774,-64.597,129.752,207.807,-50.949,113.643,206.,-44.666,105.551,185.963,124.008,-90.678
0046 
0047 ce_offset=207.807,-50.949,113.643,206.,-44.666,105.551,185.963,124.008,-90.678
0048 
0049 ce_scale=1   
0050 cegs=16:0:9:500 
0051   
0052 gridscale=0.1      # ordinary view covering full extent with grid
0053 #gridscale=0.01
0054 #gridscale=0.001
0055 #gridscale=0.0001   # ultra closeup look 
0056 
0057 export ZOOM=${ZOOM:-2}
0058 export LOOK=209.774,-64.59664,129.752
0059 export LOOKCE=${LOOKCE:-1,0.1,0.01,0.001}
0060 
0061 export NOPVGRID=1 
0062 
0063 # CAP_BASE depends on geometry and thus is set by "source cachegrab.sh env"
0064 export CAP_REL=cxs_debug
0065 export CAP_STEM=cxs_debug_moi${moi}
0066 
0067 #export CSGFoundry_Load_writeAlt=1 
0068 
0069 source ./cxs.sh $*
0070