Changeset 17372


Ignore:
Timestamp:
11/25/13 18:14:01 (11 years ago)
Author:
tbretz
Message:
Updated to use extract_aux.C
File:
1 copied

Legend:

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

    r17326 r17372  
    11#!/bin/bash
    22
    3 macro=$PWD/extract_temp.C
    4 outpath=$PWD/temp
     3macro=$PWD/extract_aux.C
     4outpath=$PWD/aux
    55
    66mkdir -p $outpath
     
    1111
    1212query="SELECT Concat(fNight, '_', fRunID, '_', (SELECT fRunID FROM RunInfo \`drs\` WHERE drs.fNight=single.fNight AND "$wheredrs" AND single.fRunID<30+drs.fRunID ORDER BY ABS(CAST(single.fRunID AS SIGNED) - CAST(drs.fRunID AS SIGNED)) ASC LIMIT 0,1)) AS num "
    13 query=$query" FROM RunInfo \`single\` WHERE "$where
     13query=$query" FROM RunInfo \`single\` WHERE "$where" AND fNight>20130306 ORDER BY fNight DESC"
    1414
    1515runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` )
     
    2323
    2424   night=`echo $runpair | cut -d_ -f1`
     25   run=`echo $runpair | cut -d_ -f2`
    2526   runnum=`printf %03d $run`
    2627
    2728   log=$outpath"/"$night"_"$runnum
    2829
    29    outfile=$outpath/${runnum}_${runnum}.root
     30   outfile=$outpath/${night}_${runnum}.root
    3031
    3132   if [ -e $outfile ]
     
    3637   cd ~/Mars
    3738
    38    cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($night,$runnum,\\\"${outfile}\\\"\)"
     39   cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($night,$run,\\\"${outfile}\\\"\)"
    3940
    4041   echo "date; echo '${cmd}'; ${cmd}" | qsub -N t${night}${runnum} -q test -cwd -e ${log}".err" -o ${log}".log"
Note: See TracChangeset for help on using the changeset viewer.