Ignore:
Timestamp:
09/05/13 11:29:01 (11 years ago)
Author:
tbretz
Message:
Some small improvements. Ignore NULL (no proper combination found); echo the command to the console; do not outpout anything when changing directory back.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/gain/runanalysis.sh

    r17033 r17071  
    11#!/bin/bash
    22
    3 script=$PWD/runsinglepe.sh
    43threshold=5
    54maxdist=14
     
    1514query=$query" FROM RunInfo \`single\` WHERE "$where
    1615
     16echo Query database...
     17
    1718runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` )
    1819
    1920for runpair in ${runpairs[@]}
    2021do
     22   if [ $runpair = 'NULL' ]
     23   then
     24      echo NULL: $runpair
     25      continue
     26   fi
     27
    2128   year=`echo $runpair | cut -c1-4`
    2229   month=`echo $runpair | cut -c5-6`
     
    4047      continue
    4148   fi
     49   
     50   
    4251
    4352   echo "Submitting "${night}"_"${runnum}"["${drsnum}"]"
     
    4554   cd ~/Mars
    4655
    47    cmd="${ROOTSYS}/root -q -b ${macro}+\($maxdist,$threshold,\\\"$runfile\\\",$run,$run,\\\"$drsfile\\\",\\\"${outpath}\\\"\)"
     56   cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($maxdist,$threshold,\\\"$runfile\\\",$run,$run,\\\"$drsfile\\\",\\\"${outpath}\\\"\)"
    4857
    49    echo ${cmd} | qsub -b yes -q test -cwd -e ${log}".err" -o ${log}".log"
     58   echo "echo ${cmd}; ${cmd}" | qsub -N e${night}-${runnum} -q test -cwd -e ${log}".err" -o ${log}".log"
    5059
    51    cd -
     60   cd - > /dev/null
    5261done
    5362
Note: See TracChangeset for help on using the changeset viewer.