# Last edited on 1999-08-31 15:37:54 by hcgl === run-PZCurvHistograms ================================================== set borders = 0 set corners = 0 set chainDir = "." while ( ( $#argv > 0 ) && ( "/$1" =~ /-* ) ) if ( ( $#argv >= 2 ) && ( "x$1" == "x-chainDir" ) ) then set chainDir = "$2"; shift; shift; else if ( ( $#argv >= 2 ) && ( "x$1" == "x-borderSegTag" ) ) then set borders = 1; set borderSegTag = "$2"; shift; shift; else if ( ( $#argv >= 2 ) && ( "x$1" == "x-cornerSegTag" ) ) then set corners = 1; set cornerSegTag = "$2"; shift; shift; else echo "usage: ${usage}"; exit 1 endif end ... # Prepare segment exclusion options set segOpts = ( ) if ( $borders ) then set segOpts = ( ${segOpts} -borderSegs RUN-${run}/f${band}-${borderSegTag} ) endif if ( $corners ) then set segOpts = ( ${segOpts} -cornerSegs RUN-${run}/f${band}-${cornerSegTag} ) endif # Concatenate input curves, each preceded by the curve identification set tmpFile = "/tmp/$$.fcv" /bin/rm -f ${tmpFile} set fcvFiles = ( `cd ${chainDir} && ls 00??/f${band}.fcv | head -${maxCurves}` ) foreach f ( $fcvFiles ) echo $f echo "curve = ${f:h}" >> ${tmpFile} cat ${chainDir}/$f >> ${tmpFile} end