#!/bin/bash # # This a resource file for the scripts, in which paths, variables # and setups are defined # # This setup file is for the machines in Wuerzburg # # setup to use ftools export HEADAS=/opt/heasoft-6.12/x86_64-unknown-linux-gnu export HEADASPROMPT=/dev/null # setup to use ROOT root=/opt/root_v5.34.06/bin/thisroot.sh source $root # software versions export factpath=/opt/FACT++ export mars=~/opt/Mars # site processingsite=wue sitekey=1 storagesite=wue # queuing system queuesys=sge sgepath=/opt/sge/bin/lx-amd64/ # logging and setup logpath=/home/fact/logs.automatic.processing/autologs lockpath=/home/fact/logs.automatic.processing/locks # data paths datapath=/fact/data seqpath=/fact/sequences auxdata=/fact/aux rawdata=/fact/raw rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g') ## paths and setup for mc mcpath=/magic/simulated mcsequpath=$mcpath/sequences corsikapath=/opt/MagicSoft/Simulation/Corsika/Mmcs6500 export FLUPRO=$corsikapath'/fluka2011_2' # 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/sqlmc.rc #addresses to which the errors are sent erradrs="dorner@astro.uni-wuerzburg.de" #addresses to which the changes are sent adrs="dorner@astro.uni-wuerzburg.de" # #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=( "RunCeres.sh" "RunMCCallisto.sh" "RunMCStar.sh" ) scriptscolname=( "Ceres" "Callisto" "Star" ) ratio=( 0.6 0.2 0.2 ) maxjobs=( 10 10 10 ) # further wishlist: adapt ratio automatically