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 | |
---|
1 | inpath=$PWD/$1
|
---|
2 | outpath=${inpath}/fit
|
---|
3 | macro=${PWD}/fit_spectra.C
|
---|
4 |
|
---|
5 | mkdir -p $outpath
|
---|
6 |
|
---|
7 | files_out=`ls -1 ${inpath} | grep \.root`
|
---|
8 | files_fit=`ls -1 ${outpath} | grep \.root`
|
---|
9 |
|
---|
10 | for file in $files_out
|
---|
11 | do
|
---|
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 -
|
---|
27 | done
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.