Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/bin/bash -l 
0002 
0003 msg="=== $BASH_SOURCE :"
0004 name=U4Debug_Test
0005 fold=$TMP/U4Debug 
0006 
0007 export U4Debug_SaveDir=$fold
0008 export FOLD0=$fold/z000
0009 export FOLD1=$fold/p001
0010 
0011 export U4Scintillation_Debug=INFO
0012 export U4Cerenkov_Debug=INFO
0013 export U4Hit_Debug=INFO
0014 export U4Debug=INFO
0015 
0016 
0017 arg=${1:-run_ana}
0018 
0019 if [ "${arg/run}" != "$arg" ]; then 
0020    $name
0021    [ $? -ne 0 ] && echo $msg run error && exit 1 
0022 fi 
0023 
0024 if [ "${arg/ana}" != "$arg" ]; then 
0025    ${IPYTHON:-ipython} --pdb -i $name.py 
0026    [ $? -ne 0 ] && echo $msg ana error && exit 2 
0027 fi 
0028 
0029 exit 0 
0030