source: trunk/DataCheck/QuickLook/RunCallisto.sh@ 17120

Last change on this file since 17120 was 15389, checked in by Daniela Dorner, 12 years ago
removed sourcekey
  • Property svn:executable set to *
File size: 810 bytes
Line 
1#!/bin/bash
2#
3
4source `dirname $0`/../Sourcefile.sh
5printprocesslog "INFO starting $0"
6
7seqfile=$1
8seqnum=`basename $seqfile | sed -e 's/[.]seq//g'`
9#outpath=`dirname $seqfile | sed -e "s/sequences/${1}\/callisto/"`
10outpath=`dirname $seqfile | sed -e "s/sequences/callisto/"`
11makedir $outpath
12logfile=$outpath"/"$seqnum"-calibration.log"
13
14cd $mars
15
16# run callisto
17printprocesslog "INFO starting callisto6.C for sequence "$seqnum
18
19check1=`root -q -b fact/callisto6.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep`
20
21case $check1 in
22 0) printprocesslog "INFO callisto was successful for sequence "$seqnum" (check1=$check1)"
23 `dirname $0`/RunStar.sh $seqfile &
24 ;;
25 *) printprocesslog "ERROR callisto6.C failed for sequence "$seqnum" (check1=$check1)"
26 ;;
27esac
28
29finish
30
Note: See TracBrowser for help on using the repository browser.