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:daniela.dorner@unige.ch>
|
---|
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 | if [ "$rootsys" = "" ]
|
---|
32 | then
|
---|
33 | rootsys=/opt/root5.20.x86_64
|
---|
34 | fi
|
---|
35 | if ! export | grep ROOTSYS | grep $rootsys >|/dev/null
|
---|
36 | then
|
---|
37 | export ROOTSYS=$rootsys
|
---|
38 | export PATH=$PATH:$ROOTSYS/bin
|
---|
39 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib/root
|
---|
40 | fi
|
---|
41 |
|
---|
42 | # queuing system
|
---|
43 | queuesys=sge #isdc
|
---|
44 |
|
---|
45 | # logging and setup
|
---|
46 | logpath=/share/cta/automation/autologs
|
---|
47 | lockpath=/share/cta/automation/locks
|
---|
48 | setuppath=/share/cta/automation/setup
|
---|
49 |
|
---|
50 | ## paths of data
|
---|
51 | #datapath=/magic/data
|
---|
52 | #subsystempath=/magic/subsystemdata
|
---|
53 | #sequpath=/magic/sequences
|
---|
54 | #datasetpath=/magic/datasets
|
---|
55 |
|
---|
56 | # paths and setup for mc
|
---|
57 | mcpath=/share/cta
|
---|
58 | #mcrawpath=$mcpath/rawfiles
|
---|
59 | #mcsequpath=$mcpath/sequences
|
---|
60 | #corsikapath=/home/operator/Corsika/Mmcs6500/
|
---|
61 | #detectordir=/home/msmeyer/MC/MagicSoft/Simulation/Detector
|
---|
62 | #reflectorversion="reflector 0.7"
|
---|
63 | #cameraversion="camera 0.8"
|
---|
64 | #export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
65 |
|
---|
66 |
|
---|
67 | #webpath=/www/htdocs/datacenter
|
---|
68 |
|
---|
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_cta_new.rc
|
---|
77 | # file with db information
|
---|
78 | sqlrc=$mars/sql.rc
|
---|
79 |
|
---|
80 |
|
---|
81 | #addresses to which the errors are sent
|
---|
82 | erradrs="daniela.dorner@unige.ch"
|
---|
83 | #addresses to which the changes are sent
|
---|
84 | adrs="daniela.dorner@unige.ch"
|
---|
85 |
|
---|
86 |
|
---|
87 | #setup for jobmanager
|
---|
88 | sleeptime=30 #30
|
---|
89 | sleeptimelimit=360 #360
|
---|
90 | errorsleeptimedefault=60 #60
|
---|
91 | max=50 #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=1600 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
93 |
|
---|
94 |
|
---|
95 | #
|
---|
96 | # FIXME:
|
---|
97 | # max anz an prozessen setzen
|
---|
98 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
99 | # automatisch anpassen
|
---|
100 | # evtl noch maximale anz an callistos setzen
|
---|
101 | #
|
---|
102 |
|
---|
103 | #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
|
---|
104 | pnototal=( 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 )
|
---|
105 | pnototalwe=( 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 )
|
---|
106 |
|
---|
107 | pnosimtel=( 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 )
|
---|
108 | pnosimtelwe=( 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 )
|
---|
109 |
|
---|
110 | # restricted to nodes => numbers per node
|
---|
111 | pnochimp=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
112 | pnochimpwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
113 | pnoctastar=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
114 | pnoctastarwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
115 | pnostereob=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
116 | pnostereobwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
117 | pnostereoc=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
118 | pnostereocwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
119 | pnostereog=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
120 | pnostereogwe=( 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 )
|
---|
121 |
|
---|
122 | # set variables for jobmanager
|
---|
123 | #scripts=( "runsimtel" "runchimp" "runctastar" "runstereo 2" "runstereo 3" "runstereo 7" )
|
---|
124 | #scriptscolname=( "fCorsikaSimTelarray" "fChimp" "fCTAStar" "fStereoB" "fStereoC" "fStereoG" )
|
---|
125 | #pnosweek=( ${pnosimtel[@]} ${pnochimp[@]} ${pnoctastar[@]} ${pnostereob[@]} ${pnostereoc[@]} ${pnostereog[@]} )
|
---|
126 | #pnoswe=( ${pnosimtelwe[@]} ${pnochimpwe[@]} ${pnoctastarwe[@]} ${pnostereobwe[@]} ${pnostereocwe[@]} ${pnostereogwe[@]} )
|
---|
127 | scripts=( "runsimtel" "runchimp" "runctastar" )
|
---|
128 | scriptscolname=( "fCorsikaSimTelarray" "fChimp" "fCTAStar" )
|
---|
129 | pnosweek=( ${pnosimtel[@]} ${pnochimp[@]} ${pnoctastar[@]} )
|
---|
130 | pnoswe=( ${pnosimtelwe[@]} ${pnochimpwe[@]} ${pnoctastarwe[@]} )
|
---|
131 |
|
---|
132 | # number of script that are limited to a certain node
|
---|
133 | #numrestrictedscripts=5
|
---|
134 | numrestrictedscripts=2
|
---|
135 |
|
---|
136 | # set up for nodes
|
---|
137 | # for processes that can run only on certain node
|
---|
138 | # db: fProductionHostKEY
|
---|
139 | minnode=0
|
---|
140 | maxnode=26
|
---|
141 | excludednodes=( 7 14 23 )
|
---|