Changeset 17160


Ignore:
Timestamp:
Sep 9, 2013, 4:52:08 PM (7 years ago)
Author:
tbretz
Message:
Copy macro; no output if nothing happens (for cronjobs); shoerter name
File:
1 edited

Legend:

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

    r17071 r17160  
    77
    88mkdir -p $outpath
     9cp ${macro} ${outpath}
    910
    1011where="(((fNumPedestalTrigger=3000 OR fNumPedestalTrigger=5000) AND fRunTypeKEY=2) OR (fNumPedestalTrigger=10000 AND fRunTypeKEY=3) OR fRunTypeKEY=17)"
     
    1415query=$query" FROM RunInfo \`single\` WHERE "$where
    1516
    16 echo Query database...
    17 
    1817runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` )
    1918
     
    2221   if [ $runpair = 'NULL' ]
    2322   then
    24       echo NULL: $runpair
    2523      continue
    2624   fi
     
    3230   run=`echo $runpair | cut -d_ -f2`
    3331   drs=`echo $runpair | cut -d_ -f3`
     32   name=`echo $night | cut -c3-`
    3433
    3534   runnum=`printf %03d $run`
     
    5655   cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($maxdist,$threshold,\\\"$runfile\\\",$run,$run,\\\"$drsfile\\\",\\\"${outpath}\\\"\)"
    5756
    58    echo "echo ${cmd}; ${cmd}" | qsub -N e${night}-${runnum} -q test -cwd -e ${log}".err" -o ${log}".log"
     57   echo "echo ${cmd}; ${cmd}" | qsub -N e${name}-${runnum} -q test -cwd -e ${log}".err" -o ${log}".log"
    5958
    6059   cd - > /dev/null
Note: See TracChangeset for help on using the changeset viewer.