4 echo "======== cd to CONDOR_DIR_INPUT ========"
9 echo "======== ls ========"
13 echo "======== UNTARRING... ========"
14 tar xvfz local_install.tar.gz -C ./ > /dev/null
17 echo "======== Done untarring. ls ========"
21 echo "======== SETUP ROOT, BOOST and DK2NU ========"
22 echo "source setup_for_grid.sh"
23 source setup_for_grid.sh
26 echo "======== UPDATE g4numi run number to select input ========"
27 NAME_FILE="g4numiv6_minervame_${BEAMCONFIG}_\${PROCESS}_0006.root"
28 INPUT_FILE="${IN_DIR}/${BEAMCONFIG}/${NAME_FILE}"
29 ifdh cp "${INPUT_FILE}" "$CONDOR_DIR_INPUT/"
32 OUTPUT_FILE="ppfx_${BEAMCONFIG}_run\${PROCESS}.root"
34 echo "BEAMCONFIG=${BEAMCONFIG}"
35 echo "PROCESS=$PROCESS"
36 echo "OUTFILE=$OUTPUT_FILE"
39 echo "======== EXECUTING ppfx ========"
40 echo "bin/doReweight_dk2nu_original ${NAME_FILE} ${OUTPUT_FILE} ${INPUT_OPTIONS} ${IDET}"
41 bin/doReweight_dk2nu_original "${NAME_FILE}" "${OUTPUT_FILE}" "${INPUT_OPTIONS}" "${IDET}"
44 echo "Moving output to CONDOR_DIR_PPFX: "
45 echo "=> CONDOR_DIR_PPFX: $CONDOR_DIR_PPFX"
47 mv ppfx*.root $CONDOR_DIR_PPFX