start_converter.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/bin/bash
  2. #
  3. #$ -wd /scratch2/$USER/TMP
  4. #$ -cwd
  5. #$ -l h=!(ncx152.jinr.ru|ncx205.jinr.ru|ncx123.jinr.ru|ncx111.jinr.ru|ncx113.jinr.ru|ncx149.jinr.ru|ncx223.jinr.ru)
  6. #$ -N run_mpddst2analysistree
  7. #$ -q all.q
  8. #$ -l h_rt=0:10:00
  9. #$ -l s_rt=0:10:00
  10. #$ -t 1-20000
  11. #
  12. #$ -o /scratch2/$USER/TMP
  13. #$ -e /scratch2/$USER/TMP
  14. #
  15. export ecm=7.7
  16. export sys=AuAu
  17. export model=UrQMD
  18. export INPUT_FILELIST=/scratch2/parfenov/Soft/SoftQnTest/testAT2/MpdAnalysisTreeConverter/batch/mpddst_pwg3req9_auau.list
  19. export CURRENT_FILE=`sed "${SGE_TASK_ID}q;d" $INPUT_FILELIST`
  20. export COMMIT=${model}_${sys}_${ecm}gev
  21. export START_POSITION=$PWD
  22. export MAIN_DIR=/scratch2/$USER/Soft/SoftQnTest/testAT2/MpdAnalysisTreeConverter
  23. export JOBID=${JOB_ID}
  24. export OUT=$MAIN_DIR/OUT/$COMMIT/$JOBID
  25. export OUT_LOG=$OUT/log
  26. export OUT_FILE=$OUT/files
  27. export LOG=${OUT_LOG}/JOB_${JOB_ID}_${SGE_TASK_ID}.log
  28. export AT_FILE=${OUT_FILE}/JOB_${JOB_ID}_${SGE_TASK_ID}.root
  29. export TMPALL=$MAIN_DIR/TMP
  30. export TMPDIR=$TMPALL/TMP_${JOB_ID}_${SGE_TASK_ID}
  31. # mkdir -p $TMPDIR
  32. mkdir -p $OUT
  33. mkdir -p $OUT_LOG
  34. mkdir -p $OUT_FILE
  35. source /scratch2/parfenov/Soft/MPDROOT/mpdroot_kfparticles/build/config.sh &>> $LOG
  36. export ANALYSISTREE_INC=/scratch2/parfenov/Soft/SoftQnTest/testAT2/AnalysisTree/install-cxx11/include
  37. export ANALYSISTREE_LIB=/scratch2/parfenov/Soft/SoftQnTest/testAT2/AnalysisTree/install-cxx11/lib
  38. _log() {
  39. local format='+%Y/%m/%d-%H:%M:%S'
  40. echo [`date $format`] "$@"
  41. }
  42. echo "Node host name: $HOSTNAME" &>> $LOG
  43. echo "Node architecture name: $ARC" &>> $LOG
  44. echo "Current file: $CURRENT_FILE" &>>$LOG
  45. cd $MAIN_DIR/build/
  46. ./MpdDst2AnalysisTree -i $CURRENT_FILE -o $AT_FILE --sqrtSnn $ecm --system $sys &>> $LOG
  47. cd $START_POSITION
  48. _log "Job is done!" &>> $LOG