Changeset 17071 for trunk/Mars/fact
- Timestamp:
- 09/05/13 11:29:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/gain/runanalysis.sh
r17033 r17071 1 1 #!/bin/bash 2 2 3 script=$PWD/runsinglepe.sh4 3 threshold=5 5 4 maxdist=14 … … 15 14 query=$query" FROM RunInfo \`single\` WHERE "$where 16 15 16 echo Query database... 17 17 18 runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` ) 18 19 19 20 for runpair in ${runpairs[@]} 20 21 do 22 if [ $runpair = 'NULL' ] 23 then 24 echo NULL: $runpair 25 continue 26 fi 27 21 28 year=`echo $runpair | cut -c1-4` 22 29 month=`echo $runpair | cut -c5-6` … … 40 47 continue 41 48 fi 49 50 42 51 43 52 echo "Submitting "${night}"_"${runnum}"["${drsnum}"]" … … 45 54 cd ~/Mars 46 55 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}\\\"\)" 48 57 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" 50 59 51 cd - 60 cd - > /dev/null 52 61 done 53 62
Note:
See TracChangeset
for help on using the changeset viewer.