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-2007
|
---|
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 | listpath=/magic/datacenter/lists
|
---|
43 | setuppath=/magic/datacenter/setup
|
---|
44 |
|
---|
45 | datapath=/magic/data
|
---|
46 | subsystempath=/magic/subsystemdata
|
---|
47 | sequpath=/magic/sequences
|
---|
48 | datasetpath=/magic/datasets
|
---|
49 |
|
---|
50 | mcpath=/magic/montecarlo
|
---|
51 | mcrawpath=$mcpath/rawfiles
|
---|
52 | mcsequpath=$mcpath/sequences
|
---|
53 | reflectorversion="reflector 0.7"
|
---|
54 | cameraversion="camera 0.75"
|
---|
55 |
|
---|
56 | webpath=/www/htdocs/datacenter
|
---|
57 |
|
---|
58 | #addresses to which the errors are sent
|
---|
59 | erradrs="datacenter@astro.uni-wuerzburg.de"
|
---|
60 | #addresses to which the changes are sent
|
---|
61 | adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"
|
---|
62 |
|
---|
63 |
|
---|
64 | #setup for jobmanager
|
---|
65 | sleeptime=30 #30
|
---|
66 | sleeptimelimit=360 #360
|
---|
67 | errorsleeptimedefault=60 #60
|
---|
68 | max=18 #maximum number of processes
|
---|
69 |
|
---|
70 | #scripts=( "runcallisto" "runstar" "runganymed" "dodatacheck" )
|
---|
71 | #scriptscolname=( "fCallisto" "fStar" "fGanymed" "fDataCheckDone" )
|
---|
72 | datascripts=( "runcallisto" "runstar" "runganymed" )
|
---|
73 | datascriptscolname=( "fCallisto" "fStar" "fGanymed" )
|
---|
74 |
|
---|
75 | #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
|
---|
76 | pnototal=( 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 )
|
---|
77 | pnototalwe=( 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 )
|
---|
78 |
|
---|
79 | pnocallisto=( 12 12 12 12 12 12 12 10 9 8 7 7 7 7 7 7 7 7 7 8 9 10 12 12 )
|
---|
80 | pnostar=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
81 | pnoganymed=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
|
---|
82 | #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 )
|
---|
83 |
|
---|
84 | pnocallistowe=( 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
|
---|
85 | pnostarwe=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 )
|
---|
86 | pnoganymedwe=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 )
|
---|
87 | #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 )
|
---|
88 |
|
---|
89 | #pnosweek=( ${pnocallisto[@]} ${pnostar[@]} ${pnoganymed[@]} ${pnodatacheck[@]} )
|
---|
90 | #pnoswe=( ${pnocallistowe[@]} ${pnostarwe[@]} ${pnoganymedwe[@]} ${pnodatacheckwe[@]} )
|
---|
91 | pnosweek=( ${pnocallisto[@]} ${pnostar[@]} ${pnoganymed[@]} )
|
---|
92 | pnoswe=( ${pnocallistowe[@]} ${pnostarwe[@]} ${pnoganymedwe[@]} )
|
---|
93 |
|
---|
94 | # values for mc production
|
---|
95 | mcscripts=( "runcorsika" "runreflector" "runcamera" )
|
---|
96 | mcscriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" )
|
---|
97 |
|
---|
98 | #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
|
---|
99 |
|
---|
100 | 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 )
|
---|
101 | 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 )
|
---|
102 | 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 )
|
---|
103 |
|
---|
104 | 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 )
|
---|
105 | 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 )
|
---|
106 | 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 )
|
---|
107 |
|
---|
108 | pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} )
|
---|
109 | pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} )
|
---|
110 |
|
---|