| 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 on the FACT cluster at ISDC
|
|---|
| 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 | rootsys=/opt/root_v5.32.02
|
|---|
| 15 | if ! export | grep ROOTSYS | grep $rootsys >|/dev/null
|
|---|
| 16 | then
|
|---|
| 17 | export ROOTSYS=$rootsys
|
|---|
| 18 | export PATH=$PATH:$ROOTSYS/bin
|
|---|
| 19 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | # software versions
|
|---|
| 23 | export factpath=/opt/FACT++
|
|---|
| 24 | export mars=~/FACT.processing/Mars.von.Thomas.2012.03.07
|
|---|
| 25 |
|
|---|
| 26 | # site
|
|---|
| 27 | processingsite=isdc
|
|---|
| 28 | sitekey=4
|
|---|
| 29 | storagesite=isdc
|
|---|
| 30 |
|
|---|
| 31 | # queuing system
|
|---|
| 32 | queuesys=sge
|
|---|
| 33 | sgepath=/usr/bin
|
|---|
| 34 |
|
|---|
| 35 | # logging and setup
|
|---|
| 36 | logpath=/fact_tmp/datacenter/autologs
|
|---|
| 37 | lockpath=fact_tmp/datacenter/locks
|
|---|
| 38 |
|
|---|
| 39 | # data paths
|
|---|
| 40 | datapath=/fact_tmp/data
|
|---|
| 41 | seqpath=/fact_tmp/sequences
|
|---|
| 42 | auxdata=/fact_tmp/aux
|
|---|
| 43 | rawdata=/fact_tmp/raw
|
|---|
| 44 | rawdata_for_sed=$(printf "%s\n" "$rawdata" | sed 's/[][\.*^$(){}?+|/]/\\&/g')
|
|---|
| 45 |
|
|---|
| 46 | ## paths and setup for mc
|
|---|
| 47 | mcpath=/magic/simulated
|
|---|
| 48 | mcsequpath=$mcpath/sequences
|
|---|
| 49 | corsikapath=/opt/MagicSoft/Simulation/Corsika/Mmcs6500
|
|---|
| 50 | export FLUPRO=$corsikapath'/fluka2011_2'
|
|---|
| 51 |
|
|---|
| 52 | # get paths for mars, macros and scripts
|
|---|
| 53 | # in case the variable is not yet set
|
|---|
| 54 | if [ "$mars" == "" ]
|
|---|
| 55 | then
|
|---|
| 56 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
|---|
| 57 | fi
|
|---|
| 58 | macrospath=$mars/datacenter/macros
|
|---|
| 59 | scriptspath=`dirname $0`
|
|---|
| 60 |
|
|---|
| 61 | # rcfiles
|
|---|
| 62 | # dependencies of steps
|
|---|
| 63 | steps=$scriptspath/../Setup/steps_fact_isdc.rc
|
|---|
| 64 | # file with db information
|
|---|
| 65 | sqlrc=$mars/sqlmc.rc
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | #addresses to which the errors are sent
|
|---|
| 69 | erradrs="daniela.dorner@unige.ch"
|
|---|
| 70 | #addresses to which the changes are sent
|
|---|
| 71 | adrs="daniela.dorner@unige.ch"
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | #
|
|---|
| 75 | #setup for jobmanager
|
|---|
| 76 | #
|
|---|
| 77 | sleeptime=150 #600 #30
|
|---|
| 78 | sleeptimelimit=360 #360
|
|---|
| 79 | errorsleeptimedefault=60 #60
|
|---|
| 80 |
|
|---|
| 81 | algorithm=2
|
|---|
| 82 |
|
|---|
| 83 | #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
|
|---|
| 84 | 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 )
|
|---|
| 85 | 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 )
|
|---|
| 86 |
|
|---|
| 87 | # set variables for jobmanager
|
|---|
| 88 | scripts=( "RunCeres.sh" "RunMCCallisto.sh" "RunMCStar.sh" )
|
|---|
| 89 | scriptscolname=( "Ceres" "Callisto" "Star" )
|
|---|
| 90 | ratio=( 0.6 0.2 0.2 )
|
|---|
| 91 | maxjobs=( 10 10 10 )
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | # further wishlist: adapt ratio automatically
|
|---|
| 95 |
|
|---|