source: trunk/Mars/fact/analysis/gain/fit.sh@ 17138

Last change on this file since 17138 was 17073, checked in by tbretz, 11 years ago
Do not add command to root history; echo command to log file.
  • Property svn:executable set to *
File size: 597 bytes
Line 
1inpath=$PWD/$1
2outpath=${inpath}/fit
3macro=${PWD}/fit_spectra.C
4
5mkdir -p $outpath
6
7files_out=`ls -1 ${inpath} | grep \.root`
8files_fit=`ls -1 ${outpath} | grep \.root`
9
10for file in $files_out
11do
12 infile=$inpath"/"${file}
13 outfile=${outpath}"/"${file}
14
15 if [ -e $outfile ]
16 then
17 continue
18 fi
19
20 cmd="ROOT_HIST=0 ${ROOTSYS}/bin/root -b -q -l ${macro}+\(\\\"${infile}\\\",\\\"${outfile}\\\"\)"
21
22 cd ~/Mars
23
24 echo Submitting ${file}
25 echo "echo ${cmd}; ${cmd}" | qsub -N f${file} -q test -cwd -e ${outfile}".err" -o ${outfile}".log"
26
27 cd - > /dev/null
28done
29
Note: See TracBrowser for help on using the repository browser.