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 06/2010 <mailto:daniela.dorner@unige.ch>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2010
|
---|
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 | # logging and setup
|
---|
44 | logpath=/magic/datacenter/fact/autologs
|
---|
45 | lockpath=/magic/datacenter/fact/locks
|
---|
46 | setuppath=/magic/simulated/setup
|
---|
47 |
|
---|
48 | ## paths of data
|
---|
49 | #datapath=/magic/data
|
---|
50 | #subsystempath=/magic/subsystemdata
|
---|
51 | #sequpath=/magic/sequences
|
---|
52 | #datasetpath=/magic/datasets
|
---|
53 |
|
---|
54 | ## paths and setup for mc
|
---|
55 | mcpath=/magic/simulated
|
---|
56 | #mcrawpath=$mcpath/rawfiles
|
---|
57 | mcsequpath=$mcpath/sequences
|
---|
58 | corsikapath=/home/montecarlo/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
59 | export FLUPRO=$corsikapath'/fluka2008_3'
|
---|
60 |
|
---|
61 |
|
---|
62 | #webpath=/www/htdocs/datacenter
|
---|
63 |
|
---|
64 | # get paths for mars, macros and scripts
|
---|
65 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
66 | macrospath=$mars/datacenter/macros
|
---|
67 | scriptspath=$mars/datacenter/scripts
|
---|
68 | # rcfiles
|
---|
69 | # dependencies of steps
|
---|
70 | steps=$mars/resources/steps_fact.rc
|
---|
71 | # file with db information
|
---|
72 | sqlrc=$mars/sql.rc
|
---|
73 |
|
---|
74 |
|
---|
75 | #addresses to which the errors are sent
|
---|
76 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
77 | #addresses to which the changes are sent
|
---|
78 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
79 |
|
---|
80 |
|
---|
81 | #setup for jobmanager
|
---|
82 | sleeptime=30 #30
|
---|
83 | sleeptimelimit=360 #360
|
---|
84 | errorsleeptimedefault=60 #60
|
---|
85 | max=30 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
|
---|
86 | totalmax=40 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
87 |
|
---|
88 | #
|
---|
89 | # FIXME:
|
---|
90 | # max anz an prozessen setzen
|
---|
91 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
92 | # automatisch anpassen
|
---|
93 | # evtl noch maximale anz an callistos setzen
|
---|
94 | #
|
---|
95 |
|
---|
96 | #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
|
---|
97 | 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 )
|
---|
98 | 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 )
|
---|
99 |
|
---|
100 | pnocorsika=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )
|
---|
101 | pnoceres=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
|
---|
102 | pnocallisto=( 32 32 32 32 32 30 30 18 18 20 20 20 20 20 20 20 20 20 20 18 18 30 30 32 )
|
---|
103 | 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 )
|
---|
104 |
|
---|
105 | pnocorsikawe=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )
|
---|
106 | pnocereswe=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
|
---|
107 | 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 )
|
---|
108 | 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 )
|
---|
109 |
|
---|
110 | # set variables for jobmanager
|
---|
111 | scripts=( "runcorsika" "runceres" "runcallisto_mc" "runstar_mc" )
|
---|
112 | scriptscolname=( "Corsika" "Ceres" "Callisto" "Star" )
|
---|
113 | pnosweek=( ${pnocorsika[@]} ${pnoceres[@]} ${pnocallisto[@]} ${pnostar[@]} )
|
---|
114 | pnoswe=( ${pnocorsikawe[@]} ${pnocereswe[@]} ${pnocallistowe[@]} ${pnostarwe[@]} )
|
---|
115 |
|
---|