#! /bin/csh -f
# Last edited on 1999-11-11 23:26:22 by hcgl

echo "=== begin $0 =========" 

set usage = "$0 RUN BAND TAG"

if ( $#argv != 3 ) then
  echo "usage: ${usage}"; exit 1
endif

set run = "$1"; shift
set band = "$1"; shift
source RUN-${run}/f${band}.parms
set tag = "$1"; shift

echo "step = ${step}"

set inname = "BY-HAND/f${band}-${tag}"
set outname = "BY-HAND/f${band}-${tag}-cv"

echo "Converting ${inname}.txt to ${outname}.can"

PZConvertSyntheticCands \
  -input ${inname} \
  -chainDir . -chainPrefix f \
  -band ${band} -step ${step} \
  -output ${outname}  

echo "wrote ${outname}.can"

echo "=== end $0 =========" 

