source: branches/trigger_burst_research/QuickLook/ReDoStar.sh@ 18979

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