1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # ========================================================================
|
---|
4 | #
|
---|
5 | # *
|
---|
6 | # * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
7 | # * Software. It is distributed to you in the hope that it can be a useful
|
---|
8 | # * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
9 | # * It is distributed WITHOUT ANY WARRANTY.
|
---|
10 | # *
|
---|
11 | # * Permission to use, copy, modify and distribute this software and its
|
---|
12 | # * documentation for any purpose is hereby granted without fee,
|
---|
13 | # * provided that the above copyright notice appear in all copies and
|
---|
14 | # * that both that copyright notice and this permission notice appear
|
---|
15 | # * in supporting documentation. It is provided "as is" without express
|
---|
16 | # * or implied warranty.
|
---|
17 | # *
|
---|
18 | #
|
---|
19 | #
|
---|
20 | # Author(s): Daniela Dorner 08/2009 <mailto:dorner@astro.uni-wuerzburg.de>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2009
|
---|
23 | #
|
---|
24 | #
|
---|
25 | # ========================================================================
|
---|
26 | #
|
---|
27 | # This a resource file for the scripts, in which the standard paths and
|
---|
28 | # functions, which are needed more often are stored.
|
---|
29 | #
|
---|
30 |
|
---|
31 | rootsys=/opt/root_v5.12.00f
|
---|
32 | if ! export | grep $rootsys >|/dev/null
|
---|
33 | then
|
---|
34 | export ROOTSYS=$rootsys
|
---|
35 | export PATH=$PATH:$ROOTSYS/bin
|
---|
36 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
---|
37 | fi
|
---|
38 |
|
---|
39 | # queuing system
|
---|
40 | queuesys=condor # wuerzburg data center
|
---|
41 | condorpath=/usr/local/bin
|
---|
42 |
|
---|
43 | # for db backup
|
---|
44 | dbnames=( "all" )
|
---|
45 |
|
---|
46 | # logging and setup
|
---|
47 | logpath=/magic/datacenter/autologs
|
---|
48 | lockpath=/magic/datacenter/locks
|
---|
49 | setuppath=/magic/datacenter/setup
|
---|
50 |
|
---|
51 | # paths of data
|
---|
52 | datapath=/magic/data
|
---|
53 | subsystempath=/magic/subsystemdata
|
---|
54 | sequpath=/magic/sequences
|
---|
55 | datasetpath=/magic/datasets
|
---|
56 |
|
---|
57 | ## paths and setup for mc
|
---|
58 | #mcpath=/magic/montecarlo
|
---|
59 | #mcrawpath=$mcpath/rawfiles
|
---|
60 | #mcsequpath=$mcpath/sequences
|
---|
61 | #corsikapath=/home/operator/Corsika/Mmcs6500/
|
---|
62 | #detectordir=/home/msmeyer/MC/MagicSoft/Simulation/Detector
|
---|
63 | #reflectorversion="reflector 0.7"
|
---|
64 | #cameraversion="camera 0.8"
|
---|
65 | #export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
66 |
|
---|
67 |
|
---|
68 | webpath=/www/htdocs/datacenter
|
---|
69 |
|
---|
70 | # get paths for mars, macros and scripts
|
---|
71 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
72 | macrospath=$mars/datacenter/macros
|
---|
73 | scriptspath=$mars/datacenter/scripts
|
---|
74 | # rcfiles
|
---|
75 | # dependencies of steps
|
---|
76 | steps=$mars/resources/steps.rc
|
---|
77 | # file with db information
|
---|
78 | sqlrc=$mars/sql.rc
|
---|
79 |
|
---|
80 |
|
---|
81 | #addresses to which the errors are sent
|
---|
82 | erradrs="datacenter@astro.uni-wuerzburg.de"
|
---|
83 | #addresses to which the changes are sent
|
---|
84 | adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"
|
---|
85 |
|
---|
86 |
|
---|
87 | #setup for jobmanager
|
---|
88 | sleeptime=30 #30
|
---|
89 | sleeptimelimit=360 #360
|
---|
90 | errorsleeptimedefault=60 #60
|
---|
91 | max=42 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
|
---|
92 | totalmax=40 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
93 |
|
---|
94 | #
|
---|
95 | # FIXME:
|
---|
96 | # max anz an prozessen setzen
|
---|
97 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
98 | # automatisch anpassen
|
---|
99 | # evtl noch maximale anz an callistos setzen
|
---|
100 | #
|
---|
101 |
|
---|
102 | #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
|
---|
103 | pnototal=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
|
---|
104 | pnototalwe=( 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 )
|
---|
105 |
|
---|
106 | pnocallisto=( 32 32 32 32 32 20 20 18 18 12 12 12 12 12 12 12 12 12 12 18 18 20 20 32 )
|
---|
107 | pnostar=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
|
---|
108 | pnoganymed=( 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 )
|
---|
109 | #pnocutslices=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
110 | #pnodatacheck=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
|
---|
111 |
|
---|
112 | pnocallistowe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 )
|
---|
113 | pnostarwe=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )
|
---|
114 | pnoganymedwe=( 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 )
|
---|
115 | #pnocutsliceswe=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
116 | #pnodatacheckwe=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
|
---|
117 |
|
---|
118 | # set variables for jobmanager
|
---|
119 | scripts=( "runganymed" "runstar" "runcallisto" ) # not used: "dodatacheck" "cutslices"
|
---|
120 | scriptscolname=( "fGanymed" "fStar" "fCallisto" ) # not used: "fDataCheckDone" "fCompmux"
|
---|
121 | pnosweek=( ${pnoganymed[@]} ${pnostar[@]} ${pnocallisto[@]} ) # not used: ${pnodatacheck[@]} ${pnocutslices[@]}
|
---|
122 | pnoswe=( ${pnoganymedwe[@]} ${pnostarwe[@]} ${pnocallistowe[@]} ) # not used: ${pnodatacheckwe[@]} ${pnocutsliceswe[@]}
|
---|
123 |
|
---|