example-resolutions.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/bash
  2. INFILE=$1
  3. OUTFILE=$2
  4. DCAFILE=$3
  5. #SBATCH --time=0:15:00
  6. #SBATCH -D /tmp
  7. PROJECT_DIR=/lustre/nyx/hades/user/parfenov/mpd_summer2019/real-flow
  8. TMPDIR=$PROJECT_DIR/TMPRES/TMP_${SLURM_JOB_ID}
  9. mkdir -p $TMPDIR
  10. OUTDIR=${OUTFILE%/*}
  11. AFTERSLASHNAME=${INFILE##*/}
  12. BASENAME=${AFTERSLASHNAME%.*}
  13. LOG=${OUTDIR}/${BASENAME}_rec_calc.OUT
  14. ERR=${OUTDIR}/${BASENAME}_rec_calc.ERR
  15. #. /lustre/nyx/hades/user/parfenov/Soft/MPDRoot/build/config.sh
  16. #source /cvmfs/hades.gsi.de/install/5.34.34/hydra2-4.9n/defall.sh
  17. cp $PROJECT_DIR/utility.C $TMPDIR
  18. cp $PROJECT_DIR/utility.h $TMPDIR
  19. cp $PROJECT_DIR/MpdCalculator.C $TMPDIR
  20. cp $PROJECT_DIR/MpdCalculator.h $TMPDIR
  21. cp $PROJECT_DIR/main_resolutions.C $TMPDIR
  22. cp $PROJECT_DIR/compile.sh $TMPDIR
  23. cp $PROJECT_DIR/SpecFuncMathMore.h $TMPDIR
  24. cp $PROJECT_DIR/example-resolutions.sh $TMPDIR
  25. cd $TMPDIR
  26. ls 1>$LOG 2>$ERR
  27. . compile.sh 1>> $LOG 2>> $ERR
  28. ls >> $LOG
  29. root -l -b -q 'main_resolutions.C+("'${INFILE}'","'${OUTFILE}'","'${DCAFILE}'")' 1>> $LOG 2>> $ERR
  30. cd $PROJECT_DIR
  31. rm -rf $TMPDIR
  32. #mv ${BASENAME}_res_out.root OUTDIR/.