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

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