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