#!/bin/csh -f # #setenv WORKDIR /phenix/workarea/enterria/embed #setenv NEVT 1600 # we need Root 2.25-gcc for run00 PISA echo ' ' echo ' Resetting momentarily your ROOTSYS and LD_LIBRARY_PATH variables to ROOT 2.25-gcc2.95' echo ' ' setenv ORIG_ROOTSYS ${ROOTSYS} setenv ORIG_PATH ${PATH} setenv ORIG_LD_LIB ${LD_LIBRARY_PATH} setenv ROOTSYS /opt/phenix/root-2.25.03-gcc-2.95.3 setenv PATH ${ROOTSYS}/bin:/afs/rhic/phenix/PHENIX_LIB/simulation/run00c/playJan25/bin:${PATH} setenv LD_LIBRARY_PATH .:${ROOTSYS}/lib:/phenix/workarea/enterria/simulation/pisa2000-install/lib:/afs/rhic/phenix/PHENIX_LIB/simulation/run00c/playJan25/lib:${LD_LIBRARY_PATH} cd ${WORKDIR} ####################### 2. PISA ####################### echo ' ' echo '**** Creating the PISA hits files for normal arms, zero field (run00b) ****' # Normal arms, zero field simulation cd ${WORKDIR}/run00b_pisa/ foreach DST (`cat ${WORKDIR}/dstlist`) # avoid involuntary deleting an existing pisa hit file if (-f ${WORKDIR}/pisa_files/gam_PISA_run${DST}.root) then echo ${WORKDIR}/pisa_files/gam_PISA_run${DST}.root ' exists already. Skipping it ...' end else ln -sf ${WORKDIR}/oscar_files/gam_run${DST}.oscar oscar.input ./pisa <