#!/bin/csh -f # #setenv WORKDIR /phenix/workarea/enterria/embed #setenv NEVT 1600 ####################### 3. RESPONSE ####################### echo ' ' echo '**** Creating the simulated PRDF files ****' setenv OO_FD_BOOT ${PHENIX_FD_BOOT} # database access for some subsystems respo cd ${WORKDIR}/respo foreach DST (`cat ${WORKDIR}/dstlist`) # avoid involuntary deleting an existing prdf if (-f ${WORKDIR}/prdf_files/gam_run${DST}.prdf) then echo ${WORKDIR}/prdf_files/gam_run${DST}.prdf ' exists already. Skipping it ..' end else # get the run number only out of file record setenv runnum `echo ${DST} | awk -F- '{print $1}'` #set runnum = (` awk -F- '{print $1}' ${WORKDIR}/dstlist `) # rip off the zero of run number below 10000 (otherwise interpreted as octal number) if (${runnum}<10000) setenv runnum `echo ${runnum} | awk -F0 '{print $2}'` echo 'run number assigned to simul prdf is: ' ${runnum} root -b <