source: trunk/DataCheck/QuickLook/RunGanymed.sh@ 15369

Last change on this file since 15369 was 15304, checked in by Daniela Dorner, 12 years ago
added (script to run ganymed for quick look analysis)
  • Property svn:executable set to *
File size: 740 bytes
Line 
1#!/bin/bash
2#
3
4source `dirname $0`/../Sourcefile.sh
5printprocesslog "INFO starting $0"
6
7source=$1
8dsfile=$2
9path=$anapath/$source
10
11outpath=`dirname $dsfile | sed -e 's/datasets/ganymed/'`
12makedir $outpath
13
14dsnum=`basename $dsfile | sed -e 's/dataset//' -e 's/[.]txt//'`
15output=$outpath/$dsnum
16logfile=$output"-ganymed.log"
17
18cd $mars
19
20# run ganymed
21printprocesslog "INFO starting ganymed.C for dataset "$dsfile
22
23check1=`root -q -b $path/ganymed.C\("\"$dsfile\""\,"\"$output\""\) | tee $logfile | intgrep`
24
25case $check1 in
26 0) printprocesslog "INFO ganymed was successful for dataset "$dsfile" (check1=$check1)"
27 ;;
28 *) printprocesslog "ERROR ganymed.C failed for dataset "$dsfile" (check1=$check1)"
29 ;;
30esac
31
32finish
33
Note: See TracBrowser for help on using the repository browser.