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 05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2008
|
---|
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 |
|
---|
40 | logpath=/magic/datacenter/autologs
|
---|
41 | lockpath=/magic/datacenter/locks
|
---|
42 | setuppath=/magic/datacenter/setup
|
---|
43 |
|
---|
44 | datapath=/magic/data
|
---|
45 | subsystempath=/magic/subsystemdata
|
---|
46 | sequpath=/magic/sequences
|
---|
47 | datasetpath=/magic/datasets
|
---|
48 |
|
---|
49 | mcpath=/magic/montecarlo
|
---|
50 | mcrawpath=$mcpath/rawfiles
|
---|
51 | mcsequpath=$mcpath/sequences
|
---|
52 | reflectorversion="reflector 0.7"
|
---|
53 | cameraversion="camera 0.75"
|
---|
54 |
|
---|
55 | webpath=/www/htdocs/datacenter
|
---|
56 |
|
---|
57 | #addresses to which the errors are sent
|
---|
58 | erradrs="datacenter@astro.uni-wuerzburg.de"
|
---|
59 | #addresses to which the changes are sent
|
---|
60 | adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"
|
---|
61 |
|
---|
62 |
|
---|
63 | #setup for jobmanager
|
---|
64 | sleeptime=30 #30
|
---|
65 | sleeptimelimit=360 #360
|
---|
66 | errorsleeptimedefault=60 #60
|
---|
67 | max=42 #maximum number of processes
|
---|
68 |
|
---|
69 | # not done/used
|
---|
70 | #scripts=( "dodatacheck" "cutslices" )
|
---|
71 | #scriptscolname=( "fDataCheckDone" "fCompmux" )
|
---|
72 | # currently used
|
---|
73 | datascripts=( "runganymed" "runstar" "runcallisto" )
|
---|
74 | datascriptscolname=( "fGanymed" "fStar" "fCallisto" )
|
---|
75 |
|
---|
76 | #
|
---|
77 | # FIXME:
|
---|
78 | # max anz an prozessen setzen
|
---|
79 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
80 | # automatisch anpassen
|
---|
81 | # evtl noch maximale anz an callistos setzen
|
---|
82 | #
|
---|
83 |
|
---|
84 | #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
|
---|
85 | 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 )
|
---|
86 | 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 )
|
---|
87 |
|
---|
88 | 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 )
|
---|
89 | 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 )
|
---|
90 | 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 )
|
---|
91 | #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 )
|
---|
92 | #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 )
|
---|
93 |
|
---|
94 | 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 )
|
---|
95 | 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 )
|
---|
96 | 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 )
|
---|
97 | #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 )
|
---|
98 | #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 )
|
---|
99 |
|
---|
100 | # not used/done
|
---|
101 | #pnosweek=( ${pnodatacheck[@]} ${pnocutslices[@]} )
|
---|
102 | #pnoswe=( ${pnodatacheckwe[@]} ${pnocutsliceswe[@]} )
|
---|
103 | # currently used
|
---|
104 | pnosweek=( ${pnoganymed[@]} ${pnostar[@]} ${pnocallisto[@]} )
|
---|
105 | pnoswe=( ${pnoganymedwe[@]} ${pnostarwe[@]} ${pnocallistowe[@]} )
|
---|
106 |
|
---|
107 |
|
---|
108 | # not yet working completely
|
---|
109 |
|
---|
110 | ## values for mc production
|
---|
111 | #mcscripts=( "runcorsika" "runreflector" "runcamera" )
|
---|
112 | #mcscriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" )
|
---|
113 | #
|
---|
114 | ##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
|
---|
115 | #
|
---|
116 | #pnocorsika=( 12 12 12 12 12 12 12 10 9 8 7 7 7 7 7 7 7 7 7 8 9 10 12 12 )
|
---|
117 | #pnoreflector=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
118 | #pnocamera=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
|
---|
119 | #
|
---|
120 | #pnocorsikawe=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
121 | #pnoreflectorwe=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
122 | #pnocamerawe=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
|
---|
123 | #
|
---|
124 | #pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} )
|
---|
125 | #pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} )
|
---|
126 |
|
---|