| 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 | # This a resource file for the scripts, in which paths, variables
|
|---|
| 4 | # and setups are defined
|
|---|
| 5 | #
|
|---|
| 6 | # This setup file is for the machines in Wuerzburg
|
|---|
| 7 | #
|
|---|
| 8 |
|
|---|
| 9 | # setup to use ftools
|
|---|
| 10 | export HEADAS=/opt/heasoft-6.12/x86_64-unknown-linux-gnu
|
|---|
| 11 | export HEADASPROMPT=/dev/null
|
|---|
| 12 |
|
|---|
| 13 | # setup to use ROOT
|
|---|
| 14 | root=/opt/root_v5.34.06/bin/thisroot.sh
|
|---|
| 15 | source $root
|
|---|
| 16 |
|
|---|
| 17 | # software versions
|
|---|
| 18 | export factpath=/opt/FACT++
|
|---|
| 19 | export mars=~/opt/Mars
|
|---|
| 20 |
|
|---|
| 21 | # site
|
|---|
| 22 | processingsite=wue
|
|---|
| 23 | sitekey=1
|
|---|
| 24 | storagesite=wue
|
|---|
| 25 |
|
|---|
| 26 | # queuing system
|
|---|
| 27 | queuesys=sge
|
|---|
| 28 | sgepath=/opt/sge/bin/lx-amd64/
|
|---|
| 29 |
|
|---|
| 30 | # logging and setup
|
|---|
| 31 | logpath=/home/fact/logs.automatic.processing/autologs
|
|---|
| 32 | lockpath=/home/fact/logs.automatic.processing/locks
|
|---|
| 33 |
|
|---|
| 34 | # data paths
|
|---|
| 35 | datapath=/fact/data
|
|---|
| 36 | seqpath=/fact/sequences
|
|---|
| 37 | auxdata=/fact/aux
|
|---|
| 38 | rawdata=/fact/raw
|
|---|
| 39 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 40 |
|
|---|
| 41 | ## paths and setup for mc
|
|---|
| 42 | mcpath=/magic/simulated
|
|---|
| 43 | mcsequpath=$mcpath/sequences
|
|---|
| 44 | corsikapath=/opt/MagicSoft/Simulation/Corsika/Mmcs6500
|
|---|
| 45 | export FLUPRO=$corsikapath'/fluka2011_2'
|
|---|
| 46 |
|
|---|
| 47 | # get paths for mars, macros and scripts
|
|---|
| 48 | # in case the variable is not yet set
|
|---|
| 49 | if [ "$mars" == "" ]
|
|---|
| 50 | then
|
|---|
| 51 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
|---|
| 52 | fi
|
|---|
| 53 | macrospath=$mars/datacenter/macros
|
|---|
| 54 | scriptspath=`dirname $0`
|
|---|
| 55 |
|
|---|
| 56 | # rcfiles
|
|---|
| 57 | # dependencies of steps
|
|---|
| 58 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
|---|
| 59 | # file with db information
|
|---|
| 60 | sqlrc=$mars/sqlmc.rc
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 | #addresses to which the errors are sent
|
|---|
| 64 | erradrs="dorner@astro.uni-wuerzburg.de"
|
|---|
| 65 | #addresses to which the changes are sent
|
|---|
| 66 | adrs="dorner@astro.uni-wuerzburg.de"
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | #
|
|---|
| 70 | #setup for jobmanager
|
|---|
| 71 | #
|
|---|
| 72 | sleeptime=150 #600 #30
|
|---|
| 73 | sleeptimelimit=360 #360
|
|---|
| 74 | errorsleeptimedefault=60 #60
|
|---|
| 75 |
|
|---|
| 76 | algorithm=2
|
|---|
| 77 |
|
|---|
| 78 | #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
|
|---|
| 79 | 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 )
|
|---|
| 80 | 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 )
|
|---|
| 81 |
|
|---|
| 82 | # set variables for jobmanager
|
|---|
| 83 | scripts=( "RunCeres.sh" "RunMCCallisto.sh" "RunMCStar.sh" )
|
|---|
| 84 | scriptscolname=( "Ceres" "Callisto" "Star" )
|
|---|
| 85 | ratio=( 0.6 0.2 0.2 )
|
|---|
| 86 | maxjobs=( 10 10 10 )
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | # further wishlist: adapt ratio automatically
|
|---|
| 90 |
|
|---|