source: trunk/DataCheck/QuickLook/ReDoStar.sh@ 15304

Last change on this file since 15304 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#
3source `dirname $0`/../Sourcefile.sh
4printprocesslog "INFO starting $0"
5
6root=/opt/root_svn/bin/thisroot.sh
7source $root
8
9anapath=/loc_data/analysis
10auxpath=/loc_data/aux
11
12printprocesslog "INFO get list of calibrated files"
13
14calfiles=( `find $anapath -type f -name '*_C.root' 2>/dev/null | grep -v failed_stuff | sort` )
15if [ ${#calfiles[@]} -eq 0 ]
16then
17 printprocesslog "INFO no calibrated files available "
18 finish
19fi
20starfiles=( `find $anapath -type f -name '*_I.root' 2>/dev/null | grep -v failed_stuff | sort` )
21if [ ${#starfiles[@]} -eq 0 ]
22then
23 printprocesslog "INFO no star files available "
24 finish
25fi
26
27
28if [ ${#starfiles[@]} -lt ${#calfiles[@]} ]
29then
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
48fi
49
50
51
52
Note: See TracBrowser for help on using the repository browser.