Changeset 17372 for trunk/Mars/fact/analysis
- Timestamp:
- 11/25/13 18:14:01 (11 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/gain/extract_aux.sh
r17326 r17372 1 1 #!/bin/bash 2 2 3 macro=$PWD/extract_ temp.C4 outpath=$PWD/ temp3 macro=$PWD/extract_aux.C 4 outpath=$PWD/aux 5 5 6 6 mkdir -p $outpath … … 11 11 12 12 query="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 13 query=$query" FROM RunInfo \`single\` WHERE "$where" AND fNight>20130306 ORDER BY fNight DESC" 14 14 15 15 runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` ) … … 23 23 24 24 night=`echo $runpair | cut -d_ -f1` 25 run=`echo $runpair | cut -d_ -f2` 25 26 runnum=`printf %03d $run` 26 27 27 28 log=$outpath"/"$night"_"$runnum 28 29 29 outfile=$outpath/${ runnum}_${runnum}.root30 outfile=$outpath/${night}_${runnum}.root 30 31 31 32 if [ -e $outfile ] … … 36 37 cd ~/Mars 37 38 38 cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($night,$run num,\\\"${outfile}\\\"\)"39 cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($night,$run,\\\"${outfile}\\\"\)" 39 40 40 41 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.