3 echo "PPFX_DIR= $PPFX_DIR"
6 echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
8 echo "_CONDOR_SCRATCH_DIR=$_CONDOR_SCRATCH_DIR"
9 cd $_CONDOR_SCRATCH_DIR
13 echo "OUTFILE= $OUTFILE"
14 echo "INFILES= $INFILES"
16 #echo "CUTMIPP= $CUTMIPP"
17 #echo "CUTNA49= $CUTNA49"
19 echo "Now preparing to copy files"
20 echo "ls of the local working directory:"
23 echo "cat of the input file list:"
24 cat $CONDOR_DIR_INPUT/rwgt_file_list.txt
26 #echo "List of INFILES"
30 #ifdh cp -D $INFILES $_CONDOR_SCRATCH_DIR/inputs
31 echo "Making an inputs subdirectory and copying into it"
34 ifdh cp -f $CONDOR_DIR_INPUT/rwgt_file_list.txt
36 for f in `cat rwgt_file_list.txt`; do
42 echo "List of the inputs subdirectory=$_CONDOR_SCRATCH_DIR/inputs"
43 echo "The list follows: "
44 echo ls -l $_CONDOR_SCRATCH_DIR/inputs
46 #$PPFX_DIR/bin/CreateIMapHists $OUTFILE "inputs/*.root" $ELOW $EHIGH $INU $CUTNA49 $CUTMIPP #The actual comand we are executing
48 for f in `ls $_CONDOR_SCRATCH_DIR/inputs/*.root`; do
49 FOUT="out_"`basename $f`
50 $PPFX_DIR/bin/doReweight_dk2nu $f $FOUT $PPFX_DIR/scripts/inputs_default.xml
53 echo "ls -lh on working directory:"
55 echo "Copying files to $CONDOR_DIR_RWGT"
56 cp out_* $CONDOR_DIR_RWGT
57 cp $_CONDOR_SCRATCH_DIR/inputs/f_* $CONDOR_DIR_RWGT
59 echo "Contents of CONDOR_DIR_RWGT=$CONDOR_DIR_RWGT are"