Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:29

0001 #!/bin/bash
0002 usage(){ cat << EOU
0003 U4VolumeMakerTest.sh
0004 =====================
0005 
0006 u4t::
0007 
0008    ./U4VolumeMakerTest.sh
0009 
0010 HMM when the GEOM has manager prefix hama/nnvt/hmsk/nmsk
0011 U4VolumeMaker::Make currently assumes the rest of the name
0012 is of an LV.
0013 
0014 EOU
0015 }
0016 
0017 cd $(dirname $(realpath $BASH_SOURCE))
0018 
0019 bin=U4VolumeMakerTest
0020 
0021 arg=${1:-run}
0022 
0023 #geom=BoxOfScintillator  # default
0024 #geom=hama_body_log
0025 #geom=hamaLogicalPMT
0026 #geom=hamaBodyLog
0027 #geom=V1J008
0028 #geom=V1J011
0029 geom=BigWaterPool
0030 
0031 export GEOM=${GEOM:-$geom}
0032 #source $HOME/.opticks/GEOM/GEOM.sh
0033 
0034 origin=$HOME/.opticks/GEOM/$GEOM/origin.gdml
0035 if [ -f "$origin" ]; then
0036    export ${GEOM}_GDMLPath=$origin
0037    export U4VolumeMaker=INFO
0038 fi
0039 
0040 
0041 vv="BASH_SOURCE arg geom GEOM bin"
0042 
0043 if [ "${arg/info}" != "${arg}" ]; then
0044     for v in $vv ; do printf "%20s : %s \n" "$v" "${!v}" ; done
0045 fi
0046 
0047 if [ "${arg/run}" != "${arg}" ]; then
0048     $bin
0049     [ $? -ne 0 ] && echo $BASH_SOURCE run error && exit 1
0050 fi
0051 
0052 if [ "${arg/dbg}" != "${arg}" ]; then
0053     source dbg__.sh
0054     dbg__ $bin
0055     [ $? -ne 0 ] && echo $BASH_SOURCE dbg error && exit 2
0056 fi
0057 
0058 exit 0