#!/bin/bash # # This a resource file for the scripts, in which paths, variables # and setups are defined # # This setup file is for the machines on the FACT cluster at ISDC # # setup to use ftools export HEADAS=/swdev_nfs/heasoft-6.11.1/x86_64-unknown-linux-gnu-libc2.12 export HEADASPROMPT=/dev/null # setup to use ROOT rootsys=/swdev_nfs/root_v5.32.00 if ! export | grep ROOTSYS | grep $rootsys >|/dev/null then export ROOTSYS=$rootsys export PATH=$PATH:$ROOTSYS/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib fi # software versions export factpath=/swdev_nfs/FACT++ export mars=~/Mars.von.Thomas.2012.06.19 # site processingsite=isdc sitekey=4 storagesite=isdc # queuing system queuesys=sge sgepath=/usr/bin # logging and setup logpath=~/datacenter/autologs lockpath=~/datacenter/locks rsynctempdir=/scratch/rsync_tmp # data paths datapath=/scratch_nfs/data.2012.06.19 seqpath=/scratch_nfs/sequences auxdata=/fact/aux rawdata=/fact/raw rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g') # rawdata and ziprawdata are the same # variable $ziprawdata needed for FillAuxData.sh ziprawdata=/fact/raw ziprawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g') # get paths for mars, macros and scripts # in case the variable is not yet set if [ "$mars" == "" ] then mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'` fi macrospath=$mars/datacenter/macros scriptspath=`dirname $0` # rcfiles # dependencies of steps steps=$scriptspath/../Setup/steps_fact_isdc.rc # file with db information sqlrc=$mars/sql.rc #addresses to which the errors are sent erradrs="daniela.dorner@unige.ch" #addresses to which the changes are sent adrs="daniela.dorner@unige.ch" # #setup for jobmanager # sleeptime=150 #600 #30 sleeptimelimit=360 #360 errorsleeptimedefault=60 #60 algorithm=2 #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 pnototal=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ) pnototalwe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ) # set variables for jobmanager scripts=( "RunCallisto.sh" "RunStar.sh" ) scriptscolname=( "Callisto" "Star" ) ratio=( 0.6 0.4 ) maxjobs=( 20 10 ) # further wishlist: adapt ratio automatically