Last change
on this file since 15375 was 15303, checked in by Daniela Dorner, 12 years ago |
added (script to redo star for quick look analysis)
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | source `dirname $0`/../Sourcefile.sh
|
---|
4 | printprocesslog "INFO starting $0"
|
---|
5 |
|
---|
6 | root=/opt/root_svn/bin/thisroot.sh
|
---|
7 | source $root
|
---|
8 |
|
---|
9 | anapath=/loc_data/analysis
|
---|
10 | auxpath=/loc_data/aux
|
---|
11 |
|
---|
12 | printprocesslog "INFO get list of calibrated files"
|
---|
13 |
|
---|
14 | calfiles=( `find $anapath -type f -name '*_C.root' 2>/dev/null | grep -v failed_stuff | sort` )
|
---|
15 | if [ ${#calfiles[@]} -eq 0 ]
|
---|
16 | then
|
---|
17 | printprocesslog "INFO no calibrated files available "
|
---|
18 | finish
|
---|
19 | fi
|
---|
20 | starfiles=( `find $anapath -type f -name '*_I.root' 2>/dev/null | grep -v failed_stuff | sort` )
|
---|
21 | if [ ${#starfiles[@]} -eq 0 ]
|
---|
22 | then
|
---|
23 | printprocesslog "INFO no star files available "
|
---|
24 | finish
|
---|
25 | fi
|
---|
26 |
|
---|
27 |
|
---|
28 | if [ ${#starfiles[@]} -lt ${#calfiles[@]} ]
|
---|
29 | then
|
---|
30 | for calfile in ${calfiles[@]}
|
---|
31 | do
|
---|
32 | starfile=`echo $calfile | sed -e 's/callisto/star/' -e 's/_C/_I/'`
|
---|
33 | if ! ls $starfile >/dev/null 2>&1
|
---|
34 | then
|
---|
35 | echo $starfile" is missing -> reprocess. "
|
---|
36 | source=`echo $starfile | cut -d/ -f4`
|
---|
37 | seqfile="/loc_data/analysis/sequences/"`echo $starfile | cut -d/ -f6-8`"/"`echo $starfile | cut -d/ -f9 | cut -dI -f1 | sed -e 's/_//2'`".seq"
|
---|
38 | #echo $source" "$seqfile
|
---|
39 | `dirname $0`/RunStar.sh $source $seqfile
|
---|
40 | if ! ls $starfile >/dev/null 2>&1
|
---|
41 | then
|
---|
42 | echo " failed: check log "`echo $starfile | sed -e 's/_I.root/-images.log/'`
|
---|
43 | echo " check calfile "$calfile
|
---|
44 | fi
|
---|
45 | echo ""
|
---|
46 | fi
|
---|
47 | done
|
---|
48 | fi
|
---|
49 |
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.