123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #!/bin/bash
- #
- #$ -wd /scratch2/$USER/TMP
- #$ -cwd
- #$ -l h=!(ncx152.jinr.ru|ncx205.jinr.ru|ncx123.jinr.ru|ncx111.jinr.ru|ncx113.jinr.ru|ncx149.jinr.ru|ncx223.jinr.ru)
- #$ -N run_mpddst2analysistree
- #$ -q all.q
- #$ -l h_rt=0:10:00
- #$ -l s_rt=0:10:00
- #$ -t 1-20000
- #
- #$ -o /scratch2/$USER/TMP
- #$ -e /scratch2/$USER/TMP
- #
- export ecm=7.7
- export sys=AuAu
- export model=UrQMD
- export INPUT_FILELIST=/scratch2/parfenov/Soft/SoftQnTest/testAT2/MpdAnalysisTreeConverter/batch/mpddst_pwg3req9_auau.list
- export CURRENT_FILE=`sed "${SGE_TASK_ID}q;d" $INPUT_FILELIST`
- export COMMIT=${model}_${sys}_${ecm}gev
- export START_POSITION=$PWD
- export MAIN_DIR=/scratch2/$USER/Soft/SoftQnTest/testAT2/MpdAnalysisTreeConverter
- export JOBID=${JOB_ID}
- export OUT=$MAIN_DIR/OUT/$COMMIT/$JOBID
- export OUT_LOG=$OUT/log
- export OUT_FILE=$OUT/files
- export LOG=${OUT_LOG}/JOB_${JOB_ID}_${SGE_TASK_ID}.log
- export AT_FILE=${OUT_FILE}/JOB_${JOB_ID}_${SGE_TASK_ID}.root
- export TMPALL=$MAIN_DIR/TMP
- export TMPDIR=$TMPALL/TMP_${JOB_ID}_${SGE_TASK_ID}
- # mkdir -p $TMPDIR
- mkdir -p $OUT
- mkdir -p $OUT_LOG
- mkdir -p $OUT_FILE
- source /scratch2/parfenov/Soft/MPDROOT/mpdroot_kfparticles/build/config.sh &>> $LOG
- export ANALYSISTREE_INC=/scratch2/parfenov/Soft/SoftQnTest/testAT2/AnalysisTree/install-cxx11/include
- export ANALYSISTREE_LIB=/scratch2/parfenov/Soft/SoftQnTest/testAT2/AnalysisTree/install-cxx11/lib
- _log() {
- local format='+%Y/%m/%d-%H:%M:%S'
- echo [`date $format`] "$@"
- }
- echo "Node host name: $HOSTNAME" &>> $LOG
- echo "Node architecture name: $ARC" &>> $LOG
- echo "Current file: $CURRENT_FILE" &>>$LOG
- cd $MAIN_DIR/build/
- ./MpdDst2AnalysisTree -i $CURRENT_FILE -o $AT_FILE --sqrtSnn $ecm --system $sys &>> $LOG
- cd $START_POSITION
- _log "Job is done!" &>> $LOG
|