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 | |
---|
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="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
|
---|
28 | done
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.