Changeset 17160 for trunk/Mars/fact
- Timestamp:
- 09/09/13 16:52:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/analysis/gain/runanalysis.sh
r17071 r17160 7 7 8 8 mkdir -p $outpath 9 cp ${macro} ${outpath} 9 10 10 11 where="(((fNumPedestalTrigger=3000 OR fNumPedestalTrigger=5000) AND fRunTypeKEY=2) OR (fNumPedestalTrigger=10000 AND fRunTypeKEY=3) OR fRunTypeKEY=17)" … … 14 15 query=$query" FROM RunInfo \`single\` WHERE "$where 15 16 16 echo Query database...17 18 17 runpairs=( `mysql -u factread --password=r3adfac! --host=lp-fact factdata -s -e "$query"` ) 19 18 … … 22 21 if [ $runpair = 'NULL' ] 23 22 then 24 echo NULL: $runpair25 23 continue 26 24 fi … … 32 30 run=`echo $runpair | cut -d_ -f2` 33 31 drs=`echo $runpair | cut -d_ -f3` 32 name=`echo $night | cut -c3-` 34 33 35 34 runnum=`printf %03d $run` … … 56 55 cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -q -b -l ${macro}+\($maxdist,$threshold,\\\"$runfile\\\",$run,$run,\\\"$drsfile\\\",\\\"${outpath}\\\"\)" 57 56 58 echo "echo ${cmd}; ${cmd}" | qsub -N e${n ight}-${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" 59 58 60 59 cd - > /dev/null
Note:
See TracChangeset
for help on using the changeset viewer.