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

Last change on this file since 17033 was 17033, checked in by tbretz, 12 years ago
First version of files.
  • Property svn:executable set to *
File size: 522 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="${ROOTSYS}/root -b -q -l ${macro}+\(\\\"${infile}\\\",\\\"${outfile}\\\"\)"
21
22 cd ~/Mars
23
24 echo ${cmd} | qsub -b yes -q test -cwd -e ${outfile}".err" -o ${outfile}".log"
25
26 cd -
27done
28
Note: See TracBrowser for help on using the repository browser.